<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic monitoring CPU and Memory usage for application processes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cpu-and-memory-usage-for-application-processes/m-p/4084827#M309580</link>
    <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;We are conducting UAT for one of the application to be soon deployed to production.&lt;BR /&gt;&lt;BR /&gt;I need to monitor the CPU and Memory usage for this application processes when UAT is going on.&lt;BR /&gt;&lt;BR /&gt;Anyone out there give me some tips?&lt;BR /&gt;&lt;BR /&gt;Is there way to run top command in a script and send the output to a file? &lt;BR /&gt;&lt;BR /&gt;Any tips are appreciated.&lt;BR /&gt;&lt;BR /&gt;HP-UX 11.23.</description>
    <pubDate>Thu, 11 Oct 2007 12:46:00 GMT</pubDate>
    <dc:creator>sheevm</dc:creator>
    <dc:date>2007-10-11T12:46:00Z</dc:date>
    <item>
      <title>monitoring CPU and Memory usage for application processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cpu-and-memory-usage-for-application-processes/m-p/4084827#M309580</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;We are conducting UAT for one of the application to be soon deployed to production.&lt;BR /&gt;&lt;BR /&gt;I need to monitor the CPU and Memory usage for this application processes when UAT is going on.&lt;BR /&gt;&lt;BR /&gt;Anyone out there give me some tips?&lt;BR /&gt;&lt;BR /&gt;Is there way to run top command in a script and send the output to a file? &lt;BR /&gt;&lt;BR /&gt;Any tips are appreciated.&lt;BR /&gt;&lt;BR /&gt;HP-UX 11.23.</description>
      <pubDate>Thu, 11 Oct 2007 12:46:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cpu-and-memory-usage-for-application-processes/m-p/4084827#M309580</guid>
      <dc:creator>sheevm</dc:creator>
      <dc:date>2007-10-11T12:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring CPU and Memory usage for application processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cpu-and-memory-usage-for-application-processes/m-p/4084828#M309581</link>
      <description>top -d 1 -f /path/to/somefilename.out&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 11 Oct 2007 12:51:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cpu-and-memory-usage-for-application-processes/m-p/4084828#M309581</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-10-11T12:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring CPU and Memory usage for application processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cpu-and-memory-usage-for-application-processes/m-p/4084829#M309582</link>
      <description>Here's some other scripts that you may want to use:&lt;BR /&gt;&lt;BR /&gt;# cat /usr/local/bin/usermem&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;# usermem - display memory claimed by a user&lt;BR /&gt;#&lt;BR /&gt;if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]&lt;BR /&gt;then&lt;BR /&gt;  echo "Usage:"&lt;BR /&gt;  echo "usermem \"userid\""&lt;BR /&gt;  echo "Example:"&lt;BR /&gt;  echo "usermem gwild"&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;echo " "&lt;BR /&gt;&lt;BR /&gt;USER=$1&lt;BR /&gt;t=0&lt;BR /&gt;for j in `UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | grep -v Kbytes | grep " $USER " | awk '{print $1}'`&lt;BR /&gt;do&lt;BR /&gt;t=`expr $t + $j`&lt;BR /&gt;done&lt;BR /&gt;echo "\nMemory claimed by $USER: $t Kbytes.\n"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Attached is the c source for memdetail - just compile with the built in hp compiler...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also, I use mwa to collect info...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;From root's cron:&lt;BR /&gt;&lt;BR /&gt;# performance&lt;BR /&gt;55 23 * * 1-5 /opt/perf/bin/extract -xp -r /home/gwild/zgbltemplate -g -b today 7:00 -e today 18:00 -f stdout | /bin/mailx -s 'SAP Server performance report' sysadm &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cat /home/gwild/zgbltemplate&lt;BR /&gt;REPORT "MWA Export on !SYSTEM_ID"&lt;BR /&gt;FORMAT ASCII&lt;BR /&gt;HEADINGS ON&lt;BR /&gt;SEPARATOR="|"&lt;BR /&gt;SUMMARY=60&lt;BR /&gt;MISSING=0&lt;BR /&gt;DATA TYPE GLOBAL&lt;BR /&gt;YEAR&lt;BR /&gt;DATE&lt;BR /&gt;TIME&lt;BR /&gt;GBL_CPU_TOTAL_UTIL&lt;BR /&gt;GBL_CPU_SYS_MODE_UTIL&lt;BR /&gt;GBL_CPU_USER_MODE_UTIL&lt;BR /&gt;GBL_CPU_SYSCALL_UTIL&lt;BR /&gt;GBL_CPU_INTERRUPT_UTIL&lt;BR /&gt;GBL_PRI_QUEUE&lt;BR /&gt;GBL_CPU_CSWITCH_UTIL&lt;BR /&gt;GBL_SWAP_SPACE_UTIL&lt;BR /&gt;GBL_DISK_UTIL_PEAK&lt;BR /&gt;GBL_DISK_SUBSYSTEM_QUEUE&lt;BR /&gt;GBL_MEM_UTIL&lt;BR /&gt;GBL_MEM_CACHE_HIT_PCT&lt;BR /&gt;GBL_MEM_PAGEOUT_RATE&lt;BR /&gt;GBL_MEM_SWAPOUT_RATE&lt;BR /&gt;GBL_MEM_QUEUE&lt;BR /&gt;GBL_NET_PACKET_RATE&lt;BR /&gt;GBL_NET_OUTQUEUE&lt;BR /&gt;GBL_NETWORK_SUBSYSTEM_QUEUE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 11 Oct 2007 12:58:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cpu-and-memory-usage-for-application-processes/m-p/4084829#M309582</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-10-11T12:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring CPU and Memory usage for application processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cpu-and-memory-usage-for-application-processes/m-p/4084830#M309583</link>
      <description>HI,&lt;BR /&gt;some useful links:&lt;BR /&gt;&lt;A href="http://h20331.www2.hp.com/Hpsub/cache/286022-0-0-225-121.html" target="_blank"&gt;http://h20331.www2.hp.com/Hpsub/cache/286022-0-0-225-121.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1161688&amp;amp;admit=-682735245+1190100634357+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1161688&amp;amp;admit=-682735245+1190100634357+28353475&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1077655&amp;amp;admit=-682735245+1164099581655+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1077655&amp;amp;admit=-682735245+1164099581655+28353475&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1060606&amp;amp;admit=-682735245+1158564478357+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1060606&amp;amp;admit=-682735245+1158564478357+28353475&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Oct 2007 02:53:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cpu-and-memory-usage-for-application-processes/m-p/4084830#M309583</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2007-10-12T02:53:45Z</dc:date>
    </item>
  </channel>
</rss>

