tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Huge tomcat memory footprint
Date Tue, 02 Nov 2004 13:49:21 GMT

Yup, upgrade the JDK if you can, that's a bad version.  Struts 1.0.2 is
also fairly ancient, you'll gain if you update that as well.

The heap is not the only memory consumer in a given JVM.  There's the
stack, symbol tables, various lookup tables, etc.  As you load classes
at runtime some of these areas grow in consumption.  That's normal and

Then there's the OS-level memory, which is different and always larger
than the JVM itself.  That's why top is a sub-optimal (unless you really
know what you're doing) indicator of JVM memory usage.  The OS-level
memory includes other data such as paging and thread management
information, in addition to anything and everything used by the JVM.  As
the JVM itself grows, so will the OS-level memory consumption.

Yoav Shapira

>-----Original Message-----
>From: Anand Narasimhan []
>Sent: Monday, November 01, 2004 5:26 PM
>Subject: Huge tomcat memory footprint
>I am not able to determine if the problem is related to tomcat, solaris
>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.
>tomcat version is 4.1.27. The GUI is written using HTML/JSP/Struts
>The database is Oracle version 8.x (I think). The application also has
>interface written using Java/XML/Soap etc. The application is
>intensive.  The problem I am having is,  after running under a large
>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
>growing too much, what is consuming the memory?
>Anand Narasimhan

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message