السلام عليكم و رحمه الله و بركاته
عرض استهلاك العمليات على السيرفر
سنقوم بتركيب برنامج
Process Resource Monitor
# cd /usr/src
# wget http://www.rfxnetworks.com/downloads/prm-current.tar.gz
# tar xvfz prm-current.tar.gz
# cd prm*
# ./install.sh
تم التركيب
الان نقوم بالاعداد
cd /usr/local/prm/rules/
nano sc_trans
ونعدل الملف كالتالي
كود PHP:
# 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"