File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 182182 );
183183 }
184184
185- if ($ memoryAfter - $ memoryBefore > 10_000_000 ) {
186- $ logger ->warning ('Used memory grew by more than 10 MB when executing job ' . $ jobDetails . ': ' . Util::humanFileSize ($ memoryAfter ). ' (before: ' . Util::humanFileSize ($ memoryBefore ) . ') ' , ['app ' => 'cron ' ]);
185+ if ($ memoryAfter - $ memoryBefore > 50_000_000 ) {
186+ $ logger ->warning ('Used memory grew by more than 50 MB when executing job ' . $ jobDetails . ': ' . Util::humanFileSize ($ memoryAfter ). ' (before: ' . Util::humanFileSize ($ memoryBefore ) . ') ' , ['app ' => 'cron ' ]);
187187 }
188- if ($ memoryPeakAfter > 300_000_000 ) {
188+ if ($ memoryPeakAfter > 300_000_000 && $ memoryPeakBefore <= 300_000_000 ) {
189189 $ logger ->warning ('Cron job used more than 300 MB of ram after executing job ' . $ jobDetails . ': ' . Util::humanFileSize ($ memoryPeakAfter ) . ' (before: ' . Util::humanFileSize ($ memoryPeakBefore ) . ') ' , ['app ' => 'cron ' ]);
190190 }
191191
You can’t perform that action at this time.
0 commit comments