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
Debug toolbar memory leak #104
Comments
additional comments in yiisoft/yii2#11419 |
It's not about debug. It's about logger overall. |
well, no, normal logger will flush regualry, debug toolbar logger will not. |
Normal loggers aren't flushing as well. |
For normal loggers all messages are sent when exportInterval is reached: https://github.com/yiisoft/yii2/blob/master/framework/log/Target.php#L104 the only exception is debug toolbar, which overrides this method. |
Has anyone found a solution to the problem? Is there another workaround than just turning off "YII_DEBUG"? Thanks 👍 |
Do you have the problem in production environment? |
I had similar issue. It is related to
Soo it is not really debuggers problem, to catch them by default. Only solution would be to make debugger ignore debug messages by category This could be solved by enhancing debugger with option to pass |
This issue has originally been reported by @djeux at yiisoft/yii2#11419.
Moved here by @cebe.
I'm building a queue system for Yii2 with beanstalkd. I've got a console controller to run in a loop checking for new jobs.
If I run it inside a loop I will constantly get increased memory usage (without handling any jobs). After cutting parts of the loop I found out that
Is causing it. The methods simply check for a key to be present inside cache (redis)
So just checking cache is taking more and more memory?
Yii 2.0.7
The text was updated successfully, but these errors were encountered: