<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Linux Check Memory Usage</title> <atom:link href="http://www.cyberciti.biz/faq/linux-check-memory-usage/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-65956</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Fri, 23 Dec 2011 09:48:58 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-65956</guid> <description>Are you sure you got 64 bit CentOS Linux? 64 bit can address 4Gib and more ram without any problem.</description> <content:encoded><![CDATA[<p>Are you sure you got 64 bit CentOS Linux? 64 bit can address 4Gib and more ram without any problem.</p> ]]></content:encoded> </item> <item><title>By: escorte</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-65951</link> <dc:creator>escorte</dc:creator> <pubDate>Fri, 23 Dec 2011 08:42:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-65951</guid> <description>Any ideea why on a CentOS 5.7 Final linux box, 64 bit version, my system only recognized 3261 MB RAM instead of 4 GB installed? When it boots and also in BIOS all 4 GB ram are shown, but under linux I only see 3,2 GB. Thanks!</description> <content:encoded><![CDATA[<p>Any ideea why on a CentOS 5.7 Final linux box, 64 bit version, my system only recognized 3261 MB RAM instead of 4 GB installed? When it boots and also in BIOS all 4 GB ram are shown, but under linux I only see 3,2 GB. Thanks!</p> ]]></content:encoded> </item> <item><title>By: Ravinder Kumar</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-63473</link> <dc:creator>Ravinder Kumar</dc:creator> <pubDate>Thu, 13 Oct 2011 13:52:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-63473</guid> <description>Hi ,
I have problem in one linux application server where 3 instaces is running of java, each instaces is alocated 1 gb memory but my server is using my 21 gb memory , i am surprised for this.
Can anyone help me , i checked with many command but nothing found....
Thanx in advance....</description> <content:encoded><![CDATA[<p>Hi ,</p><p>I have problem in one linux application server where 3 instaces is running of java, each instaces is alocated 1 gb memory but my server is using my 21 gb memory , i am surprised for this.</p><p>Can anyone help me , i checked with many command but nothing found&#8230;.</p><p>Thanx in advance&#8230;.</p> ]]></content:encoded> </item> <item><title>By: Selan</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-63192</link> <dc:creator>Selan</dc:creator> <pubDate>Thu, 06 Oct 2011 01:12:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-63192</guid> <description>Cached memory is a kind of free memory.</description> <content:encoded><![CDATA[<p>Cached memory is a kind of free memory.</p> ]]></content:encoded> </item> <item><title>By: jetole</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-63000</link> <dc:creator>jetole</dc:creator> <pubDate>Fri, 30 Sep 2011 11:31:05 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-63000</guid> <description>One more P.S.: I use sysstat, cacti, munin and more to monitor the server farm I am responsible for. They all provide the same details in a general sense but in a detailed sense they are all different from one another in a way that one doesn&#039;t entirely replace the other and I feel it&#039;s best to implement whatever provides you with the details you need in a useful and efficient manner and if this means you have to use more then one tool for different ways to comprehend the data then there is nothing wrong with that. This isn&#039;t Windows where you have to worry about product cost, contract lock in&#039;s and vendor abuse so install 10 products if you need it and if you decide to install 20 just to see which ones ultimately give you the info that you need then there is nothing stopping you (at least not for most Linux tools. I can&#039;t speak for all of them).</description> <content:encoded><![CDATA[<p>One more P.S.: I use sysstat, cacti, munin and more to monitor the server farm I am responsible for. They all provide the same details in a general sense but in a detailed sense they are all different from one another in a way that one doesn&#8217;t entirely replace the other and I feel it&#8217;s best to implement whatever provides you with the details you need in a useful and efficient manner and if this means you have to use more then one tool for different ways to comprehend the data then there is nothing wrong with that. This isn&#8217;t Windows where you have to worry about product cost, contract lock in&#8217;s and vendor abuse so install 10 products if you need it and if you decide to install 20 just to see which ones ultimately give you the info that you need then there is nothing stopping you (at least not for most Linux tools. I can&#8217;t speak for all of them).</p> ]]></content:encoded> </item> <item><title>By: jetole</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-62997</link> <dc:creator>jetole</dc:creator> <pubDate>Fri, 30 Sep 2011 11:21:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-62997</guid> <description>P.P.S.: I forgot to mention Munin which is another web based RRD based performance monitoring application.</description> <content:encoded><![CDATA[<p>P.P.S.: I forgot to mention Munin which is another web based RRD based performance monitoring application.</p> ]]></content:encoded> </item> <item><title>By: jetole</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-62996</link> <dc:creator>jetole</dc:creator> <pubDate>Fri, 30 Sep 2011 11:20:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-62996</guid> <description>Timothy,
That&#039;s rather crude. You don&#039;t need to program anything to get these stats nor do you need to write RRD scripts. One method that has been used by many system administrators for a long time is through sysstat though this is all console based. If you prefer a web based GUI with RRD graphs then cacti is already programmed to monitor all of this for you. There are also probably several dozen other ways to do this so you probably shouldn&#039;t use terms like &quot;Then, you have to use RRD&quot;. Because you only know one way to do it doesn&#039;t mean it&#039;s the only way and you shouldn&#039;t be dismissive.
P.S.: You&#039;re explanation seems to be lacking lacking a lot and the first thing I notice is how often you update the RRD is based on how often you have configured and RRD to be updated. An RRD database designed to be updated every 5 minutes would be pretty much useless if you update it every hour based on the way RRD is designed to implement this data. A better approach is to log this data (at least) twice as often you want it to be available, for example, if you want a daily bar graph of cpu usage with 48 points of input from data collected every 1/2 hour then log the data at least every 15 minutes. When you are you want to view this data then you dynamically create the RRD based on the the specifications you supply at the time and this way you are not bound to one poorly designed RRD component which you may have implemented &#039;a long time ago&quot; and now you are forced to use it even though you need statistics at an entirely different rate then what you had originally planned &quot;way back when&quot;</description> <content:encoded><![CDATA[<p>Timothy,</p><p>That&#8217;s rather crude. You don&#8217;t need to program anything to get these stats nor do you need to write RRD scripts. One method that has been used by many system administrators for a long time is through sysstat though this is all console based. If you prefer a web based GUI with RRD graphs then cacti is already programmed to monitor all of this for you. There are also probably several dozen other ways to do this so you probably shouldn&#8217;t use terms like &#8220;Then, you have to use RRD&#8221;. Because you only know one way to do it doesn&#8217;t mean it&#8217;s the only way and you shouldn&#8217;t be dismissive.</p><p>P.S.: You&#8217;re explanation seems to be lacking lacking a lot and the first thing I notice is how often you update the RRD is based on how often you have configured and RRD to be updated. An RRD database designed to be updated every 5 minutes would be pretty much useless if you update it every hour based on the way RRD is designed to implement this data. A better approach is to log this data (at least) twice as often you want it to be available, for example, if you want a daily bar graph of cpu usage with 48 points of input from data collected every 1/2 hour then log the data at least every 15 minutes. When you are you want to view this data then you dynamically create the RRD based on the the specifications you supply at the time and this way you are not bound to one poorly designed RRD component which you may have implemented &#8216;a long time ago&#8221; and now you are forced to use it even though you need statistics at an entirely different rate then what you had originally planned &#8220;way back when&#8221;</p> ]]></content:encoded> </item> <item><title>By: Timothy Asir</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-62993</link> <dc:creator>Timothy Asir</dc:creator> <pubDate>Fri, 30 Sep 2011 09:49:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-62993</guid> <description>Then, you have to use RRD.
1) create an RRD (database) for CPU and memory utilization using rrdtool. You can also write a script to do that using perl or python. In perl you can use (RRDs::create).
2) Update the RRD with cpu and memory details periodically (on every 5-mints or hour)
3) Use rrdtool xport / rrdtool graph command to get details of a specific period (hour/day/week/month/year)</description> <content:encoded><![CDATA[<p>Then, you have to use RRD.<br
/> 1) create an RRD (database) for CPU and memory utilization using rrdtool. You can also write a script to do that using perl or python. In perl you can use (RRDs::create).</p><p>2) Update the RRD with cpu and memory details periodically (on every 5-mints or hour)</p><p>3) Use rrdtool xport / rrdtool graph command to get details of a specific period (hour/day/week/month/year)</p> ]]></content:encoded> </item> <item><title>By: Aziz Zoaib</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-62889</link> <dc:creator>Aziz Zoaib</dc:creator> <pubDate>Wed, 28 Sep 2011 05:19:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-62889</guid> <description>How to check CPU and memory utilization of previous days ?
any commands ?</description> <content:encoded><![CDATA[<p>How to check CPU and memory utilization of previous days ?</p><p>any commands ?</p> ]]></content:encoded> </item> <item><title>By: Timothy Asir</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-61447</link> <dc:creator>Timothy Asir</dc:creator> <pubDate>Wed, 10 Aug 2011 09:11:04 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-61447</guid> <description>MemUsed = MemTotal - MemFree - Buffers - Cached
We can take the values from /proc/meminfo and calculate this;
and can verify with gnome-system-monitor output.</description> <content:encoded><![CDATA[<p>MemUsed = MemTotal &#8211; MemFree &#8211; Buffers &#8211; Cached</p><p>We can take the values from /proc/meminfo and calculate this;<br
/> and can verify with gnome-system-monitor output.</p> ]]></content:encoded> </item> <item><title>By: Tryme</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-61191</link> <dc:creator>Tryme</dc:creator> <pubDate>Sun, 31 Jul 2011 23:19:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-61191</guid> <description>Open a command-line terminal (select Applications &gt; Accessories &gt; Terminal), and then type:
&lt;pre&gt;
free -m
&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>Open a command-line terminal (select Applications &gt; Accessories &gt; Terminal), and then type:</p><pre>
free -m
</pre>]]></content:encoded> </item> <item><title>By: pat</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-61172</link> <dc:creator>pat</dc:creator> <pubDate>Sun, 31 Jul 2011 00:04:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-61172</guid> <description>Hi Im new to linux and have an older acer 340t travel mate  i went into BIOS but didnt see how much memory i have..How to i get  into where i can type commands to fine out how much memory It has and what would the command be. Thank you so much for your help</description> <content:encoded><![CDATA[<p>Hi Im new to linux and have an older acer 340t travel mate  i went into BIOS but didnt see how much memory i have..How to i get  into where i can type commands to fine out how much memory It has and what would the command be. Thank you so much for your help</p> ]]></content:encoded> </item> <item><title>By: peter</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-59124</link> <dc:creator>peter</dc:creator> <pubDate>Sun, 01 May 2011 16:12:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-59124</guid> <description>fantastic article! thanks very much for your thourough and clear explaination, great job!</description> <content:encoded><![CDATA[<p>fantastic article! thanks very much for your thourough and clear explaination, great job!</p> ]]></content:encoded> </item> <item><title>By: Itzekocke</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-57225</link> <dc:creator>Itzekocke</dc:creator> <pubDate>Tue, 12 Apr 2011 11:28:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-57225</guid> <description>Thanks,
that all helped a lot - even if the information is more than 5 years old!
Itzekocke</description> <content:encoded><![CDATA[<p>Thanks,</p><p>that all helped a lot &#8211; even if the information is more than 5 years old!</p><p>Itzekocke</p> ]]></content:encoded> </item> <item><title>By: Ashwin</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-56559</link> <dc:creator>Ashwin</dc:creator> <pubDate>Wed, 23 Mar 2011 01:15:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-56559</guid> <description>Awesome!!..
Thanks Ashok</description> <content:encoded><![CDATA[<p>Awesome!!..<br
/> Thanks Ashok</p> ]]></content:encoded> </item> <item><title>By: Ganesh</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-56232</link> <dc:creator>Ganesh</dc:creator> <pubDate>Wed, 09 Mar 2011 20:56:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-56232</guid> <description>Thank you.</description> <content:encoded><![CDATA[<p>Thank you.</p> ]]></content:encoded> </item> <item><title>By: Vaseem</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-54734</link> <dc:creator>Vaseem</dc:creator> <pubDate>Fri, 07 Jan 2011 04:44:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-54734</guid> <description>you can try from the terminal
cat /proc/meminfo
cat /proc/cpuinfo
This will give you information regarding the memory and CPU</description> <content:encoded><![CDATA[<p>you can try from the terminal<br
/> cat /proc/meminfo<br
/> cat /proc/cpuinfo<br
/> This will give you information regarding the memory and CPU</p> ]]></content:encoded> </item> <item><title>By: Ashok</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-51711</link> <dc:creator>Ashok</dc:creator> <pubDate>Thu, 09 Dec 2010 17:08:26 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-51711</guid> <description>&lt;pre&gt;#################################################################
# Developed by Ashok Kumar
# 1:50 PM Monday, February 04, 2008
#################################################################
TOT=`cat /proc/meminfo &#124; grep MemTotal: &#124; awk &#039;{print $2}&#039;`
USED=`cat /proc/meminfo &#124; grep Active: &#124; awk &#039;{print $2}&#039;`
FREE=$[$TOT - $USED ]
LOG=/tmp/mem_monitor.log
echo &gt; $LOG
SEND=0
if [ &quot;$USED&quot; -gt &quot;0&quot; ]; then
USEDPERC=$[$USED * 100 / $TOT]
echo &quot;Used Percentage      : $USEDPERC %&quot;
TOTMB=$[$TOT / 1024 ]
USEDMB=$[$USED / 1024 ]
FREEMB=$[$TOTMB - $USEDMB ]
#echo &quot;Used Percentage : $USEDPERC&quot;
if [ &quot;$USEDPERC&quot; -gt &quot;80&quot; ]; then
SEND=1
STATUS=&quot;Warning&quot;
echo &quot;------------------------------------------------------------------&quot; &gt;&gt; $LOG
echo `hostname`   &gt;&gt; $LOG
echo &quot;------------------------------------------------------------------&quot; &gt;&gt; $LOG
echo &quot;Total Memory (MB)    : $TOTMB&quot; &gt;&gt; $LOG
echo &quot;Used Memory (MB)     : $USEDMB&quot; &gt;&gt; $LOG
echo &quot;Free Memory (MB)     : $FREEMB&quot; &gt;&gt; $LOG
echo &quot;Used Percentage      : $USEDPERC %&quot;  &gt;&gt; $LOG
echo &quot;------------------------------------------------------------------&quot; &gt;&gt; $LOG
if [ &quot;$USEDPERC&quot; -gt &quot;95&quot; ]; then
STATUS=&quot;Critical&quot;
fi
fi
fi
if [ &quot;$FREEMB&quot; -eq &quot;0&quot; ]; then
SEND=1
STATUS=&quot;Fatal&quot;
echo &quot;------------------------------------------------------------------&quot; &gt;&gt; $LOG
echo &quot;    No free memory available in &quot; `hostname`    &gt;&gt;$LOG
echo &quot;------------------------------------------------------------------&quot; &gt;&gt; $LOG
fi
&lt;/pre&gt;</description> <content:encoded><![CDATA[<pre>#################################################################
# Developed by Ashok Kumar
# 1:50 PM Monday, February 04, 2008
#################################################################
TOT=`cat /proc/meminfo | grep MemTotal: | awk '{print $2}'`
USED=`cat /proc/meminfo | grep Active: | awk '{print $2}'`
FREE=$[$TOT - $USED ]
LOG=/tmp/mem_monitor.log
echo &gt; $LOG
SEND=0
if [ "$USED" -gt "0" ]; then
   USEDPERC=$[$USED * 100 / $TOT]
   echo "Used Percentage      : $USEDPERC %"
   TOTMB=$[$TOT / 1024 ]
   USEDMB=$[$USED / 1024 ]
   FREEMB=$[$TOTMB - $USEDMB ]
   #echo "Used Percentage : $USEDPERC"
   if [ "$USEDPERC" -gt "80" ]; then
     SEND=1
     STATUS="Warning"
     echo "------------------------------------------------------------------" &gt;&gt; $LOG
     echo `hostname`   &gt;&gt; $LOG
     echo "------------------------------------------------------------------" &gt;&gt; $LOG
     echo "Total Memory (MB)    : $TOTMB" &gt;&gt; $LOG
     echo "Used Memory (MB)     : $USEDMB" &gt;&gt; $LOG
     echo "Free Memory (MB)     : $FREEMB" &gt;&gt; $LOG
     echo "Used Percentage      : $USEDPERC %"  &gt;&gt; $LOG
     echo "------------------------------------------------------------------" &gt;&gt; $LOG
     if [ "$USEDPERC" -gt "95" ]; then
        STATUS="Critical"
     fi
   fi
fi
if [ "$FREEMB" -eq "0" ]; then
   SEND=1
   STATUS="Fatal"
   echo "------------------------------------------------------------------" &gt;&gt; $LOG
   echo "    No free memory available in " `hostname`    &gt;&gt;$LOG
   echo "------------------------------------------------------------------" &gt;&gt; $LOG
fi
</pre>]]></content:encoded> </item> <item><title>By: jetole</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-51281</link> <dc:creator>jetole</dc:creator> <pubDate>Fri, 03 Dec 2010 11:20:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-51281</guid> <description>riyan,
Yes and no. Generally speaking, Linux the kernel doesn&#039;t do any real auditing / logging of memory usage but then again it shouldn&#039;t either since Linux really is only a kernel so you will need to install another tool to deal with this. The most common / popular / recommended tool for this would be sysstat / sar and on quite a few distros (Debian, Ubuntu, CentOS), sysstat is the literal name of the package you want to install. Once installed, it will start logging the data but their really is no way for it to record data from before it was installed so basically, if you don&#039;t have a audting / logging application like sysstat already installed then you can&#039;t really view the past history until after it is.</description> <content:encoded><![CDATA[<p>riyan,</p><p>Yes and no. Generally speaking, Linux the kernel doesn&#8217;t do any real auditing / logging of memory usage but then again it shouldn&#8217;t either since Linux really is only a kernel so you will need to install another tool to deal with this. The most common / popular / recommended tool for this would be sysstat / sar and on quite a few distros (Debian, Ubuntu, CentOS), sysstat is the literal name of the package you want to install. Once installed, it will start logging the data but their really is no way for it to record data from before it was installed so basically, if you don&#8217;t have a audting / logging application like sysstat already installed then you can&#8217;t really view the past history until after it is.</p> ]]></content:encoded> </item> <item><title>By: riyan</title><link>http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-51272</link> <dc:creator>riyan</dc:creator> <pubDate>Fri, 03 Dec 2010 04:49:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-check-memory-usage.php#comment-51272</guid> <description>Hi, Great Article. is there any way to find the memory usage history of SUSE Linux server?</description> <content:encoded><![CDATA[<p>Hi, Great Article. is there any way to find the memory usage history of SUSE Linux server?</p> ]]></content:encoded> </item> </channel> </rss>
