Hi Anand,

We currently have a similar problem. Under load the JVM consumes more and more 
memory. (We are using tomcat 5.0 and Sun JVM 1.4.2 and linux (debian sarge))

In our case it looks as if the Garbage Collector is not getting enough time to 
free memory - but this is still very much a guess. You may want to have a 
look in this direction however.

We are currently looking at see what setting we can tune for the GC or maybe 
using a different JVM.

Good luck,

Andrew

> > >-----Original Message-----
> > >From: Anand Narasimhan [mailto:[EMAIL PROTECTED]
> > >Sent: Monday, November 01, 2004 5:26 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: Huge tomcat memory footprint
> > >
> > >Hi,
> > >
> > >I am not able to determine if the problem is related to
> >
> > tomcat, solaris
> > or
> >
> > >the application itself. Any help/pointers to debug the
> >
> > problem will be
> >
> > >greatly appreciated.
> > >
> > >The application runs on Solaris 2.8 using Sun's Java version
> >
> > 1.4.1_02.
> > The
> >
> > >tomcat version is 4.1.27. The GUI is written using HTML/JSP/Struts
> >
> > 1.0.2.
> >
> > >The database is Oracle version 8.x (I think). The
> >
> > application also has
> > API
> >
> > >interface written using Java/XML/Soap etc. The application is
> >
> > memory/CPU
> >
> > >intensive.  The problem I am having is,  after running under a large
> >
> > load,
> >
> > >tomcat process's memory footprint (reported by top command)
> >
> > increases
> >
> > >rapidly to more that 2G. The heap size (max configured to 1G),
> >
> > increases to
> >
> > >about 500 - 600M. I have tried running tomcat with
> >
> > optimizeit to see if
> >
> > >there are any memory leaks. optimizeit as wells as the
> >
> > output from GC
> >
> > >(running with -verbose:gc, -XX+PrintGCDetails) shows
> >
> > frequent garbage
> >
> > >collection activity and the heap size does not grow too much.
> > >
> > >I am not able to figure out why the process memory grows. If the heap
> >
> > is
> >
> > >not
> > >growing too much, what is consuming the memory?
> > >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to