diff options
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -182,10 +182,10 @@ Options: ); } - if ($memoryAfter - $memoryBefore > 10_000_000) { - $logger->warning('Used memory grew by more than 10 MB when executing job ' . $jobDetails . ': ' . Util::humanFileSize($memoryAfter). ' (before: ' . Util::humanFileSize($memoryBefore) . ')', ['app' => 'cron']); + if ($memoryAfter - $memoryBefore > 50_000_000) { + $logger->warning('Used memory grew by more than 50 MB when executing job ' . $jobDetails . ': ' . Util::humanFileSize($memoryAfter). ' (before: ' . Util::humanFileSize($memoryBefore) . ')', ['app' => 'cron']); } - if ($memoryPeakAfter > 300_000_000) { + if ($memoryPeakAfter > 300_000_000 && $memoryPeakBefore <= 300_000_000) { $logger->warning('Cron job used more than 300 MB of ram after executing job ' . $jobDetails . ': ' . Util::humanFileSize($memoryPeakAfter) . ' (before: ' . Util::humanFileSize($memoryPeakBefore) . ')', ['app' => 'cron']); } |