in the meanwhile you can use jhat to analyze your heap results ..this comes with a nice browser interface to allow you to see heap usage by each class http://java.sun.com/developer/technicalArticles/J2SE/monitoring/
you can also use JConsole to monitor the number of objects pending finalisation (same link) http://java.sun.com/developer/technicalArticles/J2SE/monitoring/ M-- --------------------------------------------------------------------------- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --------------------------------------------------------------------------- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. ----- Original Message ----- From: "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]> To: "Tomcat Users List" <users@tomcat.apache.org> Sent: Monday, March 12, 2007 4:16 PM Subject: Re: apache-tomcat-6.0.10 OutOfMemoryError > add -XX:+HeapDumpOnOutOfMemoryError to your JAVA_OPTS, then you can zip > up the file that gets generated, make it available to us and I'll take a > look at it > > Filip > > acec acec wrote: >> Hi, >> I tested tomcat 6.0.10 using jmeter. I found the >> following problem. >> >> I defined three thread groups: >> ============================First >> thread-group============================ >> thread Properties: >> Number of Threads(users): 50 >> Ramp-Up Period(in seconds): 10 >> Loop Count: 1000 >> >> HTTP Request >> path: /examples/servlets/servlet/HelloWorldExample >> >> Constant Timer >> Thread Delay (in milliseconds): 10 >> >> ============================Second >> thread-group============================ >> thread Properties: >> Number of Threads(users): 50 >> Ramp-Up Period(in seconds): 10 >> Loop Count: 1000 >> >> HTTP Request >> path: /examples/jsp/tagplugin/foreach.jsp >> >> Constant Timer >> Thread Delay (in milliseconds): 10 >> >> ============================Third >> thread-group============================ >> thread Properties: >> Number of Threads(users): 1 >> Ramp-Up Period(in seconds): 1 >> Loop Count: 1000 >> >> HTTP Request >> path: /manager/status >> Send parameter with request: XML(Name) true(Value) >> >> Constant Timer >> Thread Delay (in milliseconds): 1000 >> =========================================================================== >> >> I found tomcat 6.0.10 will use 100% CPU in a few >> minutes, then I stop sending http request in jmeter. >> After that, I accessed another jsp page: >> /examples/jsp/jsp2/el/basic-arithmetic.jsp in web >> browser , but tomcat gave me the following response: >> >> HTTP Status 500 - >> >> type Exception report >> message >> description The server encountered an internal error >> () that prevented it from fulfilling this request. >> exception >> javax.servlet.ServletException: >> java.lang.OutOfMemoryError: Java heap space >> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274) >> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >> >> root cause >> java.lang.OutOfMemoryError: Java heap space >> >> note The full stack trace of the root cause is >> available in the Apache Tomcat/6.0.10 logs. >> >> I installed Tomcat 5.5.20 and did the same testing, I >> could not produce this problem on tomcat 5.5.20. >> Thanks. >> Arden >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >