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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't Diagnose Memory Leak...

Status
Not open for further replies.

texag97

Programmer
May 3, 2001
2
US
I'm having a problem diagnosing a memory leak on an AIX box that I have that is running WebSphere commerce suite, WebSphere Application server, and a couple of API's to MQSeries.

We know that something is leaking memory on the machine, but I don't know how to find the memory leak. I don't have any experience with AIX, so I can't figure out what process is leaking. It's probably the API's, but I don't have any definitive proof.

Are there any any shell commands to look at the how much memory each process is holding?
 
try using the top utility. it is a freeware that can be downloaded from then net.
 
I hope this helps some.

Monitor and Top are the same thing, downloaded freeware. You can do the following to get a view of what is hogging your system.

monitor -alternative -s 2

This displays all the details about the processes running. While it is running, press the m or v or c or p to see the top processes for (m = Memory Usage) (v = Virtual Memory Usage) (c = CPU Usage) (p = Page Faults).

For more details, use the svmon command.

To see the top process running in memory:
svmon -Pn -u -t 5
(The "n" means all non system segments. You can use "a" for all and "s" for system)
(The "u" means process using Real Memory. You can use "p" for pinned, or "g" for Paging, or "r" for referenced. I would think that "u" or "p" would be best for finding leaks.)
(The "-t 5" indicates you want the top 5 processes.)

The output is extensive, but you will see the process IDs of those top 5 processes on the left at the top. Down the right side shows the address range. This is where to look for the constant growth.

You can look even further at a specific process with:
svmon -P "ProcessID" -i 10 5
(The "-i 5" indicates to give you a view of this process, every 10 seconds for 5 intervals.) Remember, amateurs built the Ark, professionals built the Titanic.
 
Thanks, I should be able to get some results now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top