- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- kernel: Out of Memory
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
02-22-2007 02:09 AM
02-22-2007 02:09 AM
kernel: Out of Memory
In the /var/log/messages I've noticed a lot of Out of Memory errors. Also the server sometimes hangs and we need to reboot to get round this.
Please can anyone help me to resolve the Out Memory and system hang problems?
Thank you.
Feb 22 13:36:17 leda kernel: Out of Memory: Killed process 24766 (java).
Feb 22 13:36:17 leda kernel: Out of Memory: Killed process 25746 (java).
Feb 22 13:36:17 leda kernel: Out of Memory: Killed process 28559 (java).
Feb 22 13:36:17 leda kernel: Out of Memory: Killed process 30900 (java).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2007 02:40 AM
02-22-2007 02:40 AM
Re: kernel: Out of Memory
See:
http://www-128.ibm.com/developerworks/java/library/j-leaks/
http://www.onjava.com/pub/a/onjava/2001/08/22/optimization.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2007 07:04 AM
02-22-2007 07:04 AM
Re: kernel: Out of Memory
It seems java applicaiton is a culprit on your case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2007 05:44 PM
02-22-2007 05:44 PM
Re: kernel: Out of Memory
-Xms
-Xmx
this way you can limit the memory usage of java programs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2007 04:32 AM
02-23-2007 04:32 AM
Re: kernel: Out of Memory
What is your swap set to as well?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2007 05:09 AM
02-23-2007 05:09 AM
Re: kernel: Out of Memory
I have attached results of free and vmstat.
Please have a look at the output of these two commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2007 01:52 AM
02-26-2007 01:52 AM
Re: kernel: Out of Memory
You should also see information from the kernel at the time of the 'killed' message that indicate how much memory was available
at the time.
Recommendations would be to:
- update to the RHEL3 U8 kernel (2.4.21-47)
as there have been subtle adjustments to
the oom-killer and the vm
- consideration of using ulimit to limit
users virtual memory consumption
- limiting high io activity such as backups
to slack periods of time
- adding more memory to the system.
- use of top and ps to get more of a picture
of the application use
- use of sar data to get a picture on overall
memory consumption
- monitoring /proc/meminfo will give you some
more granularity on where the allocations
are occurring.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2007 09:17 AM
02-26-2007 09:17 AM
Re: kernel: Out of Memory
Can you post a "free" result?
Then, i think is an application problem.
I have same problem with a java bug, when for a bad code (mysql connection) the java process generate thousand threads to fill memory.
Check also the number of process with "top".
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2007 10:25 PM
02-26-2007 10:25 PM
Re: kernel: Out of Memory
I have attached a tar zip file which contains two files. The first file is the messages file where you can see "Out of Memory" errors which occurred around 13:30.
The second file is part of a log file which was generated by a shell script that I ran as a cron job every 10 minutes to keep track of the date, free -m, vmstat and ps commands.
I am currently at the log file to see if I can find anything unusual which my have caused the system to report "out of Memory" errors.
Hope you can spot something in the log file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2007 06:06 AM
02-27-2007 06:06 AM
Re: kernel: Out of Memory
I don't know what you attached, but what I got was a single file with what looks like the output of the cron job...
A quick look:
- you have ~1280 processes on this system with
2gb of memory
- Oracle and Java appear to be used heavily
- I would suspect process creation/deletion is
somewhat rapid, since I think that pids have
wrapped around
I would:
- validate settings for Oracle (with Oracle)
- some Linux kernel settings can affect Oracle behavior (hugetlb_pool) and reduce vm
use
- see if shutting down Oracle and friends during times of oom killing relieves the problem. See if it comes back right away after restarting.
After that, you'll need far more detailed analysis than can be done in this forum. I would suggest opening a support call at that time.