<?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 leak script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780639#M77084</link>
    <description>Thanks for the correction Stefan. You can actually modify the file "proc_mem_leak" and change the default value of VSSthreshold from 30000 to a lower value. It does not have to be at 30MB.</description>
    <pubDate>Tue, 06 Aug 2002 15:24:14 GMT</pubDate>
    <dc:creator>S.K. Chan</dc:creator>
    <dc:date>2002-08-06T15:24:14Z</dc:date>
    <item>
      <title>memory leak script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780633#M77078</link>
      <description>Hello everyone,&lt;BR /&gt;&lt;BR /&gt;does anyone here have a script that reports on memory leak that they would lilke to share with. Any help will be greatly appreciated.</description>
      <pubDate>Tue, 06 Aug 2002 14:41:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780633#M77078</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2002-08-06T14:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: memory leak script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780634#M77079</link>
      <description>&lt;BR /&gt;I doubt very much there is a script which will do this for you. You have to be a bit more precise in order to find a memory leak. The method I use is;&lt;BR /&gt;&lt;BR /&gt;1. reboot your server but do not start any apps (eg. Oracle)&lt;BR /&gt;2. use vmstat to get free memory total.&lt;BR /&gt;3. start apps.&lt;BR /&gt;4. use vmstat to get free memory total.&lt;BR /&gt;5. shutdown apps.&lt;BR /&gt;6. same as 4. Now - the free memory total should go back to what is was in 2. before  the apps were started. If it doesnt you have a memory leak.&lt;BR /&gt;7. repeat for users - check free mem using vmstat, let users on, get users off, does free memory return to previous level ? if not you have a leak.&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Aug 2002 14:51:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780634#M77079</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-08-06T14:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: memory leak script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780635#M77080</link>
      <description>Best way is via a small c program that does lots of mallocs and no frees in a loop!&lt;BR /&gt;&lt;BR /&gt;Glance/top to watch Stack size increase..&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Tue, 06 Aug 2002 14:52:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780635#M77080</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-08-06T14:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: memory leak script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780636#M77081</link>
      <description>Another approach (if you have glance) is to make use of glance's adviser syntax file (proc_mem_leak) to get your numbers.&lt;BR /&gt;# cd /opt/perf/examples&lt;BR /&gt;# glance -adviser_only -syntax ./proc_mem_leak -j30&lt;BR /&gt;==&amp;gt; Samples every 30secs.&lt;BR /&gt;&lt;BR /&gt;You can easily modify "proc_mem_leak" to capture a wide scope of data. For exmaple by default the VSS is set to 30MB. You can change that setting and you'll get more data out of the glance output.</description>
      <pubDate>Tue, 06 Aug 2002 14:54:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780636#M77081</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-08-06T14:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: memory leak script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780637#M77082</link>
      <description>In the previous reply the glance memory leak file is in this dir, cd here first;&lt;BR /&gt;&lt;BR /&gt;/opt/perf/examples/adviser</description>
      <pubDate>Tue, 06 Aug 2002 15:17:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780637#M77082</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-08-06T15:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: memory leak script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780638#M77083</link>
      <description>Ive been running that glance adviser on some of our production servers and Im afraid it isnt very good, it only shows processes with VSS &amp;gt; 30Mb !</description>
      <pubDate>Tue, 06 Aug 2002 15:19:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780638#M77083</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-08-06T15:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: memory leak script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780639#M77084</link>
      <description>Thanks for the correction Stefan. You can actually modify the file "proc_mem_leak" and change the default value of VSSthreshold from 30000 to a lower value. It does not have to be at 30MB.</description>
      <pubDate>Tue, 06 Aug 2002 15:24:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780639#M77084</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-08-06T15:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: memory leak script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780640#M77085</link>
      <description>Hi Sanman,&lt;BR /&gt;&lt;BR /&gt;You can use this command to find out how much memory is being used after booting up.&lt;BR /&gt;UNIX95= ps -e -o vsz=Kbytes -o pid,args=Command-Line | sort -rnk1 &lt;BR /&gt;It is all one line.&lt;BR /&gt;Then try it again later to find out what is using the most memory.&lt;BR /&gt;&lt;BR /&gt;Eileen&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Aug 2002 15:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leak-script/m-p/2780640#M77085</guid>
      <dc:creator>Eileen Millen</dc:creator>
      <dc:date>2002-08-06T15:33:53Z</dc:date>
    </item>
  </channel>
</rss>

