Le 23/08/2011 12:44, Oleg Stepura a écrit :
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.
This is done in the compiler pass, to make the logs available in the
profiler. Note that it is not controlled by the debug mode but by the
fact that the profiler is activated or no.
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.
the point is that limiting the amount of log messages in it would make
the log panel of the profiler totally useless as it would show only part
of them.
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
--
Christophe | Stof
--
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