[php-src] Issue #8116: PHP 8.1 Failed to set memory limit to ... bytes (Current memory usage is ... bytes)
| From: | brainfoolong | Date: | Fri, 18 Feb 2022 09:02:21 +0000 |
| Subject: | [php-src] Issue #8116: PHP 8.1 Failed to set memory limit to ... bytes (Current memory usage is ... bytes) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239865@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8116
Comment Author: brainfoolong
Thanks for feedback. I cannot change values in
php.ini, we don't want all scripts
to take 512M of memory. Also i cannot add a dump, because this happen in production in
very very rare circumstances, no luck to reproduce it. The dump would bomb our logs, as it's a
very big application where every request, no just the buggy one, runs through a single entry point
of index.php. Production has a lot more requests, so maybe it's an indicator that concurrent
requests on Apache will cause memory usage stats to glitch through.
It is really hard to nail it. Out of 5000 requests we had it currently happen only a few times.
I would understand if at that point, the system memory is probably too low to allocate this memory,
but the error says that it is already using over 800M when trying to set
512M. Which is pretty much impossible, because the same script run even when it runs
fine at 99.9% of time, it doesn't crash because it never hit the 512M limit. I am
pretty sure that this was already so in PHP 8.0 but from what i've read in the old bug-tracker,
before 8.1 this error was silently ignored...