<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>AskDBA.org Forum &#187; Tag: aix - Recent Posts</title>
<link>http://www.forum.askdba.org/</link>
<description>Forum for Oracle DBA&#039;s</description>
<language>en</language>
<pubDate>Thu, 09 Feb 2012 22:12:00 +0000</pubDate>

<item>
<title>Amit Bansal on "Monitoring top 10 memory consuming process on AIX"</title>
<link>http://www.forum.askdba.org/topic/monitoring-top-10-memory-consuming-process-on-aix#post-79</link>
<pubDate>Tue, 25 Aug 2009 16:30:35 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">79@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;At times, you wish to find the processes with maximum memory consumption. This can be easily done using following command. Copy contents in file and run it like as vmstat command&#60;/p&#62;
&#60;pre&#62;
### Usage mem_mon.sh (interval) (occurences) e.g sh mem_mon.sh 2 10 ###
### This will give top 10 memory consuming processes #####
wt_time=$1
lmt=$2
 let a=0
while [[ $a -lt $lmt ]] ; do
ps axwv &#124;sort -nrk 7,7&#124;grep -v &#34;COMMAND&#34; \
&#124;awk 'BEGIN {printf (&#34;MemoryinKb \t ProcessId \t PerCPU \t PerMem \t Command \n&#34;)}{t=t+$7 - $10 ;printf(&#34;%13d \t %10d \t %6.2f \t %6.2f \t %s \n&#34;,$7 - $10,$1,$11,$12,$13)}END{print t}'&#124;head -10
 let      a+=1
sleep $wt_time
done
&#60;/pre&#62;</description>
</item>

</channel>
</rss>

