Hi Aditya, there is product of Borland OptimizeitT Suite 5 which makes performance management for JavaT easier .It dramatically improvs application performance and supporting the development of fast, scalable, and reliable applications. Optimizeit Suite offers another innovative first: the Automatic Memory Leak Detector (AMLD), which enables teams who are brand new to Java to immediately solve memory leaks. Optimizeit Suite integrates with popular application servers and
you can also find solution in cofiguration on this link which specially designed for site maintaining onn tomcat and also deals with memory leak problem http://www.cs.bris.ac.uk/Teaching/Resources/General/web/tomcat.html i think it can help you best of luck -----Original Message----- From: news [mailto:[EMAIL PROTECTED]]On Behalf Of Aditya Sent: Friday, February 14, 2003 10:38 AM To: [EMAIL PROTECTED] Subject: tracking memory usage over time I have the following JSP that I hit every 5 minutes and stuff the returned values into a RRD (www.rrdtool.org) to measure the memory (heap I presume) consumption of Tomcat over time. Is there a "better" way, short of using JMX in the newer Tomcat builds, of doing this? <%@ page language="java" %> <%@ page session="false" %> <% long free = java.lang.Runtime.getRuntime().freeMemory(); long total = java.lang.Runtime.getRuntime().totalMemory(); out.print(free + "|" + total + "|"); %> I can see a clear leak (about 20 contexts with a dozen or so hit constantly and recompiling JSPs very often) which necessitates (-Xmx and -Xms set to 256 MB) a restart of Tomcat every 4 days or so (with 4.1.14). I just upgraded to 4.1.20 thinking that the constant compiling was the source of the leak and that doesn't seem to have made a difference. Running 4.1.14 under jprobe doesn't evidence any leaks in our JSPs/filters. Hints on how to trace this leak down would be most welcome. Thanks, Adi --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]