This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Long time reader, first time poster. My problem is this I've set the both the Xmx and the Xms, but tomcat seems to grow way larger than the Xmx and starts off smaller than Xms. When doing a ps I get "/home/java/bin/java -Xms256m -Xmx256m ..." so it looks like I set the the JAVA_OPTS correctly. But when I look at it in top I this at start up:
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 16767 tomcat 25 0 125M 125M 20756 S 0.0 12.6 1:01 0 java
And this after about 20 hours up uptime:
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 16767 tomcat 25 0 511M 510M 20756 S 0.0 25.4 51:22 0 java
I'm not sure if top is showing me the wrong numbers or what I should be looking at. At first I thought it had to do with memory leaks with c libraries (A.K. oracle libraries), but I've updated them all and they seem fine. I have never gotten an "OutOfMemmory" exception and everything seems to run fine, but the memory consumption is starting to bother me.
I'm using Tomcat 5.5.16 and java 1.5.0 R6. Any help would be much appreciated.
James T. King
Joined: May 24, 2006
Another note, when I go into the manger app it says:
Free memory: 26.30 MB Total memory: 255.31 MB Max memory: 255.31 MB
Which would make me think it's working correctly, but top still says it's up around 511M which is a big discrepency.