1752796 Members
6148 Online
108789 Solutions
New Discussion юеВ

Swapspace is full

 
samay_hcl
Advisor

Swapspace is full

I am not able to run any command on the host.

Error is below show.
# swapinfo -ta
sh: The fork function failed. There is not enough memory available.

# UNIX95= ps -ef -o vsz,ruser,pid|sort -rn
sh: The fork function failed. There is not enough memory available.

Experts,

can somebody help me?

Instead rebooting or adding lvol's, is there any other solution for this?

A few min before status was that i can see.

# swapinfo -atm
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
dev 40000 0 40000 0% 0 - 1 /dev/vg00/lvol3
dev 40000 0 40000 0% 0 - 1 /dev/vg00/lvol7
dev 40000 0 40000 0% 0 - 1 /dev/vg00/lvol8
reserve - 124096 -124096
memory 25568 25565 3 100%
total 149664 149661 3 100% - 0 -


Thanks!

14 REPLIES 14
Kapil Jha
Honored Contributor

Re: Swapspace is full

U have huger swap and compared to memory, what is the application you are running.

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.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Kapil Jha
Honored Contributor

Re: Swapspace is full

huge* swap

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Jupinder Bedi
Respected Contributor

Re: Swapspace is full

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.


in your case physical memory is 100% full . rigght now there is no any option . you can take your server reboot.
All things excellent are as difficult as they are rare
Michal Kapalka (mikap)
Honored Contributor

Re: Swapspace is full

hi,

if the additional swap lvols are on the same disk, the io will kill your server.

check which app./process consume so much memory and swap space.

mikap
Michal Kapalka (mikap)
Honored Contributor

Re: Swapspace is full

hi,

if you can't "fork", the last solution is to reboot the server.

mikap
Jupinder Bedi
Respected Contributor

Re: Swapspace is full

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 .
All things excellent are as difficult as they are rare
Javed Khan_1
Valued Contributor

Re: Swapspace is full

probably you application has some kind of memory leak which is causing memory and swap 100% utilization.

you can wait for some time and see if utilization comes down in order to run commands else reboot is the only option.

Once your system comes back to normal you will need to keep an eye on your application

Javed
Never Give Up
john korterman
Honored Contributor

Re: Swapspace is full

Hi,

your swapinfo looks weird:
/dev/vg00/lvol2 is normally used for primary swap, but on most hpux systems /dev/vg00/lvol3 is used for the root partition.
/dev/vg00/lvol8 is normally also used for an hpux partition, e.g. /usr
Do you run a standard hpux installation, or have you recently changed the swap configuration?


regards,
John K.
it would be nice if you always got a second chance
Dennis Handly
Acclaimed Contributor

Re: Swapspace is full

>Instead rebooting or adding lvols, is there any other solution for this?

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.