{"id":79,"date":"2009-09-27T14:19:23","date_gmt":"2009-09-27T18:19:23","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=79"},"modified":"2013-03-20T08:39:37","modified_gmt":"2013-03-20T12:39:37","slug":"unable-to-fork-cannot-allocate-memory","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/unable-to-fork-cannot-allocate-memory","title":{"rendered":"Unable to fork: Cannot allocate memory"},"content":{"rendered":"<p>You see a message <span style=\"color: #0000ff;\">&#8220;<\/span><span style=\"color: #993300;\"><strong><span style=\"color: #0000ff;\">Unable to fork: Cannot allocate memory&#8221;<\/span> <\/strong><\/span>while logging to a VPS from the host server. The reason is the VPS is running out of resources especially RAM. To temporary solve the issue, you may restart the VPS by executing<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>vzctl restart VEID<\/strong><\/span><\/p><\/blockquote>\n<p>OR increase RAM for the VPS by <span style=\"color: #0000ff;\"><strong>increasing privvmpages and kmemsize<\/strong><\/span> for the VPS.<\/p>\n<p>Edit the configuration file of the VPS<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>vi \/etc\/sysconfig\/vz-scripts\/veid.conf<\/strong><\/span><\/p><\/blockquote>\n<p>increase the value of the above two parameters and restart the VPS.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You see a message &#8220;Unable to fork: Cannot allocate memory&#8221; while logging to a VPS from the host server. The reason is the VPS is running out of resources especially RAM. To temporary solve the issue, you may restart the VPS by executing<br \/>\nvzctl restart VEID<br \/>\nOR increase RAM for the VPS by increasing privvmpages and kmemsize for the VPS.<br \/>\nEdit the configuration file of the VPS<br \/>\nvi \/etc\/sysconfig\/vz-scripts\/veid.conf<br \/>\nincrease the value of the above two parameters and restart the VPS.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[520,519,524,94,518,523,521,522],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/79"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":5,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":398,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/79\/revisions\/398"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}