var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
How to prevent runaway memory
I recently had a script on my server that completely consumed all my memory including the swap space. How do I make sure this doesn't happen again?
What are the linux commands to monitor memory usage? If I was to watch the memory used by each user on my server and suspend the account after it exceeded some memory threshold, would this solve the problem?
You can set limits from within /etc/security/limits.conf
To view your current limits run:
They are, by default, set to unlimited so you may need to adjust your settings.
Last edited by asciiDigital; 04-16-2011 at
ok, next to the virtual memory - the limit says unlimited. How can I change this, and what would be a good value?
Looks like I need to edit /etc/profile - but what would be a good limit for virtual memory limit per process on a 2GB (physical RAM) system?
By ScottJ in forum Hosting Security and Technology
Last Post: 04-05-2010, 08:59 AM
By JMele in forum Reseller Hosting
Last Post: 09-28-2009, 10:41 PM
By Netarch in forum Hosting Security and Technology
Last Post: 08-19-2008, 08:03 PM
By Tensop in forum VPS Hosting
Last Post: 02-07-2008, 08:03 AM
By WeedBiz in forum Hosting Security and Technology
Last Post: 08-20-2001, 12:45 AM