- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- exec(2): insufficient swap or memory available.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 07:55 PM
04-27-2008 07:55 PM
we were unable to start the oracle listener and db2. the error that we hit are:
1.
exec(2): insufficient swap or memory available.
and
2.
return not enough space
what should we do? when i run topas, this the output:
Memory: 6356392K (4444036K) real, 15465712K (10981952K) virtual, 36648K free Pa
ge# 1/32
hope to hear from you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 08:13 PM
04-27-2008 08:13 PM
Re: exec(2): insufficient swap or memory available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 08:13 PM
04-27-2008 08:13 PM
Re: exec(2): insufficient swap or memory available.
What is your swapinfo -tm output?
Do you enable swapmem_on ? this is for pseudo swap. Check then revert back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 08:20 PM
04-27-2008 08:20 PM
Re: exec(2): insufficient swap or memory available.
how to check this enable swapmem_on for pseudo swap in our server?
attached is the output. hope to hear from you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 08:25 PM
04-27-2008 08:25 PM
Re: exec(2): insufficient swap or memory available.
#kmtune -q swapmem_on
11iv2
#kctune -q swapmem_on
and also check dbc_max_pct and dbc_min_pct values also.
You are seems to be in critical situation.
another extract solution is add an additional swap space.but first check the above values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 08:33 PM
04-27-2008 08:33 PM
Re: exec(2): insufficient swap or memory available.
your swap_mem_on is enabled, you have less swap space., you need to have 2x of your physical memory
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 08:35 PM
04-27-2008 08:35 PM
Re: exec(2): insufficient swap or memory available.
you do not have enough have enough swap configured (at least for the amount of physical memory you have).
>Topas ??
Is this an AIX machine? :)
have a look at this post:
http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=6516
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 08:37 PM
04-27-2008 08:37 PM
Re: exec(2): insufficient swap or memory available.
attached is the kernel values.
our os is hpux 11.23
hope to hear from you. hopefully there is a workaround and permanent solution to this. thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 09:23 PM
04-27-2008 09:23 PM
Re: exec(2): insufficient swap or memory available.
anyway, the issue is you have less swap space. add a swap space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 10:19 PM
04-27-2008 10:19 PM
Re: exec(2): insufficient swap or memory available.
what is my current swap space? appreciate you can teach me how to read the swapinfo -tam output? the link how to increase the swap memory is very useful. hope to hear from you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 10:28 PM
04-27-2008 10:28 PM
Re: exec(2): insufficient swap or memory available.
how U create swap space in Ur system, here is process:-
1) lvcreate -C y -m 1 -L
2) Next create an entry in /etc/fstab like this:
/dev/vg00/lvolx ... swap pri=2 0 0 --- (check same parameter already is there)
3) swapon -a
Hope it'll help 4 U.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 10:29 PM
04-27-2008 10:29 PM
Re: exec(2): insufficient swap or memory available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 10:38 PM
04-27-2008 10:38 PM
Re: exec(2): insufficient swap or memory available.
i can't find any swap entry in /etc/fstab.
below is the vg00 extraction from our /etc/fstab.
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand vxfs tranflush 0 1
/dev/vg00/lvol4 /home vxfs delaylog 0 2
/dev/vg00/lvol5 /opt vxfs delaylog 0 2
/dev/vg00/lvol6 /tmp vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
hope to hear from you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 10:57 PM
04-27-2008 10:57 PM
Re: exec(2): insufficient swap or memory available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 10:57 PM
04-27-2008 10:57 PM
Re: exec(2): insufficient swap or memory available.
please send u swapinfo -tam out put
u can use the swapinfo command to see u swap space
please send out put of these two
#swapinfo -tam
#dmesg | grep phys
thanks and regards
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 11:01 PM
04-27-2008 11:01 PM
Re: exec(2): insufficient swap or memory available.
To fully utilize all of the RAM on a system there must be a sufficient amount
of virtual memory to accomodate all processes . The virtual memory be at least eaqual to physical memory plus application
size.
For a process
to spawn it needs a sufficient amount of virtual memory to be placed in
reserve. There should be a sufficient amount of free device swap to open any
processes that may be spawned during the course of operations. By subtracting
thereserve from the device total you can determine this value.
If there is an insufficient amount available ( typically from device swap)
you will receive an error : cannot fork : not enough virtual memory. If
this error is received , you will need to allocate more device swap. This
should be configured on a disk with no other swap partitions, and ideally of
the same size and priority of existing swap logical volumes to enable
interleaving.
thanks and regards
sajjad sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 11:03 PM
04-27-2008 11:03 PM
Re: exec(2): insufficient swap or memory available.
u can create new device swap
in another volume group
eg: lvcreate -L 1000 /dev/vg01/lvol9
swapon /dev/vg01/lvol9
then u have to make an entry in /etc/fstab file for next reboot onwards if u need it
thanks and regards
sajjadsahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 11:06 PM
04-27-2008 11:06 PM
Re: exec(2): insufficient swap or memory available.
attached is the phys output. hope to hear from you. thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 11:06 PM
04-27-2008 11:06 PM
Re: exec(2): insufficient swap or memory available.
attached is the phys output. hope to hear from you. thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 11:27 PM
04-27-2008 11:27 PM
Re: exec(2): insufficient swap or memory available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 11:29 PM
04-27-2008 11:29 PM
Re: exec(2): insufficient swap or memory available.
You already have 2* mem as swap. For temporary solution add another swap device. Also reduce the dbc_max_pct value to 15 as a first step.
If it is HPUX 11.23, do the below commands immediately:
kctune dbc_max_pct=15
kctune dbc_min_pct=5
And add additional swap device or swap file as temporary solution.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 11:31 PM
04-27-2008 11:31 PM
Re: exec(2): insufficient swap or memory available.
>what is my current swap space?
Just look at the total line.
You can also use SAM to add swapspace.
>I can't find any swap entry in /etc/fstab.
Primary swap doesn't need to be listed.
>attached is the phys output.
Unfortunately using dmesg is not perfect and the info could be overwritten. You'll need to use SAM to get the physical memory size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2008 12:01 AM
04-28-2008 12:01 AM
SolutionWhat I meant was swap on a file system as temporary solution.
If you have enough free space avble in /oratemp dir, you can create a 100MB swap as below:
swapon -p2 -l 100M /oratemp
(-p2 priority 2)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2008 12:11 AM
04-28-2008 12:11 AM
Re: exec(2): insufficient swap or memory available.
u already used 100 percent so there is no space there. the solution is u have to create new device swap i mentioned in my previous thread how to create new device swap once u created a new device swap if u want to permanetly i mean next boot time onwards u have to make an entry in /etc/fstab file ok. also in my previous thread i briefly explained u can check it that one also
thanks and regards
Sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2008 12:17 AM
04-28-2008 12:17 AM
Re: exec(2): insufficient swap or memory available.
in swapinfo -tam
output
The key areas u have to monitor reserve , memory and total
I think now u can easily understand
thanks and regards
sajjad