<?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 Re: Memory Hog? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572968#M30815</link>
    <description>James,&lt;BR /&gt;&lt;BR /&gt;Your command line suggestion displays the process using the most memory first (top)? Can I tell how much memory each processes is using?&lt;BR /&gt;&lt;BR /&gt;The first few processes listed with your command are:&lt;BR /&gt;&lt;BR /&gt;root        9796  1332     1 /opt/pd/lbin/pdclientd&lt;BR /&gt;root        7504   985     1 /opt/dce/sbin/rpcd&lt;BR /&gt;root        6848 20422 20421 /opt/perf/bin/alarmgen -svr 20421 -t alarmgen /var/opt/perf/&lt;BR /&gt;root        6440  1029     1 basicdsd&lt;BR /&gt;root        5500 20345 20340 /opt/perf/bin/rep_server -t SCOPE /var/opt/perf/datafiles/lo&lt;BR /&gt;root        5168 28571     1 /usr/adsm/dsmc sched&lt;BR /&gt;root        4404 20421 20340 /opt/perf/bin/agdbserver -t alarmgen /var/opt/perf/datafiles&lt;BR /&gt;&lt;BR /&gt;Any thing look unusual here?&lt;BR /&gt;&lt;BR /&gt;- Justin&lt;BR /&gt;</description>
    <pubDate>Thu, 30 Aug 2001 15:17:54 GMT</pubDate>
    <dc:creator>Justin Willoughby</dc:creator>
    <dc:date>2001-08-30T15:17:54Z</dc:date>
    <item>
      <title>Memory Hog?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572966#M30813</link>
      <description>&lt;BR /&gt;I am trying to figure out if I have a memory leak in one of the processes running on a HP/UX 10.20 box or not.&lt;BR /&gt;&lt;BR /&gt;Glance displays the following:&lt;BR /&gt;&lt;BR /&gt;  --------------------------------------------------------------------------------&lt;BR /&gt;                                   PROCESS LIST                      Users=  1990&lt;BR /&gt;  B3692A GlancePlus B.10.31       11:32:10  hostname 9000/899    Current  Avg  High&lt;BR /&gt;  --------------------------------------------------------------------------------&lt;BR /&gt;  CPU  Util   S   SU                           U                 | 69%   56%   69%&lt;BR /&gt;  Disk Util   F                                           F     | 92%   96%  100%&lt;BR /&gt;  Mem  Util   S   SU                          UB             B   | 94%   94%   94%&lt;BR /&gt;  Swap Util   U       UR              R                          | 49%   49%   49%&lt;BR /&gt;  --------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;I know my disk I/O is quite high but there is not much I can do about that right now.&lt;BR /&gt;&lt;BR /&gt;This system is a K570 with three CPUs and 1.5GB of memory.&lt;BR /&gt;&lt;BR /&gt;sar ?m 1 10 reports the following:&lt;BR /&gt;&lt;BR /&gt;  HP-UX hostname B.10.20 U 9000/899    08/30/01&lt;BR /&gt;&lt;BR /&gt;  11:38:18   msg/s  sema/s&lt;BR /&gt;  11:38:19    0.00   32.67&lt;BR /&gt;  11:38:20    0.00  179.00&lt;BR /&gt;  11:38:21    0.00   27.00&lt;BR /&gt;  11:38:22    0.00  207.00&lt;BR /&gt;  11:38:23    0.00   53.54&lt;BR /&gt;  11:38:24    0.00  195.05&lt;BR /&gt;  11:38:25    0.00   63.00&lt;BR /&gt;  11:38:26    0.00  146.46&lt;BR /&gt;  11:38:27    0.00   84.16&lt;BR /&gt;  11:38:28    0.00  152.00&lt;BR /&gt;&lt;BR /&gt;  Average     0.00  113.99&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What should I check? How can I tell if one or two processes are taking up too much memory?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;- Justin&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Aug 2001 14:42:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572966#M30813</guid>
      <dc:creator>Justin Willoughby</dc:creator>
      <dc:date>2001-08-30T14:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Hog?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572967#M30814</link>
      <description>Hi Justin:&lt;BR /&gt;&lt;BR /&gt;A god way to monitor memory growth at the process level (for potential leaks) is this:&lt;BR /&gt;&lt;BR /&gt;# UNIX95= ps -e -o "user,vsz,pid,ppid,args"|sort -rnk2|more &lt;BR /&gt;&lt;BR /&gt;Note the use of the POSIX (UNIX95) option of the 'ps' command to assist in this tracking, ranking the output in descending kilobyte core size. Note carefully that a blank character follows the 'UNIX95' variable declaration and that the 'ps' command begins without any interceding delimiter. Thus, the variable UNIX95 is set only for the one command line. &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 30 Aug 2001 15:02:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572967#M30814</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-08-30T15:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Hog?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572968#M30815</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;Your command line suggestion displays the process using the most memory first (top)? Can I tell how much memory each processes is using?&lt;BR /&gt;&lt;BR /&gt;The first few processes listed with your command are:&lt;BR /&gt;&lt;BR /&gt;root        9796  1332     1 /opt/pd/lbin/pdclientd&lt;BR /&gt;root        7504   985     1 /opt/dce/sbin/rpcd&lt;BR /&gt;root        6848 20422 20421 /opt/perf/bin/alarmgen -svr 20421 -t alarmgen /var/opt/perf/&lt;BR /&gt;root        6440  1029     1 basicdsd&lt;BR /&gt;root        5500 20345 20340 /opt/perf/bin/rep_server -t SCOPE /var/opt/perf/datafiles/lo&lt;BR /&gt;root        5168 28571     1 /usr/adsm/dsmc sched&lt;BR /&gt;root        4404 20421 20340 /opt/perf/bin/agdbserver -t alarmgen /var/opt/perf/datafiles&lt;BR /&gt;&lt;BR /&gt;Any thing look unusual here?&lt;BR /&gt;&lt;BR /&gt;- Justin&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Aug 2001 15:17:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572968#M30815</guid>
      <dc:creator>Justin Willoughby</dc:creator>
      <dc:date>2001-08-30T15:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Hog?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572969#M30816</link>
      <description>Hi Justin,&lt;BR /&gt;&lt;BR /&gt;you could try something like&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -e -o vsz=Kbytes -o ruser,pid,ppid,args|sort -rnk2 |more&lt;BR /&gt;&lt;BR /&gt;or you could put this as an alias in your .kshrc&lt;BR /&gt;&lt;BR /&gt;psmem="UNIX95= ps -e -o vsz=Kbytes -o ruser,pid,ppid,args|sort -rnk2 |more"&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Aug 2001 15:36:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572969#M30816</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-08-30T15:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Hog?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572970#M30817</link>
      <description>As you have MWA installed, you can configure workloads on your system and collect the information. I found it very useful for my oracle database. Check out the syntax for &lt;BR /&gt;the configuration in /var/opt/perf/parm file. Once you start collecting the data specific to the processes, you can easily find if there is a problem by measuring the following metrics&lt;BR /&gt;&lt;BR /&gt;* APP_PRI_WAIT_PCT                &lt;BR /&gt;* APP_DISK_SUBSYSTEM_WAIT_PCT     &lt;BR /&gt;* APP_MEM_WAIT_PCT                &lt;BR /&gt;* APP_SEM_WAIT_PCT                &lt;BR /&gt;* APP_NETWORK_SUBSYSTEM_WAIT_PCT  &lt;BR /&gt;* APP_SLEEP_WAIT_PCT              &lt;BR /&gt;* APP_IPC_SUBSYSTEM_WAIT_PCT      &lt;BR /&gt;&lt;BR /&gt;You have more metrics defined in reptall in the same directory.&lt;BR /&gt;&lt;BR /&gt;I promise that you will definitely have fun with this analysis.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 30 Aug 2001 15:52:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572970#M30817</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-08-30T15:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Hog?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572971#M30818</link>
      <description>Sridhar,&lt;BR /&gt;&lt;BR /&gt;How do I configure workloads? &lt;BR /&gt;&lt;BR /&gt;Do I use extract to get the information I needed? I have not used WMA much. Is there a good tutorial for WMA that you know of?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;- Justin</description>
      <pubDate>Thu, 30 Aug 2001 16:11:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572971#M30818</guid>
      <dc:creator>Justin Willoughby</dc:creator>
      <dc:date>2001-08-30T16:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Hog?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572972#M30819</link>
      <description>Justin,&lt;BR /&gt;&lt;BR /&gt;It's not that difficult. If you have a look at /var/opt/perf/parm file, you can see some examples. Yes. You need to use extract to pull out the information. &lt;BR /&gt;&lt;BR /&gt;For ex., I will configure my parm file like this&lt;BR /&gt;&lt;BR /&gt;application = oracle&lt;BR /&gt;user = oracle&lt;BR /&gt;&lt;BR /&gt;So, this will collect the metrics of all the processes running as oracle. Then I will prepare a report file with the following&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DATE&lt;BR /&gt;TIME&lt;BR /&gt;&lt;BR /&gt;APP_NAME&lt;BR /&gt;APP_PRI_WAIT_PCT  #Gets the CPU WAIT&lt;BR /&gt;APP_MEM_WAIT_PCT  #MEM WAIT PCT&lt;BR /&gt;AP_SEM_WAIT_PCT   #PCT WAITING TO GET SEMAPHORE&lt;BR /&gt;APP_IPC_SUBSYSTEM_WAIT_PCT #PCT WAITED in IPC QUEUE&lt;BR /&gt;&lt;BR /&gt;#END&lt;BR /&gt;&lt;BR /&gt;Now I can run extract either interactively or non-interactively to get the information.&lt;BR /&gt;&lt;BR /&gt;You try running extract manually with GUIDE option. Specify this file as the report file. It's easy.&lt;BR /&gt;&lt;BR /&gt;The documents are there under /opt/perf/paperdocs.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 30 Aug 2001 16:36:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572972#M30819</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-08-30T16:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Hog?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572973#M30820</link>
      <description>Ok, I used the metrics susgested by Sridhar to get the data from yesterday using extract, e.g.:&lt;BR /&gt;&lt;BR /&gt;APP_PRI_WAIT_PCT &lt;BR /&gt;APP_DISK_SUBSYSTEM_WAIT_PCT &lt;BR /&gt;APP_MEM_WAIT_PCT &lt;BR /&gt;APP_SEM_WAIT_PCT &lt;BR /&gt;APP_NETWORK_SUBSYSTEM_WAIT_PCT &lt;BR /&gt;APP_SLEEP_WAIT_PCT &lt;BR /&gt;APP_IPC_SUBSYSTEM_WAIT_PCT &lt;BR /&gt;&lt;BR /&gt;I have created some graphs of this data. I am not sure what I should be looking for or was is acceptable. If anyone can take a minute and take a look at this data/graphs and give me pointers on what I should be looking for and what is ok and not ok.&lt;BR /&gt;&lt;BR /&gt;Thanks for all the replies so far! I am not sure why the Sleep Wait graph turned out the way it did. &lt;BR /&gt;&lt;BR /&gt;- Justin</description>
      <pubDate>Thu, 30 Aug 2001 18:02:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572973#M30820</guid>
      <dc:creator>Justin Willoughby</dc:creator>
      <dc:date>2001-08-30T18:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Hog?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572974#M30821</link>
      <description>These metrics give the %Time the processes are waiting to grab the resources. So, you will get a good feeling of how the systems are doing.&lt;BR /&gt;&lt;BR /&gt;Coming back to your original question of finding out the processes that consume most of the memory, you need to pull some stats again for other metrics like APP_MEM_PRIVATE_UTIL, APP_MEM_VIRT etc to see if they are the ones that are causing the problems over the time.&lt;BR /&gt;&lt;BR /&gt;You will get more granularity if you further devide your application definitions into small&lt;BR /&gt;segments. For ex., I will devide my oracle application like this&lt;BR /&gt;&lt;BR /&gt;application=orawriter&lt;BR /&gt;file=ora_dbw*&lt;BR /&gt;&lt;BR /&gt;application=oraarchiver&lt;BR /&gt;file=ora_arc*&lt;BR /&gt;&lt;BR /&gt;Now I can analyze the system w.r.t each of these processes.&lt;BR /&gt;&lt;BR /&gt;Please do not assign anymore points. There shouldn't be more than 10 points in a thread.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 30 Aug 2001 19:31:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572974#M30821</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-08-30T19:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Hog?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572975#M30822</link>
      <description>Sridhar, is that 10 points per person per thread?&lt;BR /&gt;&lt;BR /&gt;I used the two metrics you noted, APP_MEM_PRIVATE_UTIL &amp;amp; APP_MEM_VIRT. &lt;BR /&gt;&lt;BR /&gt;APP_MEM_PRIVATE_UTIL gives no data. &lt;BR /&gt;APP_MEM_VIRT gives four sets of data per time e.g. &lt;BR /&gt;&lt;BR /&gt;00:00 774144.0 &lt;BR /&gt;00:00 69632.0 &lt;BR /&gt;00:00 24496.0 &lt;BR /&gt;00:00 1868.0 &lt;BR /&gt;00:05 773120.0 &lt;BR /&gt;00:05 74752.0 &lt;BR /&gt;00:05 27909.0 &lt;BR /&gt;00:05 1868.0 &lt;BR /&gt;&lt;BR /&gt;What do the four numbers represent?&lt;BR /&gt;&lt;BR /&gt;I take it you set the application definitions in the /var/opt/perf/parm file? This file is used for associating one or more executables with a name? I am guessing only new data collected with have this logged?&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;- Justin</description>
      <pubDate>Fri, 31 Aug 2001 12:09:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572975#M30822</guid>
      <dc:creator>Justin Willoughby</dc:creator>
      <dc:date>2001-08-31T12:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Hog?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572976#M30823</link>
      <description>Hi Justin:&lt;BR /&gt;&lt;BR /&gt;No points for this -- just an opinion, here.&lt;BR /&gt;&lt;BR /&gt;The guidelines for point assignment for multiple responses to a thread aren't terribly clear.  We see everyting from 10-points awarded for a request to the author for more information, to no points awarded for multiple contributions by an individual as he/she struggles to provide problem resolution.&lt;BR /&gt;&lt;BR /&gt;You are free to use your own judgement.  The official guidelines exist here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/estaff/bin/doc.pl/forward/screen=estaffAssistance/sid=a86fa1ac1b8c606413?Page=file0002#forpoints" target="_blank"&gt;http://us-support.external.hp.com/estaff/bin/doc.pl/forward/screen=estaffAssistance/sid=a86fa1ac1b8c606413?Page=file0002#forpoints&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think that Sridhar's offer to limit the number of points collected in one post shows a professional who is more interested in solving a problem than in earning recognition -- a very admirable attribute.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 31 Aug 2001 12:27:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-hog/m-p/2572976#M30823</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-08-31T12:27:04Z</dc:date>
    </item>
  </channel>
</rss>

