<?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 and memory question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-question/m-p/3901920#M283134</link>
    <description>&lt;!--!*#--&gt;# cat /usr/local/bin/processmem&lt;BR /&gt;&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;&lt;BR /&gt;Rgds...Geoff</description>
    <pubDate>Tue, 21 Nov 2006 09:42:38 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2006-11-21T09:42:38Z</dc:date>
    <item>
      <title>process and memory question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-question/m-p/3901916#M283130</link>
      <description>Hi,&lt;BR /&gt;simple question.&lt;BR /&gt;i would like to know which process consumes how much memory.&lt;BR /&gt;if i dont have glance what should i do?&lt;BR /&gt;with glance what is the exact command?&lt;BR /&gt;thanks,&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Nov 2006 09:24:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-question/m-p/3901916#M283130</guid>
      <dc:creator>bhupesh m</dc:creator>
      <dc:date>2006-11-21T09:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: process and memory question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-question/m-p/3901917#M283131</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Check out this thread, I think it may contain what you require.&lt;BR /&gt;&lt;BR /&gt;S.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=111838" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=111838&lt;/A&gt;</description>
      <pubDate>Tue, 21 Nov 2006 09:29:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-question/m-p/3901917#M283131</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2006-11-21T09:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: process and memory question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-question/m-p/3901918#M283132</link>
      <description>Hi,&lt;BR /&gt;See:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=685251" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=685251&lt;/A&gt;&lt;BR /&gt;top,ps -ef, glance&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Nov 2006 09:29:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-question/m-p/3901918#M283132</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-11-21T09:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: process and memory question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-question/m-p/3901919#M283133</link>
      <description>bhupesh,&lt;BR /&gt;&lt;BR /&gt;If you do not have glance, the top command is the the easiest one of all of them.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime.</description>
      <pubDate>Tue, 21 Nov 2006 09:35:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-question/m-p/3901919#M283133</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-11-21T09:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: process and memory question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-question/m-p/3901920#M283134</link>
      <description>&lt;!--!*#--&gt;# cat /usr/local/bin/processmem&lt;BR /&gt;&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;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 21 Nov 2006 09:42:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-question/m-p/3901920#M283134</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-11-21T09:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: process and memory question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-question/m-p/3901921#M283135</link>
      <description>thanks admins.&lt;BR /&gt;i will go thru those pages and reply if i found some doubts..&lt;BR /&gt;thanks again,..</description>
      <pubDate>Tue, 21 Nov 2006 10:27:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-and-memory-question/m-p/3901921#M283135</guid>
      <dc:creator>bhupesh m</dc:creator>
      <dc:date>2006-11-21T10:27:21Z</dc:date>
    </item>
  </channel>
</rss>

