-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP OOM errors when PHPConsole enabled #36
Comments
Hi Thank you for report! Could you please answer on some questions? What version of PHP you're using? |
PHP 5.4.5. |
So I think that a problem is in dumping huge ZF objects. Can you please try to disable any object dumping in PHP Console, use only errors handler. So if in this case 500 error problem will not be reproduced, then I will just check Dumper algorigthm for memory usage optimization. |
So what I had done is added a log writer to zend that basically echoed all Also, just FYI they weren't ZF objects, they were mostly my data objects On Fri, Dec 27, 2013 at 2:27 PM, Sergey notifications@github.com wrote:
|
Hm... I have an idea! Can you please edit |
ok, i've set it to 2. i had already cleared my cookies since the last time On Fri, Dec 27, 2013 at 3:19 PM, Sergey notifications@github.com wrote:
|
Fixed: headers problem if flush() or ob_end_clean() is called before script shutdown Fixed: problem with frameworks that overrides $_SESSION handler see https://github.com/barbushin/php-console#troubleshooting-with-_session-handler-overridden-in-some-frameworks Migration: Update PHP Console extension to last version >= 3.0.20 [Fixes #34] [Relative #36]
There was some new features commited in release v3.1. Please check if problem is resolved, and if not, reopen issue. Thank you. |
This is kind of complicated to replicate, and I even took a while to nail down for sure that PHPConsole was causing it it but I will try to explain as best I can.
Initially, PHPConsole will work fine, however after some use (maybe 30 mins of developing, so lots of page refreshes and page loads) the server will start returning 500 errors but most pages will actually load fine. The PHPConsole icon will disappear from the address bar. It must be that the errors occur during the flush handler for PHPConsole. PHP error log shows OOM errors but the strange thing is that the memory limit is set MUCH higher then the number in the error. Once the 500 errors start occurring they continue until cookies are cleared. Then they will go away for a similar period of time as the initial period and then reoccur.
Disabling PHPConsole eliminates this issue.
I've tried increasing the memory limit in php all the way up to absurd numbers but it doesn't help, the reported max in the OOM error message remains the same. PHP is reading the configs I set because ini_get('memory_limit') reflects the values I set it to.
The text was updated successfully, but these errors were encountered: