<?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: Physical memory becoming low in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856155#M25015</link>
    <description>Wow, I can't beleive I mussed up that first sentance of my last post.  Sorry Ivan!</description>
    <pubDate>Wed, 06 Sep 2006 04:01:22 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2006-09-06T04:01:22Z</dc:date>
    <item>
      <title>Physical memory becoming low</title>
      <link>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856145#M25005</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am currently running the following operating system on HP Proliant DL380 server:-&lt;BR /&gt;Red Hat Enterprise Linux AS 4 (Nahant Update 3).&lt;BR /&gt;&lt;BR /&gt;The HP Proliant DL380 server has 3Gb of main memory in it.&lt;BR /&gt;I have noticed the memory is becoming very low.&lt;BR /&gt;&lt;BR /&gt;When I do a vmstat -s the total memory is 3115272K and the used memory is 3096768K. The server has an Oracle database&lt;BR /&gt;which has been allocated 300Mb of memory for expansion which is very low.&lt;BR /&gt;&lt;BR /&gt;Can anyone tell me what else I can do to find out what is causing the memory to become low and how I can fix&lt;BR /&gt;the low memory problem?&lt;BR /&gt;Also top is also displaying the main memory is getting low. See output of top below:-&lt;BR /&gt;&lt;BR /&gt;$ top&lt;BR /&gt;top - 15:47:59 up 60 days,  1:18,  2 users,  load average: 0.00, 0.00, 0.00&lt;BR /&gt;Tasks:  86 total,   1 running,  85 sleeping,   0 stopped,   0 zombie&lt;BR /&gt;Cpu(s):  0.0% us,  0.0% sy,  0.0% ni, 100.0% id,  0.0% wa,  0.0% hi,  0.0% si&lt;BR /&gt;Mem:   3115272k total,  3096656k used,    18616k free,    84792k buffers&lt;BR /&gt;Swap:  4194288k total,    63416k used,  4130872k free,  2817452k cached&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Sep 2006 09:49:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856145#M25005</guid>
      <dc:creator>Danesh Qureshi</dc:creator>
      <dc:date>2006-09-04T09:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Physical memory becoming low</title>
      <link>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856146#M25006</link>
      <description>Check this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1029490" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1029490&lt;/A&gt;</description>
      <pubDate>Mon, 04 Sep 2006 10:00:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856146#M25006</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-09-04T10:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Physical memory becoming low</title>
      <link>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856147#M25007</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Oracle is relatively famous for memory leaks and other issues. It could be after running for 60 days time to bounce the system or the database.&lt;BR /&gt;&lt;BR /&gt;It is possible your system is working harder and consuming more memory. Or it could be you need an Oracle patch.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 04 Sep 2006 11:31:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856147#M25007</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-09-04T11:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Physical memory becoming low</title>
      <link>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856148#M25008</link>
      <description>Yeah, that thread Vitaly posted is a good start.&lt;BR /&gt;&lt;BR /&gt;As is stated there, Linux will try to use all available memory.&lt;BR /&gt;&lt;BR /&gt;As you can see from your 'top' output there, there's 2.8GB used in the 'cached' value.  These are dynamically allocated disk-cache using available physical memory to speed up disk access.&lt;BR /&gt;&lt;BR /&gt;As the requirement for memory increases, this value is usually the first to go down, followed by the 84MB of 'buffers'.&lt;BR /&gt;&lt;BR /&gt;With regards to the utilisation of physical memory, what you want to watch is the Swap 'used' value.  If this increases steadily, then you're starting to be in trouble.&lt;BR /&gt;&lt;BR /&gt;You mentioned Oracle, and SEP mentioned memory leaks.  This certinaly might be possible (there certainly are enough in all applications!).  You can prove or disprove this by restarting Oracle in a quite time.  If the Mem 'free' and 'cached' values jump up significantly whilst Swap 'used' drops and they don't grow (quickly) to similar values after restarting it, then you have a memory leak in progress (bear in mind Oracle like all databases take a while to get to their optimum memory usage values for query caches etc. etc.).&lt;BR /&gt;&lt;BR /&gt;If it is a memory leak, check for version updates you can do to fix the issues, or take the slackers way out of scheduling a restart periodically (just for the record, I'm one of those slackers.  'saslauthd' with 'pam_mysql' are the bane's of my existance!  There are only so many memory leaks you can hunt down before frustration sets in!).&lt;BR /&gt;&lt;BR /&gt;Looking at those values though, I'd say things are running well.  You've still got plenty of 'cached' value, so you're not exhausting the system yet.</description>
      <pubDate>Mon, 04 Sep 2006 22:18:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856148#M25008</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2006-09-04T22:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Physical memory becoming low</title>
      <link>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856149#M25009</link>
      <description>I have attached a document which uses the free command on this system to display the behaviour of the cache memory ,etc.&lt;BR /&gt;&lt;BR /&gt;Please can you tell me what is going on here with the memory values before and after shutting down the Oracle database?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Sep 2006 07:39:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856149#M25009</guid>
      <dc:creator>Danesh Qureshi</dc:creator>
      <dc:date>2006-09-05T07:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Physical memory becoming low</title>
      <link>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856150#M25010</link>
      <description>From the first free output, you can see that there are 2732 m cached. That means that most memory is used as buffers/cache. The database memory usage is very low, you should check your shared memory kernel parameters and database parameters.&lt;BR /&gt;&lt;BR /&gt;After shutting down the database, you still have 2636 m used and your memory used by apps drops down to 125 m.&lt;BR /&gt;&lt;BR /&gt;Can you post the output of ipcs -a when the database is up?</description>
      <pubDate>Tue, 05 Sep 2006 10:52:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856150#M25010</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-09-05T10:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Physical memory becoming low</title>
      <link>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856151#M25011</link>
      <description>From the output of "top". The memory status is good, actually. Cached potion could be freed when never memory demands rise&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Sep 2006 11:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856151#M25011</guid>
      <dc:creator>George Liu_4</dc:creator>
      <dc:date>2006-09-05T11:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Physical memory becoming low</title>
      <link>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856152#M25012</link>
      <description>Here is the output from ipcs for you to examine:-&lt;BR /&gt;&lt;BR /&gt;[root@metis sysconfig]# ipcs -a&lt;BR /&gt;&lt;BR /&gt;------ Shared Memory Segments --------&lt;BR /&gt;key        shmid      owner      perms      bytes      nattch     status      &lt;BR /&gt;0x3a6aeae8 458752     oracle    640        312475648  18                      &lt;BR /&gt;&lt;BR /&gt;------ Semaphore Arrays --------&lt;BR /&gt;key        semid      owner      perms      nsems     &lt;BR /&gt;0xa1c77978 1933312    oracle    640        154       &lt;BR /&gt;&lt;BR /&gt;------ Message Queues --------&lt;BR /&gt;key        msqid      owner      perms      used-bytes   messages    &lt;BR /&gt;&lt;BR /&gt;[root@metis sysconfig]# &lt;BR /&gt;</description>
      <pubDate>Tue, 05 Sep 2006 12:13:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856152#M25012</guid>
      <dc:creator>Danesh Qureshi</dc:creator>
      <dc:date>2006-09-05T12:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Physical memory becoming low</title>
      <link>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856153#M25013</link>
      <description>I would expect almost all physical memory to &lt;BR /&gt;be used.  O/S is designed to cache as much&lt;BR /&gt;disk data as possible. Once you've read 3GB &lt;BR /&gt;of disk data memory should be full.&lt;BR /&gt;Significant use of swap space tends to indicate&lt;BR /&gt;that you have a pending problem with memory&lt;BR /&gt;utilization. &lt;BR /&gt;&lt;BR /&gt;Check memory usage shortly after startup.&lt;BR /&gt;If you have lots of physical memory availalbe,&lt;BR /&gt;then you should not have a problem.&lt;BR /&gt;&lt;BR /&gt;Oracle tends to map a huge share memory area,&lt;BR /&gt;the SGA to all processes.  I have had&lt;BR /&gt;problems with both system admins and DBAs &lt;BR /&gt;complaining about the size of Oracle&lt;BR /&gt;processes.  Check the memory footprint of&lt;BR /&gt;all your Oracle processes. They should&lt;BR /&gt;be about the same large size.  Memory leaks&lt;BR /&gt;will show up as a single or couple of &lt;BR /&gt;processes significantly larger than the rest&lt;BR /&gt;and growing in size.  &lt;BR /&gt;&lt;BR /&gt;I haven't run into memory leaks in Oracle &lt;BR /&gt;for quite a while.  &lt;BR /&gt;My last memory leak problem was with the &lt;BR /&gt;monitor that was watching for memory leaks.&lt;BR /&gt;I watched the system slowly die as the&lt;BR /&gt;monitor swallowed up all the swap space.&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Sep 2006 13:10:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856153#M25013</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2006-09-05T13:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Physical memory becoming low</title>
      <link>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856154#M25014</link>
      <description>From the output of ipcs -a it's possible to view that only 312475648 bytes (312 MB) is configured to be used by oracle. You should increase this size for example, to 2 GB if oracle is the primary service in this server.</description>
      <pubDate>Tue, 05 Sep 2006 15:11:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856154#M25014</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-09-05T15:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Physical memory becoming low</title>
      <link>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856155#M25015</link>
      <description>Wow, I can't beleive I mussed up that first sentance of my last post.  Sorry Ivan!</description>
      <pubDate>Wed, 06 Sep 2006 04:01:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856155#M25015</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2006-09-06T04:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Physical memory becoming low</title>
      <link>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856156#M25016</link>
      <description>I would like to point out there have been no performance issues on this system. I thought you may be able to shed some light on the output of the free command. See below:-&lt;BR /&gt;&lt;BR /&gt;[root@metis sysconfig]# &lt;BR /&gt;# free -m&lt;BR /&gt;     total used  free shared buffers cached&lt;BR /&gt;Mem: 3042  3020   21      0     153  2670   &lt;BR /&gt;&lt;BR /&gt;-/+ buffers/cache:&lt;BR /&gt;      196   2845&lt;BR /&gt;Swap:&lt;BR /&gt;     4095    47  4048&lt;BR /&gt;&lt;BR /&gt;So looking at these figures the cached memory is high which indicates the system can make use of cached memory even though main memory is running low. Also there appears to be some swapping taking place but not affecting system performance.&lt;BR /&gt;&lt;BR /&gt;In conclusion the memory utilization values are indicating the system appears to be healthy and so there is no cause for concern as long as there plenty of cached memory available to the system. Hence, am I right in saying this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Sep 2006 11:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/physical-memory-becoming-low/m-p/3856156#M25016</guid>
      <dc:creator>Danesh Qureshi</dc:creator>
      <dc:date>2006-09-06T11:33:34Z</dc:date>
    </item>
  </channel>
</rss>

