<?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: process memory usage in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/process-memory-usage/m-p/3429821#M205571</link>
    <description>Here's a little script for you:&lt;BR /&gt;&lt;BR /&gt;# cat processmem&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# processmem - display memory claimed by a process&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 "processmem \"process\""&lt;BR /&gt;  echo "Example:"&lt;BR /&gt;  echo "processmem rpc"&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;echo " "&lt;BR /&gt;&lt;BR /&gt;PROCESS=$1&lt;BR /&gt;&lt;BR /&gt;mps=0&lt;BR /&gt;#for sz in `ps -elf | grep $PROCESS | grep -v grep | awk '{print $10}'`&lt;BR /&gt;for sz in `UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | grep -v Kbytes | grep $PROCESS | awk '{print $1}'`&lt;BR /&gt;do&lt;BR /&gt;mps=`expr $mps + $sz`&lt;BR /&gt;done&lt;BR /&gt;#echo `expr $mps \* 4096`&lt;BR /&gt;echo "\nMemory claimed by $PROCESS: $mps Kbytes.\n"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
    <pubDate>Wed, 24 Nov 2004 12:49:01 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2004-11-24T12:49:01Z</dc:date>
    <item>
      <title>process memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-memory-usage/m-p/3429817#M205567</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I want to check if a process has memory leaks so I need to monitor the memory usage of the process. Which is the command to check this? Using thye command "top" sometimes my process is not shown in the list. &lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;Lorenzo</description>
      <pubDate>Wed, 24 Nov 2004 11:37:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-memory-usage/m-p/3429817#M205567</guid>
      <dc:creator>Lorenzo Santacana</dc:creator>
      <dc:date>2004-11-24T11:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: process memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-memory-usage/m-p/3429818#M205568</link>
      <description>If you have glance, start it with "gpm" and you can monitor your individual application.</description>
      <pubDate>Wed, 24 Nov 2004 11:44:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-memory-usage/m-p/3429818#M205568</guid>
      <dc:creator>Scot Bean</dc:creator>
      <dc:date>2004-11-24T11:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: process memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-memory-usage/m-p/3429819#M205569</link>
      <description>For a single process for which you know the process id (PID), do something like this in a loop.&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -p PID -o vsz,comm&lt;BR /&gt;&lt;BR /&gt;Note the space after UNIX95=. This asserts the XPG4 behavior in ps. Vsz displays the size of the process in KB.&lt;BR /&gt;&lt;BR /&gt;Man ps for details.</description>
      <pubDate>Wed, 24 Nov 2004 11:44:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-memory-usage/m-p/3429819#M205569</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-11-24T11:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: process memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-memory-usage/m-p/3429820#M205570</link>
      <description>Hi Lorenzo,&lt;BR /&gt;&lt;BR /&gt;Run&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -e -o 'vsz pid args' |sort -n&lt;BR /&gt;&lt;BR /&gt;periodically and check the processes whose vsz (first column) values are increasing over the time. They are most likely (not necessarily) the candidates of memory leaks. You will need to work with the vendor/developers to find the reason why the vsz is increasing over the time.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 24 Nov 2004 11:46:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-memory-usage/m-p/3429820#M205570</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-24T11:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: process memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-memory-usage/m-p/3429821#M205571</link>
      <description>Here's a little script for you:&lt;BR /&gt;&lt;BR /&gt;# cat processmem&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# processmem - display memory claimed by a process&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 "processmem \"process\""&lt;BR /&gt;  echo "Example:"&lt;BR /&gt;  echo "processmem rpc"&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;echo " "&lt;BR /&gt;&lt;BR /&gt;PROCESS=$1&lt;BR /&gt;&lt;BR /&gt;mps=0&lt;BR /&gt;#for sz in `ps -elf | grep $PROCESS | grep -v grep | awk '{print $10}'`&lt;BR /&gt;for sz in `UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | grep -v Kbytes | grep $PROCESS | awk '{print $1}'`&lt;BR /&gt;do&lt;BR /&gt;mps=`expr $mps + $sz`&lt;BR /&gt;done&lt;BR /&gt;#echo `expr $mps \* 4096`&lt;BR /&gt;echo "\nMemory claimed by $PROCESS: $mps Kbytes.\n"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 24 Nov 2004 12:49:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-memory-usage/m-p/3429821#M205571</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-11-24T12:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: process memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-memory-usage/m-p/3429822#M205572</link>
      <description>Hi Lorenzo&lt;BR /&gt;&lt;BR /&gt;There is also a utility called 'procsize' which is excellent for showing memory breakdown for each process. Use as follows:&lt;BR /&gt;&lt;BR /&gt;# procsize -fnc | sort -rnk 11 &lt;BR /&gt;&lt;BR /&gt;I have attahced the binary.&lt;BR /&gt;&lt;BR /&gt;It is available for download from:&lt;BR /&gt;ftp://eh:spear9@hprc.external.hp.com/procsize&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Nov 2004 17:46:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-memory-usage/m-p/3429822#M205572</guid>
      <dc:creator>Con O'Kelly</dc:creator>
      <dc:date>2004-11-24T17:46:35Z</dc:date>
    </item>
  </channel>
</rss>

