<?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 leakage in application in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370684#M195583</link>
    <description>Check the above docs for the term EXEC_MAGIC. If the program uses shared memory, the problem may be with shared memory mapping--look for SHARE_MAGIC in the same docs. The executable may need to recompiled or use the chatr command to change the executable. If the "out of memory" message refers to shared memory (no way to tell--the programmer was not nice enough to report that) then get a copy of shminfo from:&lt;BR /&gt; &lt;BR /&gt;ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/&lt;BR /&gt; &lt;BR /&gt;Since shared memory uses a common map for all programs that need it, the map may be exhausted or fragmented. You'll need to look at memory windows as a workaround for shared memory fragmentation. You'll need the latest patches to implement memory windows.</description>
    <pubDate>Fri, 03 Sep 2004 07:16:55 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2004-09-03T07:16:55Z</dc:date>
    <item>
      <title>memory leakage in application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370676#M195575</link>
      <description>Hi !&lt;BR /&gt;On a rp5430 running HPUX11.00 we have an application flooding syslog with the following msgs:"Sep  1 11:34:48 hippo SPOServer[18242]: clnt_dg_create: out of memory&lt;BR /&gt;Sep  1 11:46:16 hippo SPOServer[18242]: xdr_bytes: out of memory". The server itself doesn't have problem with memory. Here's output from ipcs -moba:# &lt;BR /&gt;IPC status from /dev/kmem as of Thu Sep  2 10:40:25 2004&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP   CREATOR    CGROUP NATTCH  SEGSZ  CPID  LPID   ATIME    DTIME    CTIME &lt;BR /&gt;Shared Memory:&lt;BR /&gt;m       0 0x411c0231 --rw-rw-rw-      root      root      root      root      0    348   462   462 20:45:31 20:45:31 20:45:24&lt;BR /&gt;m       1 0x4e0c0002 --rw-rw-rw-      root      root      root      root      1  31040   462   462 20:45:27 20:45:31 20:45:24&lt;BR /&gt;m       2 0x41200ab5 --rw-rw-rw-      root      root      root      root      1   8192   462   474 20:45:27 20:45:24 20:45:24&lt;BR /&gt;m   10803 0x78840edb --rw-rw-rw-       pro  staffwar       pro  staffwar     26   6968 18137 18166 20:15:47 no-entry 20:15:45&lt;BR /&gt;m     404 0x788453f8 --rw-rw-rw-    swuser  staffwar    swuser  staffwar     26 4722360 13121 18166 20:15:47 no-entry 22:18:16&lt;BR /&gt;What does this output imply?&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;NilsI&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Sep 2004 05:22:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370676#M195575</guid>
      <dc:creator>nitren</dc:creator>
      <dc:date>2004-09-02T05:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: memory leakage in application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370677#M195576</link>
      <description>One way to check if application has memory problems is check the memory it is using. Check the the memory it is using every 5-10 mins. If it is contineously grwoing, we can say that it has memory leak. &lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -C "program_name" -o "vsz, ruser, pid"&lt;BR /&gt;&lt;BR /&gt;Run it every 5-10 mins and check how the memory is used. &lt;BR /&gt;&lt;BR /&gt;There are also some products like purify to check the memory leaks.&lt;BR /&gt;&lt;BR /&gt;How much swap space you have??? How much is used and what is the memory utilization??&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 02 Sep 2004 05:34:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370677#M195576</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-09-02T05:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: memory leakage in application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370678#M195577</link>
      <description>'out of memory' need not necessarily indicate a memory leak.&lt;BR /&gt;&lt;BR /&gt;hp gdb can be used to detect memory leaks. links are under &lt;A href="http://www.hp.com/go/wdb" target="_blank"&gt;http://www.hp.com/go/wdb&lt;/A&gt; .</description>
      <pubDate>Thu, 02 Sep 2004 06:46:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370678#M195577</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2004-09-02T06:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: memory leakage in application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370679#M195578</link>
      <description>Hi !&lt;BR /&gt;# swapinfo -tam&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev        4096      76    4020    2%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -     830    -830&lt;BR /&gt;memory     1526     867     659   57%&lt;BR /&gt;total      5622    1773    3849   32%       -       0    -&lt;BR /&gt;UNIX95= ps -eopid,vsz,user,args |sort -rnk2|pg&lt;BR /&gt;21863  495836 pro      /usr/staff/bin/swentobjsv&lt;BR /&gt; 1423   20332 root     /usr/ecc/exec/MHR510/mhragent&lt;BR /&gt;18141   18632 swuser   /usr/staff/etc/wisrpc 1073759963 0 18139 &lt;BR /&gt;18154   16712 swuser   /usr/staff/etc/wisrpc 1073759963 13 18139 &lt;BR /&gt;18155   14024 swuser   /usr/staff/etc/wisrpc 1073759963 14 18139 &lt;BR /&gt;18139   12472 swuser   /usr/staff/etc/wqsrpc 391875 18138&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Sep 2004 08:09:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370679#M195578</guid>
      <dc:creator>nitren</dc:creator>
      <dc:date>2004-09-02T08:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: memory leakage in application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370680#M195579</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As you are already aware, 'out of memory' errors won't get generated if the system runs out of physical memory as HP-UX uses virtual memory.&lt;BR /&gt;&lt;BR /&gt;This could be a result of shot of swap space, insufficient kernel limits for anyof the *siz (_64bit if it is a 64 bit program), kernel tables such as nfile etc., Check with your application vendor on their recommendations for the kernel parameters. You are looking good on swap usage. Running short of physical memory may slow down your system but shouldn't give those errors. To find out memory leaks, run&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -e -o 'vsz pid ruser args' at periodic intervals and find the processes whose vsz is gradually increasing over the time.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 02 Sep 2004 09:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370680#M195579</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-09-02T09:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: memory leakage in application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370681#M195580</link>
      <description>xdr_bytes() is a function in the External Data Representation (XDR) library. It is used to handle data in a platform independent way. The typical way to use this function is to pass in a NULL pointer for a buffer (actually a pointer to a pointer to a NULL) and in that case the memory is dynamically allocated on each call. The programmer is expected to free this memory when no longer needed. You are probably hitting the maxdsiz limit (especially if this is a 32-bit application). Increasing maxdsiz will certainly delay your problems but if the problem is a memory leak the real answer is to fix the program -- or the programmer.&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Thu, 02 Sep 2004 10:11:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370681#M195580</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-09-02T10:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: memory leakage in application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370682#M195581</link>
      <description>Out of memory in most cases has to do with internal limits that are set too low. The program is probably a simple 32bit program and is constrained by the kernel parameter maxdsiz. Use SAM to change this value from the default 64megs to 1700 megs, This should fix the problem. If not, call the mfr or programmer to have them read the mem_mgt and proc_mgt docs in /usr/share/doc. There are several steps that can be taken to increase the memory available to 32bit programs.</description>
      <pubDate>Thu, 02 Sep 2004 21:29:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370682#M195581</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-09-02T21:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: memory leakage in application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370683#M195582</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;I've changed the value of maxdsiz to 2Gb in June.</description>
      <pubDate>Fri, 03 Sep 2004 02:24:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370683#M195582</guid>
      <dc:creator>nitren</dc:creator>
      <dc:date>2004-09-03T02:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: memory leakage in application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370684#M195583</link>
      <description>Check the above docs for the term EXEC_MAGIC. If the program uses shared memory, the problem may be with shared memory mapping--look for SHARE_MAGIC in the same docs. The executable may need to recompiled or use the chatr command to change the executable. If the "out of memory" message refers to shared memory (no way to tell--the programmer was not nice enough to report that) then get a copy of shminfo from:&lt;BR /&gt; &lt;BR /&gt;ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/&lt;BR /&gt; &lt;BR /&gt;Since shared memory uses a common map for all programs that need it, the map may be exhausted or fragmented. You'll need to look at memory windows as a workaround for shared memory fragmentation. You'll need the latest patches to implement memory windows.</description>
      <pubDate>Fri, 03 Sep 2004 07:16:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-leakage-in-application/m-p/3370684#M195583</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-09-03T07:16:55Z</dc:date>
    </item>
  </channel>
</rss>

