<?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: Swapspace is full in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592303#M375035</link>
    <description>&amp;gt;Instead rebooting or adding lvols, is there any other solution for this?&lt;BR /&gt;&lt;BR /&gt;You must kill enough processes so you can figure out what to do.  Basically you have too much device swap (5 X memory) and too many processes running.</description>
    <pubDate>Mon, 01 Mar 2010 11:37:05 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-03-01T11:37:05Z</dc:date>
    <item>
      <title>Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592294#M375026</link>
      <description>I am not able to run any command on the host.&lt;BR /&gt;&lt;BR /&gt;Error is below show.&lt;BR /&gt;# swapinfo -ta&lt;BR /&gt;sh: The fork function failed. There is not enough memory available.&lt;BR /&gt;&lt;BR /&gt;# UNIX95= ps -ef -o vsz,ruser,pid|sort -rn&lt;BR /&gt;sh: The fork function failed. There is not enough memory available.&lt;BR /&gt;&lt;BR /&gt;Experts,&lt;BR /&gt;&lt;BR /&gt;can somebody help me?&lt;BR /&gt;&lt;BR /&gt;Instead rebooting or adding lvol's, is there any other solution for this?&lt;BR /&gt;&lt;BR /&gt;A few min before status was that i can see.&lt;BR /&gt;&lt;BR /&gt;# swapinfo -atm&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       0    4096    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev       40000       0   40000    0%       0       -    1  /dev/vg00/lvol3&lt;BR /&gt;dev       40000       0   40000    0%       0       -    1  /dev/vg00/lvol7&lt;BR /&gt;dev       40000       0   40000    0%       0       -    1  /dev/vg00/lvol8&lt;BR /&gt;reserve       -  124096 -124096&lt;BR /&gt;memory    25568   25565       3  100%&lt;BR /&gt;total    149664  149661       3  100%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Mar 2010 08:59:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592294#M375026</guid>
      <dc:creator>samay_hcl</dc:creator>
      <dc:date>2010-03-01T08:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592295#M375027</link>
      <description>U have huger swap and compared to memory, what is the application you are running.&lt;BR /&gt;&lt;BR /&gt;As of now there seems to be no solution other than reboot the server and you have have to fine tune the application thins check for potential memoey leaks in the server.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Mon, 01 Mar 2010 09:08:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592295#M375027</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-03-01T09:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592296#M375028</link>
      <description>huge* swap&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Mon, 01 Mar 2010 09:09:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592296#M375028</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-03-01T09:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592297#M375029</link>
      <description>run glance or top command ans see if its work. you need to find out which process is consuming more space . try to gpm this is exact thing which can tell you that which process is consuming more memory.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;in your case physical memory is 100% full . rigght now there is no any option . you can take your server reboot.</description>
      <pubDate>Mon, 01 Mar 2010 09:17:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592297#M375029</guid>
      <dc:creator>Jupinder Bedi</dc:creator>
      <dc:date>2010-03-01T09:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592298#M375030</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;if the additional swap lvols are on the same disk, the io will kill your server.&lt;BR /&gt;&lt;BR /&gt;check which app./process consume so much memory and swap space.&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Mon, 01 Mar 2010 09:17:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592298#M375030</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2010-03-01T09:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592299#M375031</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;if you can't "fork", the last solution is to reboot the server.&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Mon, 01 Mar 2010 09:18:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592299#M375031</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2010-03-01T09:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592300#M375032</link>
      <description>I have one more solution for you . if you dont want to create the lvol than you can create the swap space by using mkfile command .</description>
      <pubDate>Mon, 01 Mar 2010 09:23:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592300#M375032</guid>
      <dc:creator>Jupinder Bedi</dc:creator>
      <dc:date>2010-03-01T09:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592301#M375033</link>
      <description>probably you application has some  kind of memory leak which is causing memory and swap 100% utilization.&lt;BR /&gt;&lt;BR /&gt;you can wait for some time and see if utilization comes down in order to run commands else reboot is the only option.&lt;BR /&gt;&lt;BR /&gt;Once your system comes back to normal you will need to keep an eye on your application&lt;BR /&gt;&lt;BR /&gt;Javed</description>
      <pubDate>Mon, 01 Mar 2010 09:28:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592301#M375033</guid>
      <dc:creator>Javed Khan_1</dc:creator>
      <dc:date>2010-03-01T09:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592302#M375034</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;your swapinfo looks weird:&lt;BR /&gt;/dev/vg00/lvol2 is normally used for primary swap, but on most hpux systems /dev/vg00/lvol3 is used for the root partition.&lt;BR /&gt;/dev/vg00/lvol8 is normally also used for an hpux partition, e.g. /usr&lt;BR /&gt;Do you run a standard hpux installation, or have you recently changed the swap configuration?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Mon, 01 Mar 2010 10:14:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592302#M375034</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2010-03-01T10:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592303#M375035</link>
      <description>&amp;gt;Instead rebooting or adding lvols, is there any other solution for this?&lt;BR /&gt;&lt;BR /&gt;You must kill enough processes so you can figure out what to do.  Basically you have too much device swap (5 X memory) and too many processes running.</description>
      <pubDate>Mon, 01 Mar 2010 11:37:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592303#M375035</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-03-01T11:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592304#M375036</link>
      <description>You obviously added on swap........but what concerns me is where you did it!!&lt;BR /&gt;&lt;BR /&gt;/dev/vg00/lvol3 is /   on my box&lt;BR /&gt;/dev/vg00/lvol7 is /usr  &lt;BR /&gt;/dev/vg00/lvol8 is /var&lt;BR /&gt;&lt;BR /&gt;Now lvol7 &amp;amp; lvol8 might change as to the f/s associated...but lvol1, lvol2, lvol3 doesn't as a general rule.&lt;BR /&gt;&lt;BR /&gt;So...I'd frankly if I'm seeing this right, you might need to rebuild that box from a recovery (tape or net).&lt;BR /&gt;&lt;BR /&gt;Rita&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Mar 2010 13:37:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592304#M375036</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2010-03-01T13:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592305#M375037</link>
      <description>Apology to John Korterman...just noticed that he saw what I saw-first.&lt;BR /&gt;&lt;BR /&gt;/rcw</description>
      <pubDate>Mon, 01 Mar 2010 15:08:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592305#M375037</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2010-03-01T15:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592306#M375038</link>
      <description>"...U have huger swap and compared to memory, what is the application you are running...."&lt;BR /&gt;&lt;BR /&gt;Sorry, I don't see the relevance.&lt;BR /&gt;&lt;BR /&gt;"...if the additional swap lvols are on the same disk, the io will kill your server...."&lt;BR /&gt;&lt;BR /&gt;Sorry, only to a point and because the o/s is also in vg00, else, io will be constant as 2ndary swap is written too in round robin order and not in parallel.  &lt;BR /&gt;&lt;BR /&gt;Going up:  lvol2&amp;gt;lvol3&amp;gt;lvol7&amp;gt;lvol8&lt;BR /&gt;Going down: lvol8&amp;gt;lvol7&amp;gt;lvol3&amp;gt;lvol2&lt;BR /&gt;&lt;BR /&gt;a) first reboot the server since you no longer have any memory&lt;BR /&gt;&lt;BR /&gt;b) 2nd add more swap, another vg then vg00 would be preferred since the o/s is always the busiest disk.  In the future, separate all your 2ndary swap from vg00 and onto another vg with other disks, then you'll be getting more spindles involved&lt;BR /&gt;&lt;BR /&gt;c) Check for a memeory leak using this procedure:&lt;BR /&gt;&lt;BR /&gt;1) 15 to 20 minute cron until id'd memeory leak&lt;BR /&gt;&lt;BR /&gt;2) UNIX95=1 ps -ef -o vsz,pid,ppid,state,wchan,comm | sort -rn | head -15 &amp;gt;&amp;gt; /dir/outfile&lt;BR /&gt;&lt;BR /&gt;Note:  Put this into a script and add some headers and $DATE's with timestamps to make a readable report&lt;BR /&gt;&lt;BR /&gt;3) Check the report from day to day, note any growth in the first column, the vsz column.  A growing vsz will id the pid and ppid with the memory leak.</description>
      <pubDate>Mon, 01 Mar 2010 15:57:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592306#M375038</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-03-01T15:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592307#M375039</link>
      <description>OMG&lt;BR /&gt;&lt;BR /&gt;"You obviously added on swap........but what concerns me is where you did it!!"&lt;BR /&gt;&lt;BR /&gt;Geez Rita, you're right!!!</description>
      <pubDate>Mon, 01 Mar 2010 15:59:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592307#M375039</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-03-01T15:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Swapspace is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592308#M375040</link>
      <description>when I see 100% swap, I react by adding filesystem swap (not a good idea just short term temporary w/a) then I investigate where paging taking place and why.. once root cause  identified, if i need to add swap, Device swap is best for performance and need to be assigned on different disks than primary swap.&lt;BR /&gt;&lt;BR /&gt;t#</description>
      <pubDate>Tue, 02 Mar 2010 13:29:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapspace-is-full/m-p/4592308#M375040</guid>
      <dc:creator>T. M. Louah</dc:creator>
      <dc:date>2010-03-02T13:29:03Z</dc:date>
    </item>
  </channel>
</rss>

