Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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

 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
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.
David
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic