<?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 usage - how to identify the process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533383#M221863</link>
    <description>The resident set size (RSS) is the portion of the program which is currently in memory. You can have a 500meg program with a 400meg shared area but have only 200megs in RAM. As noted in the Glance help for RSS, the measurement depends on whether the oprocess has consumed any CPU time during the measurement period.</description>
    <pubDate>Thu, 28 Apr 2005 06:35:46 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2005-04-28T06:35:46Z</dc:date>
    <item>
      <title>memory usage - how to identify the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533373#M221853</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a system with high cpu memory usage, and wondering, how to identify the process, that causes this.&lt;BR /&gt;&lt;BR /&gt;first of all - it's 2gb, where ~.5 gb goes for system/buffer cache, the other 1.5 should be available for others. but during the night, when oracle (oracle db runs there; sga = ~400mb) is down for backup, memory usage should be limited to ~.5gb, which is 25%, but it stays on a level of 1gb, which is 50%.&lt;BR /&gt;&lt;BR /&gt;I\ve idenfied a shm area owned by root (using ipcs), but I'm unable to find any process, that is bound to that area (ipcs shows 2 processes are there; unftly, LPID/CPID do not exist, so I'm unable to find out..)&lt;BR /&gt;&lt;BR /&gt;anyone has an idea how to address this? thanks in advance&lt;BR /&gt;mariusz</description>
      <pubDate>Wed, 27 Apr 2005 12:03:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533373#M221853</guid>
      <dc:creator>Mariusz Grabowski_2</dc:creator>
      <dc:date>2005-04-27T12:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage - how to identify the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533374#M221854</link>
      <description>Best utility for the job is lsof.&lt;BR /&gt;&lt;BR /&gt;It may be that the process that allocated the memory is dead and the correct course of action is ipcrm&lt;BR /&gt;&lt;BR /&gt;ipcrm -m &lt;ID&gt;&lt;BR /&gt;&lt;BR /&gt;-m changes based on the type of memory on the ipcs display.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.74/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.74/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/ID&gt;</description>
      <pubDate>Wed, 27 Apr 2005 12:09:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533374#M221854</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-04-27T12:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage - how to identify the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533375#M221855</link>
      <description>SEP,&lt;BR /&gt;&lt;BR /&gt;unftly - lsof is not available for me (don't ask why) :(&lt;BR /&gt;&lt;BR /&gt;the mem segment is still in use (if it wasn't, ipcs'd show '0' as nattach)&lt;BR /&gt;thus - running ipcrm might harm this :)&lt;BR /&gt;&lt;BR /&gt;thanks, m</description>
      <pubDate>Wed, 27 Apr 2005 12:24:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533375#M221855</guid>
      <dc:creator>Mariusz Grabowski_2</dc:creator>
      <dc:date>2005-04-27T12:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage - how to identify the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533376#M221856</link>
      <description>Well, a lot of times, I find that the top memory user is also a top CPU user (though not always).&lt;BR /&gt;&lt;BR /&gt;ps -ef | cut -c42-80 | sort -nr | head&lt;BR /&gt;&lt;BR /&gt;repeat and see who is chewing up memory.&lt;BR /&gt;&lt;BR /&gt;Of course there is also the russian roulette method, kill what you think is using up memory and re-check memory.&lt;BR /&gt;&lt;BR /&gt;Finally, if you have an HP contract, you could do a TC on the box and ask them to tell you which processes are taking up memory.&lt;BR /&gt;&lt;BR /&gt;They have a utility that can pull that data from a crash dump.&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Apr 2005 12:25:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533376#M221856</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2005-04-27T12:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage - how to identify the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533377#M221857</link>
      <description>LSOF here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/lsof-4.74/" target="_blank"&gt;http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/lsof-4.74/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 27 Apr 2005 12:32:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533377#M221857</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-04-27T12:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage - how to identify the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533378#M221858</link>
      <description>thanks again, but the server is running (in general) ok, I just wonder what is the memory consumer. doing tc would be fine, if i'd had a production issue - but it's not the case this time.&lt;BR /&gt;&lt;BR /&gt;and - cpu consumer does not correspond to memory this time :(&lt;BR /&gt;&lt;BR /&gt;thanks again - some other ideas?&lt;BR /&gt;&lt;BR /&gt;cheers, m</description>
      <pubDate>Wed, 27 Apr 2005 12:40:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533378#M221858</guid>
      <dc:creator>Mariusz Grabowski_2</dc:creator>
      <dc:date>2005-04-27T12:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage - how to identify the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533379#M221859</link>
      <description>Try this script:&lt;BR /&gt;&lt;BR /&gt;# cat memtop&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# memtop - show top memory users and pid&lt;BR /&gt;# VSZ is in KB&lt;BR /&gt;echo "VSZ(KB)   PID RUSER    COMMAND"&lt;BR /&gt;UNIX95= ps -e -o 'vsz pid ruser args' |sort -nr|head -30&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 27 Apr 2005 12:51:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533379#M221859</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-04-27T12:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage - how to identify the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533380#M221860</link>
      <description>Look like Oracle doesn't clear the shared memory/semaphores.&lt;BR /&gt;When oracle is down for backup use&lt;BR /&gt;ipcs -m  |grep oracle&lt;BR /&gt;ipcs -s  | grep oracle&lt;BR /&gt;or write a little script and schedule it under cron to find out the shared memory/semaphores in use after oracle is down for backup.&lt;BR /&gt;use ipcrm -m id and ipcrm -s id to clear the shared memory/semaphores.&lt;BR /&gt;ps -ef at that time will also tell you the processes running on server</description>
      <pubDate>Wed, 27 Apr 2005 16:00:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533380#M221860</guid>
      <dc:creator>Vincente Fernandes</dc:creator>
      <dc:date>2005-04-27T16:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage - how to identify the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533381#M221861</link>
      <description>The best tool is of course Glance. It will identify great details about specific processes as well as identify the type of memory being consumed. Standard Unix tools are fairly useless for this. Note that if anyone uses kill -9 for database prcesses, this will definitely leave orpahned shared memory areas (as well as corrupted indexes and bad data records). The major memory areas are: kernel, processes (local memory), shared memory and buffer cache. Your buffer cache is probably still set to the (very bad) default of 50% max. So when processes terminate, the buffer cache will grow automatically. For 2Gb RAM, the maximum buffer cache should be about 20% (kernel param = dbc_max_pct).&lt;BR /&gt; &lt;BR /&gt;To see your shared memory area for 32bit programs, get a copy of shminfo from:&lt;BR /&gt; &lt;BR /&gt;ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/</description>
      <pubDate>Wed, 27 Apr 2005 21:30:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533381#M221861</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-04-27T21:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage - how to identify the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533382#M221862</link>
      <description>thanks Bill &amp;amp; Vinc. I've tried to analyze the situation with glance, but RSS in glance do not give a full picture...&lt;BR /&gt;&lt;BR /&gt;i have a dbc_max_pct set to 15%, so 300mb is max for my system.&lt;BR /&gt;&lt;BR /&gt;cheers, mariusz</description>
      <pubDate>Thu, 28 Apr 2005 01:23:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533382#M221862</guid>
      <dc:creator>Mariusz Grabowski_2</dc:creator>
      <dc:date>2005-04-28T01:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage - how to identify the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533383#M221863</link>
      <description>The resident set size (RSS) is the portion of the program which is currently in memory. You can have a 500meg program with a 400meg shared area but have only 200megs in RAM. As noted in the Glance help for RSS, the measurement depends on whether the oprocess has consumed any CPU time during the measurement period.</description>
      <pubDate>Thu, 28 Apr 2005 06:35:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-how-to-identify-the-process/m-p/3533383#M221863</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-04-28T06:35:46Z</dc:date>
    </item>
  </channel>
</rss>

