lemonzone2010 / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

Need parameter do disable stack gathering on createConnectionProxy #352

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Our application does a lot of calls to database. JavaMelody adds significatn 
overhead to it (~10-20%) to it. Profiling shows that lot of time is spent 
gathering stack traces while creating connection proxy object. As this is 
usefull only durinf development time to find connection leaks it would be nice 
to have ability turn it off for production.

I can send a screenshot from profiler if needed.

Original issue reported on code.google.com by kaln...@gmail.com on 17 Oct 2013 at 6:10

GoogleCodeExporter commented 9 years ago
Realized that iamges can be attached to ticket.

Original comment by kaln...@gmail.com on 17 Oct 2013 at 6:22

Attachments:

GoogleCodeExporter commented 9 years ago
In case there is a high frequency of sql hits (for example, more than 100000 
sql hits per minute), there is a new parameter 
"connections-stack-traces-disabled" to optimize by optionally disabling 
stack-traces of opened jdbc connections.
You can add the system property 
-Djavamelody.connections-stack-traces-disabled=true to use the parameter.

Note: This is for a case quite extreme, like in a frenetic load test. Using 
this parameter, is not necessary in other cases.

It's committed in trunk (revision 3555) and ready for the next release (1.48).

I have made a new build from trunk and it is available at:
https://javamelody.googlecode.com/files/javamelody-20131101.jar

Original comment by evernat@free.fr on 2 Nov 2013 at 12:28