Hi!

I found that Symfony\Bridge\Monolog\Handler\DebugHandler is causing* memory 
leaks* on continuous iterations (in my task running in cli in debug mode). 
It seems like it is added automatically as an extra handler in debug mode 
(no clue where it is done, nothink in monolog.xml and Monolog Bridge Di 
config), but this leads to fast memory leaking when logging extensively.

Is there any configuration option to disable DebugHandler or limit amount of 
records in it?

Better solution would be to have an ability to somehow clear the stack or 
limit the amount of records in it.
I need to do this inside a loop having a Logger instance in that code. 
Logger itself has a method to get debug handler, but DebugHandler or 
TestHandler which is extended by DebugHandler have no clearing the stack 
methods.

BTW it is the same reason that causes memory leaks in SQL Logger found by 
Adrien 
Brault here: 
https://groups.google.com/d/topic/symfony-devs/vfP6XBDvZcg/discussion

Thanks!

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to