Track down which app has memory leak.

2007-06-04 Thread Jacob Rhoden
Hi, In a tomcat instance (6.0.13) with multiple apps, how do can I easily track down which app has a memory leak. For example, can I just get a dump of all objects and grep the output (i relize there are a lot but I am not afraid of that!), or do I have to resort to installing and learning

Re: Track down which app has memory leak.

2007-06-04 Thread David Delbecq
Java comes with a profiling tools available that dump information on a text file upon exist. Look at sun web site for docs about profiling. You jun then have to set the appropriate parameters to your CATALINA_OPTS En l'instant précis du 04/06/07 09:56, Jacob Rhoden s'exprimait en ces termes: Hi,

Re: Track down which app has memory leak.

2007-06-04 Thread Jacob Rhoden
David Delbecq wrote: Java comes with a profiling tools available that dump information on a text file upon exist. Look at sun web site for docs about profiling. You jun then have to set the appropriate parameters to your CATALINA_OPTS Hi, Thanks for your reply however I cant find anything

Re: Track down which app has memory leak.

2007-06-04 Thread Foo Shyn
Hmm i'm not sure whether it can track memory leak or not, since i'm not a frequent user of it, but you can try JMeter from Apache: http://jakarta.apache.org/jmeter/ Its testing and monitoring module helps me a lot though... HTH FooShyn Jacob Rhoden wrote: David Delbecq wrote: Java comes

Re: Track down which app has memory leak.

2007-06-04 Thread David Delbecq
Add this (java 1.5) to your CATALINA_OPTS -agentlib:hprof=heap=dump From doc: This option causes the greatest amount of memory to be used because it stores details on every object allocated, it can also impact the application performance due to the data gathering (stack traces) on object

Re: Track down which app has memory leak.

2007-06-04 Thread David Delbecq
It tracks performances under workload, not memory leaks. To track and locate memory leak, you need profiling tools or be able to load/unload several time all modules separately. En l'instant précis du 04/06/07 11:49, Foo Shyn s'exprimait en ces termes: Hmm i'm not sure whether it can track

Re: Track down which app has memory leak.

2007-06-04 Thread Foo Shyn
IC, Thanx for clearing that out :) FooShyn David Delbecq wrote: It tracks performances under workload, not memory leaks. To track and locate memory leak, you need profiling tools or be able to load/unload several time all modules separately. En l'instant précis du 04/06/07 11:49, Foo Shyn