Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paging Space growth

Status
Not open for further replies.

aixmurderer

IS-IT--Management
Nov 28, 2000
603
NZ
How can I detect/prove that a certain program is causing excessive % growth of the paging space, e.g memory leaks etc?

I know there are tools available for programmers to detect memory leaks, but from a Sysadmin perspective I want to be able to trace and prove to "Oh Lord Mighty" programmer that his program is causing problems. IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
 

Hi,
doesn't ps show paging space use of a programme?? Or isn't that what you're after?? Henrik Morsing
IBM Certified 4.3 Systems Administration
 
Hi,

One of the things you can run is the following , to see which process is using a lot of RAM , hence paging out

ps -e -o ruser,vsz,pid,time,args | grep -v &quot;<defunct>&quot; | sort -rnk2 | more

Once you spot the program using a lot of RAM i.e. big value in vsz column this is in kilobytes , you can checl paging space as well , see how much it has increased from and to
(lsps -a)

HTH
 
There is a freeware library DMALLOC that is a replacement for malloc that is used for, among other things, detecting memory leaks. Programatically is really the only true way of finding memory leaks, because, a memory leak is a bug in a program that is not freeing memory that it no longer needs and continues consuming memory until there is none remaining. And you also need to know where in the code it is ocurring, not just the program name, because you need to fix it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top