tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anand Narasimhan" <ana...@cisco.com>
Subject RE: Huge tomcat memory footprint
Date Wed, 03 Nov 2004 23:38:32 GMT
If there is a memory leak in our application, tomcat or java, what are the
symptoms I should look for. 
Will the heap usage (shown by visual GC, optimizeit etc) keep growing and
eventually reach the max limit set using -Xmx option to java?

Thanks
Anand


> -----Original Message-----
> From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com] 
> Sent: Tuesday, November 02, 2004 5:49 AM
> To: Tomcat Users List
> Subject: RE: Huge tomcat memory footprint
> 
> 
> Hi,
> 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 expected.  
> 
> 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 http://www.yoavshapira.com
>  
> 
> >-----Original Message-----
> >From: Anand Narasimhan [mailto:anandn@cisco.com]
> >Sent: Monday, November 01, 2004 5:26 PM
> >To: tomcat-user@jakarta.apache.org
> >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?
> >
> >Thanks
> >Anand
> >
> >_________________________________________________________________
> >
> >Anand Narasimhan
> >anandn@cisco.com
> >
> 
> 
> 
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message