Have any processes that are killing your server? I had a client who was using some software and it would bring the CPU up to 50% sometimes, I couldn't take it anymore.
I found a neat little tool, ServerWizards Helped me find it actually.
R-fx Networks - Internet Security Solutions - Projects » PRM
How to Install
1) SSH in as root, OR Sudoer
2) Type these commands:
And thats it!
- cd /usr/src
- wget http://www.rfxnetworks.com/downloads/prm-current.tar.gz
- tar xvfz prm-current.tar.gz
- cd prm*
- ./install.sh
This is a neat little tool that will let you set specific process limits per a process.
How to use
- First you must configure the '/usr/local/prm/conf.prm' config file to meet your needs. The file is commented through, so it should be a walk in the park.
- Navigate to your '/usr/local/prm/rules/' directory..
this is where you will store files with certain process rules! Say you want to limit sc_trans. You would need to..cd /usr/local/prm/rules/
sc_trans is just my example, please make your own, unless you do use Shoutcast Radio. Here are the settings you would want to throw in there:nano sc_trans
# seconds to wait before rechecking a flaged pid (pid's noted resource
# intensive but not yet killed).
WAIT="12"
# counter limit that a process must reach prior to kill. the counter value
# increases for a process flaged resource intensive on rechecks.
KILL_TRIG="3"
# argument to pass onto kill commands
KARG="9"
# Max CPU usage readout for a process - % of all cpu resources (decimal values unsupported)
MAXCPU="20"
# Max MEM usage readout for a process - % of system total memory (decimal values unsupported)
MAXMEM="5"
# Max processes for a given command - this is not max processes for user but rather the executable
MAXPS="10"
And thats it!
Checkout my new forum! http://adminreference.com/
Very nice tutorial and very handy for admins. +rep!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks