Thanks for the reply. > -----Original Message----- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > 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.
I have upgraded the JDK version to 1.4.2_06 and ran some small test cases. But I don't see a significant change. > > 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. I understand that the process size will be a lot larger than the JVM itself. But in this case the size keeps growing. At one stage I saw that the size reported by top, pmap and pmem commands was about 2.5G. Is this normal. I have 1G RAM on my system. If the process virtual memory keeps growing, doesn't the OS needs to do frequent paging and hence affect the performance of the system? > > Yoav Shapira http://www.yoavshapira.com > > > >-----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? > > > >Thanks > >Anand > > > >_________________________________________________________________ > > > >Anand Narasimhan > >[EMAIL PROTECTED] > > > > > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
