<?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: How to Display Linux VPS Memory Usage</title> <atom:link href="http://www.ubuntulinuxhelp.com/how-to-display-linux-vps-memory-usage/feed/" rel="self" type="application/rss+xml" /><link>http://www.ubuntulinuxhelp.com/how-to-display-linux-vps-memory-usage/</link> <description></description> <lastBuildDate>Thu, 26 Apr 2012 20:37:18 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Jason</title><link>http://www.ubuntulinuxhelp.com/how-to-display-linux-vps-memory-usage/#comment-265</link> <dc:creator>Jason</dc:creator> <pubDate>Sun, 24 Aug 2008 09:09:55 +0000</pubDate> <guid
isPermaLink="false">http://ubuntulinuxhelp.com/how-to-display-linux-vps-memory-usage/#comment-265</guid> <description>try this:&lt;code&gt;NUM=0 &amp;&amp; for num in $( ps axo %mem &#124; grep -v &quot;%MEM&quot; &#124; grep -v &quot;0.0&quot; &#124; sed &#039;s/.//&#039; &#124; sed &#039;s/0//&#039; ) ; do NUM=$[ $num + $NUM ];done; free=$(free -m&#124; grep &quot;Mem:&quot; &#124; awk &#039;{fs=&quot; &quot;; print $2}&#039;) ;usedmem=$[ $free * $NUM / 1000 ];echo -e &quot;nSystem Memory Report:nTotal on Server: $free&quot;MB&quot; - Used: $usedmem&quot;MB&quot;n&quot;&lt;/code&gt;</description> <content:encoded><![CDATA[<p>try this:</p><p><code>NUM=0 &amp;&amp; for num in $( ps axo %mem | grep -v "%MEM" | grep -v "0.0" | sed 's/.//' | sed 's/0//' ) ; do NUM=$[ $num + $NUM ];done; free=$(free -m| grep "Mem:" | awk '{fs=" "; print $2}') ;usedmem=$[ $free * $NUM / 1000 ];echo -e "nSystem Memory Report:nTotal on Server: $free"MB" - Used: $usedmem"MB"n"</code></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using apc

Served from: www.ubuntulinuxhelp.com @ 2012-05-21 09:55:19 -->
