Unix Programming - Re: RSS keeps increasing...Memory leaks?? & SZ vs '-o vsz'

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > November 2004 > Re: RSS keeps increasing...Memory leaks?? & SZ vs '-o vsz'





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: RSS keeps increasing...Memory leaks?? & SZ vs '-o vsz'
qazmlp

2004-11-25, 5:53 pm

Casper H.S. Dik <Casper.Dik@Sun.COM> wrote in message news:<41a5a30f$0$21106$e4fe514c@news.xs4all.nl>...
> qazmlp1209@rediffmail.com (qazmlp) writes:
>
>
> The working set is the memory actually being used; if at the same
> the SIZE grows, then the program is consuming more and more
> memory; that may indicate a memory leak but it may just as well
> indicate an actual need for memory.


'ps -p <processId> -o rss, vsz, pmem' reports the following.

RSS VSZ %MEM
77592 1022288 2.6
77656 1022288 2.6
77688 1022288 2.6
77704 1022296 2.6
77704 1022296 2.6
77728 1022296 2.6
77728 1022296 2.6
77728 1022296 2.6
77760 1022296 2.6
77768 1022296 2.6
77776 1022296 2.6

As we can see above, RSS keeps increasing, but VSZ remains stable. Can
we conclude here that things are Ok i.e there are no memory leaks?

Apart from that:
The outputs for SZ and '-o vsz' seem to be same, except that, SZ
reports in terms pages and vsz in terms of KB. Am I right?
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com