<?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 memory leakage in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582401#M924489</link>
    <description>Hi All.&lt;BR /&gt;&lt;BR /&gt;Not a problem , just a doubt.&lt;BR /&gt;What is memory leakage?&lt;BR /&gt;how it affects the system performance.&lt;BR /&gt;and what are the tools for that.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;sachin</description>
    <pubDate>Thu, 20 Sep 2001 13:06:46 GMT</pubDate>
    <dc:creator>Sachin Soni_1</dc:creator>
    <dc:date>2001-09-20T13:06:46Z</dc:date>
    <item>
      <title>memory leakage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582401#M924489</link>
      <description>Hi All.&lt;BR /&gt;&lt;BR /&gt;Not a problem , just a doubt.&lt;BR /&gt;What is memory leakage?&lt;BR /&gt;how it affects the system performance.&lt;BR /&gt;and what are the tools for that.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;sachin</description>
      <pubDate>Thu, 20 Sep 2001 13:06:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582401#M924489</guid>
      <dc:creator>Sachin Soni_1</dc:creator>
      <dc:date>2001-09-20T13:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: memory leakage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582402#M924490</link>
      <description>A memory leak is when an application grabs memory but doesn't properly release it.  Eventually the application if not checked, the application could grab all the memory available on the system thus not allowing anything else to run.&lt;BR /&gt;&lt;BR /&gt;Typical tools to check for this would be top, glance, and ps, e.g.&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -e -o vsz=Kbytes&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Thu, 20 Sep 2001 13:12:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582402#M924490</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-09-20T13:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: memory leakage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582403#M924491</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Memory leakage happens when a program has a bug that causes it to use more and more memory without releasing it properly.  For example, we are running an Oracle web server here that has a memory leak.  As it runs I can use the 'ps' command to see how much memory it uses, and it will continue to increase as long as the program runs, even when all the users disconnect at the end of the day.  The answer is to get the bug fixed, or to just stop and restart the offending program at regular intervals.  Our web server gets started and stopped each day, so it isn't a big problem for us.&lt;BR /&gt;&lt;BR /&gt;I'm only a novice C programmer, but I believe that misuse of the 'malloc' function for allocating memory can cause memory leakage in C programs.  Probably one of the other local experts can explain it better.&lt;BR /&gt;&lt;BR /&gt;A memory leak in one of the system daemons can be a problem, but HP-UX is very mature and those kind of problems are extremely rare.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Sep 2001 13:16:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582403#M924491</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2001-09-20T13:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: memory leakage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582404#M924492</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;It's just what it sounds like. The most common&lt;BR /&gt;error is that the programmer makes a call to a memory allocation function malloc(),calloc(),realloc(), or the system call sbrk() without&lt;BR /&gt;making a matching call to the function free(). One thing to note is that the malloc(), calloc(), etc (as opposed to the sbrk() system call) do not actually return memory to the OS but just make the memory available to the process for reuse. Processes with memory leaks grow with time and can eventually hog all the resources. This is the main reason for not setting maxdsiz to a very large value especially on development machines. The memeory allocations fail when process maxdsiz is reached rather that when almost all the system resources are exhausted.&lt;BR /&gt;&lt;BR /&gt;One fairly easy way to watch for memory leaks is to use the ps -el command and look at the SZ column. You can also unix the UNIX95 versions of ps to do the same thing.&lt;BR /&gt;&lt;BR /&gt;Clay</description>
      <pubDate>Thu, 20 Sep 2001 13:17:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582404#M924492</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-09-20T13:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: memory leakage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582405#M924493</link>
      <description>Hi&lt;BR /&gt;Another way to monitor memory leak will be to use &lt;BR /&gt;#ipcs -mob command.&lt;BR /&gt;Large number of same hex KEY numbers with NATTCH value to 0, can be suspected for memory leaks.&lt;BR /&gt;The hex numbers are normally applicaion specified.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Prashant.</description>
      <pubDate>Thu, 20 Sep 2001 13:50:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582405#M924493</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2001-09-20T13:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: memory leakage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582406#M924494</link>
      <description>Hi Sachin,&lt;BR /&gt;&lt;BR /&gt;Have a look at this thread.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=686b33751acd447b4b/screen=ckiDisplayDocument?docId=200000011495769" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=686b33751acd447b4b/screen=ckiDisplayDocument?docId=200000011495769&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Sep 2001 15:31:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582406#M924494</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-09-20T15:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: memory leakage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582407#M924495</link>
      <description>As stated above a memory leak results when a process&lt;BR /&gt;allocates memory from the operating system, but does&lt;BR /&gt;not return it when done.   It is not much of a problem &lt;BR /&gt;for programs that run for a short time, as all memory&lt;BR /&gt;is returned when the program terminates.&lt;BR /&gt;&lt;BR /&gt;I worked with a SUN system that died due to a memory&lt;BR /&gt;leak.  There was a requirement to watch the size of&lt;BR /&gt;the Oracle processes on the system.  A monitoring&lt;BR /&gt;process was slowly leaking memory.  Post-mortem &lt;BR /&gt;analysis showed available swap space slow decreased&lt;BR /&gt;over a period of two weeks.  During the last day free&lt;BR /&gt;memory decreased until there was no memory to &lt;BR /&gt;launch a new process.</description>
      <pubDate>Thu, 20 Sep 2001 23:57:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage/m-p/2582407#M924495</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2001-09-20T23:57:46Z</dc:date>
    </item>
  </channel>
</rss>

