File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 197197 );
198198 }
199199
200- if ($ memoryAfter - $ memoryBefore > 10_000_000 ) {
201- $ logger ->warning ('Used memory grew by more than 10 MB when executing job ' . $ jobDetails . ': ' . Util::humanFileSize ($ memoryAfter ). ' (before: ' . Util::humanFileSize ($ memoryBefore ) . ') ' , ['app ' => 'cron ' ]);
200+ if ($ memoryAfter - $ memoryBefore > 50_000_000 ) {
201+ $ logger ->warning ('Used memory grew by more than 50 MB when executing job ' . $ jobDetails . ': ' . Util::humanFileSize ($ memoryAfter ). ' (before: ' . Util::humanFileSize ($ memoryBefore ) . ') ' , ['app ' => 'cron ' ]);
202202 }
203- if ($ memoryPeakAfter > 300_000_000 ) {
203+ if ($ memoryPeakAfter > 300_000_000 && $ memoryPeakBefore <= 300_000_000 ) {
204204 $ logger ->warning ('Cron job used more than 300 MB of ram after executing job ' . $ jobDetails . ': ' . Util::humanFileSize ($ memoryPeakAfter ) . ' (before: ' . Util::humanFileSize ($ memoryPeakBefore ) . ') ' , ['app ' => 'cron ' ]);
205205 }
206206
You can’t perform that action at this time.
0 commit comments