- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- "Not enough memory" errors
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
Discussions
Discussions
Forums
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
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-30-2001 06:11 AM
тАО04-30-2001 06:11 AM
Just recently, we have begun to have problems with our nightly database backup (disk to disk hot backup). Part way through we begin seeing memory errors. Oracle reports ORA-04030 - out of process momory when trying to allocate x bytes. In addition, I was getting errors while logged into the HP system doing simple commands like ls (sh: fork function failed. There is not enough memory.).
However, all the while my top command is showing anywhere from 20 - 50 MB free. Any ideas?
Is there kernal parameters that need to be adjusted or do we just need more physical memory?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2001 06:26 AM
тАО04-30-2001 06:26 AM
SolutionCheck your kernel shared memory parameters, I have attached my sample kernel configuration file. I hope your swap space is up to 2Gb.
Check also Documentations on "Using Memory Windows with 11.0". Document Id KBAN00000306
And "Understanding Shared Memory on PA-RISC Systems"
Document Id RCMEMKBAN00000027
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2001 06:30 AM
тАО04-30-2001 06:30 AM
Re: "Not enough memory" errors
See:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x9fa20cb17a32d5118fef0090279cd0f9,00.html
max_dsize parameter in kernel must be configured too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2001 06:55 AM
тАО04-30-2001 06:55 AM
Re: "Not enough memory" errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2001 07:05 AM
тАО04-30-2001 07:05 AM
Re: "Not enough memory" errors
Please run swapinfo. Your swap sapce ( adding all swap spaces) must be at least the size of your memory. If this it not true you will not use all the memory.
By the messages you show it seems to be this kind of misconfiguration ( IMMO).
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2001 10:24 AM
тАО04-30-2001 10:24 AM
Re: "Not enough memory" errors
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 0 1024 0% 0 - 1 /dev/vg00/lvol2
reserve - 869 -869
memory 1539 1539 0 100%
total 2563 2408 155 94% - 0 -
This machine is supposed to have 2GB of physical memory. Do we need to configure 4GB of swap?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2001 12:24 PM
тАО04-30-2001 12:24 PM
Re: "Not enough memory" errors
"theoretically" your swap needs to be the double of your physical memory.
I can give you on a platter that your optimal setting will be somewhere between 2 and 5 GB ;)
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2001 12:31 AM
тАО05-01-2001 12:31 AM
Re: "Not enough memory" errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2001 07:34 AM
тАО05-01-2001 07:34 AM
Re: "Not enough memory" errors
The "memory" line in your "swapinfo -tm" output indicates that your pseudo-swap reservations are
at the maximum. I think this is why you are getting the
memory errors.
If you add another gigabyte of device swap and then
reboot your system, your problem should be solved.
You could also add more device swap and turn off
the pseudo-swap (set swapmem_on=0). This is
recommended for performance reasons, particularly
if your applications use a lot of locked memory
(e.g., a database server). In any case, if you have
enough disk, I would recommend at least 3Gb of
swap space for your system.
Choose a different disk, if possible, for each additional 1-gig swap device that you create. For example, if /dev/dsk/c0t1d0 and /dev/dsk/c1t1d0 are two disks in vg01 that can be used, then do something like:
lvcreate -n swaplv1 -C y -r n vg01
lvcreate -n swaplv2 -C y -r n vg01
and then
lvextend -L 1000 /dev/vg01/swaplv1 /dev/dsk/c0t1d0
lvextend -L 1000 /dev/vg01/swaplv2 /dev/dsk/c1t1d0
Since the priority of your primary swap is at the default value 1, you can then append the following lines to /etc/fstab :
/dev/vg01/swaplv1 . swap defaults 0 0
/dev/vg01/swaplv2 . swap defaults 0 0
Set swapmem_on=0 in SAM (if you choose to do so) and then reboot.
HTH
Mladen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2001 05:56 PM
тАО05-09-2001 05:56 PM
Re: "Not enough memory" errors
Although the users provided excellent feedback as to how to correct this problem, you still have a tuning issue.
1. determine what your hit ratio is, and see if you can lower your SGA. Sometimes a smaller SGA in a huge environment is more beneficial than a large one. Don't forget about the DB Buffers!
2. Keep in mind the UGA and PGA with memory management.
3. Avoid paging and swapping at all cost.
Regards,
Satar Naghshineh
Oracle DBA/UNIX sys admin