Meaningless Drivel is fun!*
The moose likes Linux / UNIX and the fly likes Top In Unix. What's the diff between SIZE and RES Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Top In Unix. What Watch "Top In Unix. What New topic

Top In Unix. What's the diff between SIZE and RES

David Rocks
Ranch Hand

Joined: Apr 24, 2001
Posts: 162
I am tracking my virtual machines size on a solaris box using top and i am wondering what the memory outputs are SIZE and RES.
I think we have a memory leak and i have set the virtual machine heap size between 128 and 300. the SIZE shows as 179 constatntly but RES rises. If it was properly garbage collecting would the SIZE stay constant or RES?
Cheers much for any information or help at all.
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
In top the SIZE field description is the size of the task's code, plus data, plus stack space, in kilobytes. The RSS field description is the total amount of physical memory used by the task in kilobytes.
So if the RSS value is rising and not the SIZE value I would assume you have a memory leak.
I hope this helps
[ April 02, 2003: Message edited by: Nigel Browne ]
I agree. Here's the link:
subject: Top In Unix. What's the diff between SIZE and RES
Similar Threads
java memory usage on linux
Process RES size Java linux composition
JVM eating more and more memory in our server
JBoss Unexpected Shutdown
Java Process using 100% CPU