Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
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
JSP - A mailing list about Java Server Pages specification and reference
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
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
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
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
memory leak in tomcat 5.0.16 ?

memory leak in tomcat 5.0.16 ?

2004-01-22       - By Remy Maucherat

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Dale, Matt wrote:
> There is a known memory leak in 5.0.16, I'd upgrade to 5.0.18 and see
> if this fixes your problem.

You should read his report.

1) I don't see how he would be affected, since he seems to have a rather
small server; you need large variations in traffic to get the leak (and
the workaround is easy enough anyway)
2) He's using AJP, not HTTP ;)

> I am developing an intranet for a housing community using
> apache/tomcat and mysql. It was put in production to 200 users a few
> weeks ago and I noticed that the java-proces (tomcat) was "growing"
> from 8% memory usage when started to over 50% (seen with top / ps
> aux).
>
> When the mem-usage reach a certain level the java-proces uses most of
> the CPU- ressources as well - verbose:GC showed that this is the GC
> trying to keep up. This usually happens in a matter of 2-5 hours
> depending on the Xmx-settings - the number of active users / load
> seems to speed the process up (not confirmed). Restarting tomcat
> solves the problem for a while - but I would prefer a better
> permament solution.
>
> System settings: CPU: Pentium 1600 mhz RAM: 512 MB OS: Linux (Redhat)
>  Java: j2re1.4.2_03 / jikes TOMCAT: 5.0.16 Connector:
> org.apache.coyote.tomcat5.CoyoteConnector (AJP/1.3) CATALINA_OPTS:
> -Xmx200m -Xms200m -Dbuild.compiler.emacs=true (have tried 117
> different settings)
>
> At first I used tomcat 4 and j2sdk1.4.1_03 and the "normal"
> javac-compiler. I changed to jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.16 / j2re1.4.2_03 and
> jikes - this seems to have made the problem even worse. Before the
> update tomcat could go for more than 12 hours whitout restarting -
> now I have to restart every few hours.
>
> The application is quite DB-intensive: Every 30 secs. a java-thread
> queries a mysql-table with updated network-traffic data (used for
> traffic-shaping). In the same loop I SAX-parse a little XML-string
> using the JDOM-API (I have read about the StringBuffer-problem but
> this is not the cause since I'm now using j2re1.4.2_03 - right ?).
> I'm using mysql-connector-3 (See http://tor-3.ora-code.com).0.9 as JDBC-driver and protomatter-1 (See http://ter-1.ora-code.com).1.8
> to pool DB-connections. In the same loop I connect to a TCP- socket
> on the local server.
>
> I have done some profiling with HPJmeter and the -Xrunhprof argument
> with different settings. I'm a newbie in profiling but these
> observations might be useful: -Using HPJmeter' "guess memory leaks"
> the top-4 (See http://top-4.ora-code.com) suggested candidates are: java.util.vector,
> org.apache.commons.modeler.Registry Source code of org.apache.commons.modeler.Registry, org.apache.jk.core.MsgContext Source code of org.apache.jk.core.MsgContext
> and org.apache.coyote.Request Source code of org.apache.coyote.Request
>
> -"Residual objects" shows the following top-4 (See http://top-4.ora-code.com)-classes (bytes): int[]
> (10 MB) char[] (4 MB) java.lang.String Source code of java.lang.String (2 MB) byte[] (2 MB)
>
> Any help would be much appreciated...
>
> Regards Torstein Nilsen

--
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
R�my Maucherat
Senior Developer & Consultant
JBoss Group (Europe) S�RL
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




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