| Blogs | Classifieds | Downloads | FlashChat | Gallery | Googlemap | Invite Friends | Links | Projects | Reviews | Wiki |
| |||||||||
|
#1
| ||||
| ||||
Dear All, I am having web logic application server which is running on AIX 5.3 P-series server. This server is having 20GB total memory. Most of the times this server is having very less free memory. So I want to find out which process is taking how much memory and how much cpu. Is there any script is there? Or Is there any command is there? Pls help me on this.. |
|
#3
| ||||
| ||||
With memory you need to read up on the AI Xmemory model where AIX lets the memory fill up before taking action to clean it up. If you aren't seeing any paging space swaps then you are OK with memory. CPU - I use nmon to get a feel of whats happening - but again as long as you are usig less than 80% of the CPU the system is probably OK.
__________________ Ross Mather, IBM AIX IT Specialist. That said anything I say here is my own opinion and not anything that you can ever hold against IBM. Ohhh and don't forget that I make mistakes too.... |
|
#4
| ||||
| ||||
I'd echo what Ross says, you need to read up on AIX VMM. a great start would be to read the "Overview of AIX Page Replacement" article on the ibm site. (i have to have 5 posts before i'm allowed to put up links?) grrr once you have that down you can start looking at exactly how AIX is using your memory. nmon is probably the best tool out there for getting the big picture view of an aix server, under the memory heading you'd be interested in not only real memory usage but also paging space usage, actual paging to "paging space" as opposed "to filesystem" and your numperm/numclient %'s, this is how much memory aix is using for io caching. vmstat -v also gives you this information. after you get that there are some nice svmon scripts already out there, if you grab the perfpmr tarball from ibm, there is a memdetails script which pretty much gives you the best breakdown possible of memory usage. fair warning though - don't run this unless you have an idea of what you're doing and be prepared for it to eat up resources as it collects the data. lastly, a few little shell functions i use to look at my servers: lsmem, gives me a nice quick glancing view of memory utilization, note client pages is your filesystem caching. Code: lsmem ()
{
sudo vmstat -v | awk '
/memory pages/ {printf("total real memory =\t %5.2f GB\n",$1/256/1024)}
/free pages/ {printf("real memory free =\t %5.2f GB\n",$1/256/1024)}
/client pages/ {printf("client pages used =\t %5.2f GB\n",$1/256/1024)}';
sudo svmon -G | awk '
/in use/ {printf("real memory used =\t %5.2f GB\n",($3+$5)/256/1024)}
/pg space/ {printf("paging space used =\t %5.2f GB\n",$4/256/1024)}'
}
Code: top10 ()
{
sudo svmon -Ut10 | grep -p "===" | egrep -v "^=|^User|^$" | awk '
{print "user: "$1"\t ----> "($2/256)"\t MB"}'
}
|
![]() |
| Bookmarks |
| Tags |
| high, indentify, process, usage |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |