Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: What do I do with a heap dump? (OOM Permgen)

Subject: What do I do with a heap dump? (OOM Permgen)

2007-11-01       - By Greg Vilardi

 Back
Hello everyone.

My team and I are trying to develop a new web application and the
tomcat JVM is crashing every few days. We are deploying our separate
versions of the application several times per hour, and by looking at
jprobe, I see that each deployment of a webapp consumes 440kb of
PermGen space. This space does not seem to be released, although I've
only been monitoring this for 4 hours now. I have a heap dump from the
last crash, (courtesy of +XXHeapDumpOnOutOfMemoryError) and have taken
two memory dumps using jmap before and after a redeploy on an otherwise
quiescent JVM.

Now, having done this, I've also looked at the dumps using jhat. There
seems to be a vast amount of data there, but I can't distill the
information I need out of it. I apologize if my Google-Fu is weak, but
I didn't find much real information on interpreting jhat data.
Preliminary examination of the jhat data does not show much of my
application or helper classes (mysql, jdbc).

So, my questions are:
How do I figure out what is in that 440kb per deployment?
Is there an FM for me to R on how to interpret jhat data?
What should I be looking for?
How do I break this problem down further?

The environment is:
OS: Debian etch 2.6.21 kernel
JVM: Sun Java 6 1.6.0-b105 Configured for use with jprobe and default
memory allocations. (This was done to try to make the problem easier to
reproduce/study.)
Tomcat: 6.0.14 fronted via Apache 2.2.4 using mod_proxy_ajp.
Database: MySQL 5.0.32 using the latest ConnectorJ.
The application is a combination of JSP and servlets with some AJAX but
no Comet, Hibernate, &c. Apache and Tomcat were hand installed (not
from Debian packages).

Any help that you can provide would be greatly appreciated.

  -Greg
--
Gregory H. Vilardi    631-752-2701x240     gvilardi@(protected)
Project Manager / Lead Software Engineer           Fax: (631)752-3397
Recurrent Software Solutions, Inc.       http://www.recurrentsoft.com
1 Huntington Quadrangle, Suite 1C02, Melville, NY 11747


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.