Link to home
Start Free TrialLog in
Avatar of theta
theta

asked on

How much memory each process is taking?

We are running AIX 4.2.1. and having memory problems (fork function failed, not enough memory). We have solved the problem by increasing the page memory. But, Is there a way to find out how much memory each process is using?
Avatar of thoellri
thoellri

Use the "ps -el" command. The column "SZ" is the process's size. I seem to  remember this value has to be multiplied by "512 bytes" to get the real process size. Check "man ps" (seems to be missing on my AIX system).

Hope this helps
  Tobias
There are several shareware tools to keep track of processor time, memory etc.
One of them is "monitor", download it from:
http://www.bull.de/pub/out/monitor-2.1.6.0.exe
(yes, this is for AIX, despite the .exe extension....PGP verification applied)

top
vmstat
Avatar of theta

ASKER

ahoffmann,

Thanks for your response, but I can't except it. Top is not for AIX, and vmstat doesn't give me memory used by each process.

I used thoellri's suggestion and it served my purpose. I would like to give thoellri points but I don't know how I can do it, because thoellri hasn't proposed the answer.

THETA.
If you like to give me the point (although ahoffmann answer can be considered ok), then you have to reject ahoffmann's answer and I'll post another answer with my original comment.

Thanks
  Tobias

Use the "ps -el" command. The column "SZ" is the process's size. I seem to  remember this value has to be multiplied by "512 bytes" to get the real process size. Check "man ps" (seems to be missing on my AIX system).

Hope this helps
   Tobias





Huh?
Avatar of theta

ASKER

Sorry, I don't know why it did this, the onley thing I did was clicked on "Reload" button on my browser to see if  you have posted the answer. Can you post the answer again?


ASKER CERTIFIED SOLUTION
Avatar of thoellri
thoellri

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial