<?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: kernel: Out of Memory in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949602#M27150</link>
    <description>Hello Danesh!&lt;BR /&gt;&lt;BR /&gt;Can you post a "free" result?&lt;BR /&gt;&lt;BR /&gt;Then, i think is an application problem.&lt;BR /&gt;I have same problem with a java bug, when for a bad code (mysql connection) the java process generate thousand threads to fill memory.&lt;BR /&gt;&lt;BR /&gt;Check also the number of process with "top".&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
    <pubDate>Mon, 26 Feb 2007 17:17:20 GMT</pubDate>
    <dc:creator>Alpha977</dc:creator>
    <dc:date>2007-02-26T17:17:20Z</dc:date>
    <item>
      <title>kernel: Out of Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949595#M27143</link>
      <description>I am running RHEL AS 3 (Taroon) on a HP DL380 G3 server. The server has 2GB of RAM.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Please can anyone help me to resolve the Out Memory and system hang problems?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Feb 22 13:36:17 leda kernel: Out of Memory: Killed process 24766 (java).&lt;BR /&gt;Feb 22 13:36:17 leda kernel: Out of Memory: Killed process 25746 (java).&lt;BR /&gt;Feb 22 13:36:17 leda kernel: Out of Memory: Killed process 28559 (java).&lt;BR /&gt;Feb 22 13:36:17 leda kernel: Out of Memory: Killed process 30900 (java).&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Feb 2007 10:09:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949595#M27143</guid>
      <dc:creator>Danesh Qureshi</dc:creator>
      <dc:date>2007-02-22T10:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: kernel: Out of Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949596#M27144</link>
      <description>This problem you should troubleshoot at application level.&lt;BR /&gt;&lt;BR /&gt;See:&lt;BR /&gt;&lt;A href="http://www-128.ibm.com/developerworks/java/library/j-leaks/" target="_blank"&gt;http://www-128.ibm.com/developerworks/java/library/j-leaks/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.onjava.com/pub/a/onjava/2001/08/22/optimization.html" target="_blank"&gt;http://www.onjava.com/pub/a/onjava/2001/08/22/optimization.html&lt;/A&gt;</description>
      <pubDate>Thu, 22 Feb 2007 10:40:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949596#M27144</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-02-22T10:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: kernel: Out of Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949597#M27145</link>
      <description>You may use "free" to check the memory usage when you see the problem.&lt;BR /&gt;&lt;BR /&gt;It seems java applicaiton is a culprit on your case.</description>
      <pubDate>Thu, 22 Feb 2007 15:04:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949597#M27145</guid>
      <dc:creator>George Liu_4</dc:creator>
      <dc:date>2007-02-22T15:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: kernel: Out of Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949598#M27146</link>
      <description>Take a look at the following java options:&lt;BR /&gt;&lt;BR /&gt; -Xms&lt;SIZE&gt;        set initial Java heap size&lt;BR /&gt; -Xmx&lt;SIZE&gt;        set maximum Java heap size&lt;BR /&gt;&lt;BR /&gt;this way you can limit the memory usage of java programs.&lt;/SIZE&gt;&lt;/SIZE&gt;</description>
      <pubDate>Fri, 23 Feb 2007 01:44:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949598#M27146</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2007-02-23T01:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: kernel: Out of Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949599#M27147</link>
      <description>Java is such a memory consumer.  Any way to limit the amount of users connected?  &lt;BR /&gt;&lt;BR /&gt;What is your swap set to as well?</description>
      <pubDate>Fri, 23 Feb 2007 12:32:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949599#M27147</guid>
      <dc:creator>Sheriff Andy</dc:creator>
      <dc:date>2007-02-23T12:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: kernel: Out of Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949600#M27148</link>
      <description>Unfortunatley I cannot limit the number of users connected.&lt;BR /&gt;&lt;BR /&gt;I have attached results of free and vmstat. &lt;BR /&gt;&lt;BR /&gt;Please have a look at the output of these two commands.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Feb 2007 13:09:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949600#M27148</guid>
      <dc:creator>Danesh Qureshi</dc:creator>
      <dc:date>2007-02-23T13:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: kernel: Out of Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949601#M27149</link>
      <description>You are seeing the effects of the Linux kernel Out Of Memory (OOM killer).   When the kernel reaches low memory conditions, it takes decisive action and attempts to free memory for continued operation by looking for processes that are big consumers of memory.   The algorithm takes into acount a number of factors, including age of the process, the time it last run, whether or not it is root and so on.   This is merely a *symptom* of a system that is either badly overloaded or suffering from serious defects in memory. &lt;BR /&gt;&lt;BR /&gt;You should also see information from the kernel at the time of the 'killed' message that indicate how much memory was available&lt;BR /&gt;at the time.&lt;BR /&gt;&lt;BR /&gt;Recommendations would be to: &lt;BR /&gt;&lt;BR /&gt;- update to the RHEL3 U8 kernel (2.4.21-47)&lt;BR /&gt;  as there have been subtle adjustments to &lt;BR /&gt;  the oom-killer and the vm&lt;BR /&gt;&lt;BR /&gt;- consideration of using ulimit to limit&lt;BR /&gt;  users virtual memory consumption&lt;BR /&gt;&lt;BR /&gt;- limiting high io activity such as backups&lt;BR /&gt;  to slack periods of time&lt;BR /&gt;&lt;BR /&gt;- adding more memory to the system.  &lt;BR /&gt;&lt;BR /&gt;- use of top and ps to get more of a picture&lt;BR /&gt;  of the application use&lt;BR /&gt;&lt;BR /&gt;- use of sar data to get a picture on overall&lt;BR /&gt;  memory consumption&lt;BR /&gt;&lt;BR /&gt;- monitoring /proc/meminfo will give you some&lt;BR /&gt;  more granularity on where the allocations&lt;BR /&gt;  are occurring.&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Feb 2007 09:52:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949601#M27149</guid>
      <dc:creator>Rick Beldin</dc:creator>
      <dc:date>2007-02-26T09:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: kernel: Out of Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949602#M27150</link>
      <description>Hello Danesh!&lt;BR /&gt;&lt;BR /&gt;Can you post a "free" result?&lt;BR /&gt;&lt;BR /&gt;Then, i think is an application problem.&lt;BR /&gt;I have same problem with a java bug, when for a bad code (mysql connection) the java process generate thousand threads to fill memory.&lt;BR /&gt;&lt;BR /&gt;Check also the number of process with "top".&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Mon, 26 Feb 2007 17:17:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949602#M27150</guid>
      <dc:creator>Alpha977</dc:creator>
      <dc:date>2007-02-26T17:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: kernel: Out of Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949603#M27151</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Hope you can spot something in the log file.</description>
      <pubDate>Tue, 27 Feb 2007 06:25:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949603#M27151</guid>
      <dc:creator>Danesh Qureshi</dc:creator>
      <dc:date>2007-02-27T06:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: kernel: Out of Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949604#M27152</link>
      <description>&amp;gt;&amp;gt; I have attached a tar zip file which contains two files. &lt;BR /&gt;&lt;BR /&gt;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... &lt;BR /&gt;&lt;BR /&gt;A quick look: &lt;BR /&gt;&lt;BR /&gt;- you have ~1280 processes on this system with &lt;BR /&gt;  2gb of memory&lt;BR /&gt;- Oracle and Java appear to be used heavily&lt;BR /&gt;- I would suspect process creation/deletion is&lt;BR /&gt;  somewhat rapid, since I think that pids have&lt;BR /&gt;  wrapped around&lt;BR /&gt;&lt;BR /&gt;I would: &lt;BR /&gt;&lt;BR /&gt;- validate settings for Oracle (with Oracle)&lt;BR /&gt;- some Linux kernel settings can affect Oracle behavior (hugetlb_pool) and reduce vm &lt;BR /&gt;use&lt;BR /&gt;- see if shutting down Oracle and friends during times of oom killing relieves the problem.  See if it comes back right away after restarting.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Tue, 27 Feb 2007 14:06:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kernel-out-of-memory/m-p/3949604#M27152</guid>
      <dc:creator>Rick Beldin</dc:creator>
      <dc:date>2007-02-27T14:06:10Z</dc:date>
    </item>
  </channel>
</rss>

