tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Kirk <>
Subject RE: Aw: Finding a Memory Leak in a Web Application
Date Thu, 28 Jun 2001 08:12:28 GMT

Try using HAT (Heap Analysis Tool), you can download it from Sun. It allows
you to take snap shots of the heap at run time and exports it as HTML
pages.. letting you see just how many objects, and of what types have been

- Chris.

Brainbench MVP Java2

> -----Original Message-----
> From: Hunter Hillegas []
> Sent: 27 June 2001 23:04
> To: Tomcat User List
> Subject: Re: Aw: Finding a Memory Leak in a Web Application
> Whoops. Forgot to give my info:
> Tomcat 3.2.2 on JDK1.3.1 / Red Hat Linux 6.0 with updated libs.
> Running Apache 1.3.19 in front, using APJ12.
> > From:
> > Reply-To:
> > Date: Wed, 27 Jun 2001 23:50:55 +0200 (CEST)
> > To: "" 
> <>
> > Subject: Aw: Finding a Memory Leak in  a Web Application
> > 
> > Simple question:
> > What JDK version are you using ?`
> > I had similiar problems with 1.2.x
> > 
> > After upgrading, the were gone (an new appeared, quite 
> nomal with java i think
> > :-)

I think my application is leaking. Over time the size of the Java process
grows but never shrinks back down.

I'm not sure of the best way to find the leak. I can't afford expensive
profiling tools like OptimizeIt, etc...

It may be something as simple as a design flaw on my part... Here's my

requests come into a servlet which creates vectors of objects from database
data. These vectors are stored in the request scope and then I forward to a
JSP page where the results are displayed from the Vectors.

I assumed (incorrectly?) that since they were in the request scope they
would be garbage collected after the request was over (which is when the
page has been sent to the user, right?). Is this not the case?

Any help/suggestions anyone has would be great!



NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be

View raw message