Steffen
Well-known member
- Affected version
- 2.3.0
After upgrading from XenForo 2.3.0 RC5 to XenForo 2.3.0 Final,
kernel: Out of memory: Killed process 459314 (php) total-vm:21573920kB, anon-rss:21323748kB, file-rss:640kB, shmem-rss:0kB, UID:1000 pgtables:42208kB oom_score_adj:200
XenForo 2.3.0 Final contains this change from 2.3.0 RC5 (probably to fix this bug):
After reverting this change, the rebuild worked as expected.
Maybe it needs to be checked that
xf-rebuild:search --truncate
got killed for me (twice) because it used too much memory:kernel: Out of memory: Killed process 459314 (php) total-vm:21573920kB, anon-rss:21323748kB, file-rss:640kB, shmem-rss:0kB, UID:1000 pgtables:42208kB oom_score_adj:200
XenForo 2.3.0 Final contains this change from 2.3.0 RC5 (probably to fix this bug):
Diff:
--- a/src/XF/Job/AbstractJob.php
+++ b/src/XF/Job/AbstractJob.php
@@ -99,7 +99,7 @@ abstract class AbstractJob
if ($percentSpent > 1)
{
- return max(1, $newExpected);
+ return max(1, min($maxBatch, $newExpected));
}
if ($remaining < 1 || $percentSpent >= .9)
After reverting this change, the rebuild worked as expected.
Maybe it needs to be checked that
$maxBatch
is not null
or 0
(like elsewhere in this function)?