{"id":2898,"date":"2014-03-10T12:18:36","date_gmt":"2014-03-10T12:18:36","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/10\/unusually-high-memory-usage-on-a-centos-vps-with-512-guaranteed-ram-collection-of-common-programming-errors\/"},"modified":"2014-03-10T12:18:36","modified_gmt":"2014-03-10T12:18:36","slug":"unusually-high-memory-usage-on-a-centos-vps-with-512-guaranteed-ram-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/10\/unusually-high-memory-usage-on-a-centos-vps-with-512-guaranteed-ram-collection-of-common-programming-errors\/","title":{"rendered":"Unusually high memory usage on a CentOS VPS with 512 guaranteed RAM-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m working on a medium-sized web application written in PHP that&#8217;s running on a VPS with 512mb ram. The webapp hasn&#8217;t been officially launched yet, so there isn&#8217;t too much traffic going on, just me and a few other people working on it.<\/p>\n<p>There is another slightly smaller webapp also hosted on this machine, among 4-5 other small static sites.<\/p>\n<p>We are running Centos 5 32-bit &amp; cPanel\/WHM.<\/p>\n<p>This is the result of running <code>ps aux<\/code> and, as you can see, it&#8217;s not using 100% of the RAM. However, on the hypanel overview, it&#8217;s always shown as using aroun 500MB ram, just for running apache, mysql, and the lowest-memory-footprint versions of the mail server, ftp server etc.<\/p>\n<pre><code>-bash-3.2# ps aux\nUSER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND\nroot         1  0.0  0.0   2156   664 ?        Ss   12:08   0:00 init [3]\nroot      1123  0.0  0.0   2260   548 ?        S<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m working on a medium-sized web application written in PHP that&#8217;s running on a VPS with 512mb ram. The webapp hasn&#8217;t been officially launched yet, so there isn&#8217;t too much traffic going on, just me and a few other people working on it. There is another slightly smaller webapp also hosted on this machine, among [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2898","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2898"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2898\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}