Blogs Classifieds Downloads FlashChat Gallery Googlemap Invite Friends Links Projects Reviews Wiki
 


Our Sponsors
Want to advertise?  


Reply
 
LinkBack Thread Tools
  #1  
Old February 10th, 2009
bvijaycom's Avatar
bvijaycom Offline
Infrastructure Architect
 
Join Date: December 2007
Posts: 40
How to indentify the high usage process

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..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old February 10th, 2009
seth's Avatar
seth Offline
Senior Member
 
Join Date: June 2008
Posts: 252
Re: How to indentify the high usage process

Hi
nmon or "ps auxwww" for quick overview.
svmon is best for a deep analysis of memory usage (man svmon)

Cheers seth
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old February 10th, 2009
ross.mather's Avatar
ross.mather Offline
Senior Member
 
Join Date: January 2007
Location: Nomadic in the UK
Posts: 574
Re: How to indentify the high usage process

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....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old February 10th, 2009
exsnafu's Avatar
exsnafu Offline
Junior Member
 
Join Date: June 2008
Posts: 9
Re: How to indentify the high usage process

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)}'
}
top10, gives me a view of top 10 users and their "total" inuse memory footprint. again, you should understand svmon before using this.
Code:
top10 ()
{
    sudo svmon -Ut10 | grep -p "===" | egrep -v "^=|^User|^$" | awk '
                                {print "user: "$1"\t ----> "($2/256)"\t MB"}'
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
high, indentify, process, usage

These are the 100 most searched terms
Search Cloud
0042-001 0042-001 nim 0042-008 nimsh: request denied 0513-001 the system resource controller daemon is not active 0513-001 the system resource controller daemon is not active. 0514-061 0514-061 cannot find a child device 0514-061 cannot find a child device. 0516-787 0516-787 extendlv 0516-787 extendlv: maximum allocation for logical volume 110000ac 3074feb7 aa00e1f3 aio aix aix aio aix freeware aix memory usage aix rsync aixif_arp_dup_addr b150f22a b181f22a b181fb53 ba010004 c1001020 d133c002 dacnone dcb47997 fcp_array_err6 fget_config gnu tar aix gtar aix hmc root password hmc vmware ibm p6 520 libpopt.a libpopt.a(libpopt.so.0) is needed by rsync-2.6.2-1 migratelv mksysb navisphere agent nim server pseriestech ptype and account type do not match rshd: 0826-813 permission is denied. rsync aix sc_disk_err4 scan_error_chrp vio server vmware hmc websm ... powered by Simple Search Cloud


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Powered by vbWiki Pro 1.3 RC5. Copyright ©2006-2007, NuHit, LLC

vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73