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!

Memory Leak issue.

Status
Not open for further replies.

AIXdream

Technical User
Mar 27, 2007
33
US
How to detect/check Memory Leak in AIX/Solaris, and how to troubleshoot?
 
memory leak is a progam that consists of repeatedly allocating memory, using it, and then neglecting to free it.

one way of identifying memory leaks is to first locate the process that you expect causing the problem! (you might look into the highest RAM-utilization svmon -P -n -w -v) man svmon for more info.

Then using the PID of that process do this:

svmon -P PID#

and watch the inuse column for any segment that continues to grow! (watch for the segment 0 (kernal) & segment 2 (user stack & data).

Regards,
Khalid
 
By the way, you need to run svmon several times and compare the amount of memory used by a process to determine a possible memory leak (starting by looking at the Inuse value for each output)

Regards,
Khalid
 
another symtom of Memory leaks is filled up paging space!!!

lsps -a

Regards,
Khalid
 
This doc should help


It's also worth taking a look at sarcheck (Just Google) Covers both AIX & Solaris

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top