Ehcp Server/Memory usage
Below some memory usage info,
note that ehcp core daemon has about 40Mb only.
Mosth other memory usage is due to apache, dns, mail, etc…
Also note that, some memory usage on top command is used bu system cache..
sysinfo in ehcp gui shows that cache separately, so, that is more accurate..
test output is attached as file too, for easy viewing..
before ehcp:
top - 10:39:53 up 1 day, 7:49, 1 user, load average: 0.00, 0.00, 0.00
Tasks: 92 total, 1 running, 91 sleeping, 0 stopped, 0 zombie
Cpu0 : 0.3%us, 0.0%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2053208k total, 147248k used, 1905960k free, 18352k buffers
Swap: 3903784k total, 0k used, 3903784k free, 93704k cached
after installing ehcp: (including apache, dns, mysql, postfix, ftp etc.)
top - 11:03:50 up 1 day, 8:13, 3 users, load average: 0.13, 0.39, 0.25
Tasks: 142 total, 1 running, 141 sleeping, 0 stopped, 0 zombie
Cpu0 : 0.3%us, 0.3%sy, 0.0%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2053208k total, 640100k used, 1413108k free, 48212k buffers
Swap: 3903784k total, 0k used, 3903784k free, 478788k cached
top - 11:07:33 up 1 day, 8:17, 3 users, load average: 0.00, 0.18, 0.19
Tasks: 137 total, 1 running, 136 sleeping, 0 stopped, 0 zombie
Cpu0 : 0.0%us, 0.2%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 0.0%us, 0.1%sy, 0.0%ni, 99.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2053208k total, 638324k used, 1414884k free, 48284k buffers
Swap: 3903784k total, 0k used, 3903784k free, 478792k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
26047 mysql 20 0 126m 17m 5128 S 0 0.9 0:00.51 /usr/sbin/mysqld --basedir=/usr --datadir=
26202 root 20 0 37632 12m 6048 S 0 0.6 0:00.35 php index.php daemon
25636 bind 20 0 70288 12m 2176 S 0 0.6 0:00.08 /usr/sbin/named -u bind
26195 root 20 0 103m 9304 3412 S 0 0.5 0:00.68 python /etc/init.d/ehcp_daemon.py
25601 root 20 0 35184 8060 4604 S 0 0.4 0:00.08 /usr/sbin/apache2 -k start
24717 root 20 0 8764 4208 1616 S 0 0.2 0:00.04 /usr/bin/perl -wT /usr/sbin/pop-before-smt
25608 www-data 20 0 35184 4068 596 S 0 0.2 0:00.00 /usr/sbin/apache2 -k start
25609 www-data 20 0 35184 4068 596 S 0 0.2 0:00.00 /usr/sbin/apache2 -k start
25610 www-data 20 0 35184 4068 596 S 0 0.2 0:00.00 /usr/sbin/apache2 -k start
25611 www-data 20 0 35184 4068 596 S 0 0.2 0:00.01 /usr/sbin/apache2 -k start
25612 www-data 20 0 35184 4068 596 S 0 0.2 0:00.00 /usr/sbin/apache2 -k start
18849 root 20 0 8632 3152 2452 S 0 0.2 0:00.76 sshd: root@pts/1
21460 root 20 0 8632 3052 2452 S 0 0.1 0:00.22 sshd: root@pts/2
18583 root 20 0 8632 3048 2452 S 0 0.1 0:00.33 sshd: root@pts/0
2288 root 20 0 17700 2960 1644 S 0 0.1 0:02.42 /usr/sbin/console-kit-daemon
26147 postfix 20 0 6176 2564 1848 S 0 0.1 0:00.05 tlsmgr -l -t unix -u -c
2155 klog 20 0 3464 2256 444 S 0 0.1 0:00.31 /sbin/klogd -P /var/run/klogd/kmsg
1 root 20 0 3084 1888 564 S 0 0.1 0:02.11 /sbin/init
25729 postfix 20 0 5836 1876 1496 S 0 0.1 0:00.02 qmgr -l -t fifo -u
sorted using top ram usage, sorted by ram max to min:
top - 11:08:21 up 1 day, 8:18, 3 users, load average: 0.00, 0.15, 0.17
Tasks: 137 total, 1 running, 136 sleeping, 0 stopped, 0 zombie
Cpu0 : 0.2%us, 0.0%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 0.2%us, 0.0%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2053208k total, 638324k used, 1414884k free, 48312k buffers
Swap: 3903784k total, 0k used, 3903784k free, 478792k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
26047 mysql 20 0 126m 17m 5128 S 0 0.9 0:00.55 /usr/sbin/mysqld --basedir=/usr --datadir=
26195 root 20 0 103m 9304 3412 S 0 0.5 0:00.69 python /etc/init.d/ehcp_daemon.py
25636 bind 20 0 70288 12m 2176 S 0 0.6 0:00.08 /usr/sbin/named -u bind
26202 root 20 0 37632 12m 6048 S 0 0.6 0:00.35 php index.php daemon
25601 root 20 0 35184 8060 4604 S 0 0.4 0:00.08 /usr/sbin/apache2 -k start
25608 www-data 20 0 35184 4068 596 S 0 0.2 0:00.00 /usr/sbin/apache2 -k start
25609 www-data 20 0 35184 4068 596 S 0 0.2 0:00.00 /usr/sbin/apache2 -k start
25610 www-data 20 0 35184 4068 596 S 0 0.2 0:00.00 /usr/sbin/apache2 -k start
25611 www-data 20 0 35184 4068 596 S 0 0.2 0:00.01 /usr/sbin/apache2 -k start
25612 www-data 20 0 35184 4068 596 S 0 0.2 0:00.00 /usr/sbin/apache2 -k start
2288 root 20 0 17700 2960 1644 S 0 0.1 0:02.42 /usr/sbin/console-kit-daemon
24717 root 20 0 8764 4208 1616 S 0 0.2 0:00.04 /usr/bin/perl -wT /usr/sbin/pop-before-smt
18583 root 20 0 8632 3048 2452 S 0 0.1 0:00.33 sshd: root@pts/0
18849 root 20 0 8632 3152 2452 S 0 0.2 0:00.76 sshd: root@pts/1
21460 root 20 0 8632 3052 2452 S 0 0.1 0:00.25 sshd: root@pts/2
24831 root 20 0 7492 880 504 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/p
24832 root 20 0 7492 512 136 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/p
24833 root 20 0 7492 508 132 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/p
24834 root 20 0 7492 508 132 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/p
24835 root 20 0 7492 508 132 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/p
26147 postfix 20 0 6176 2564 1848 S 0 0.1 0:00.05 tlsmgr -l -t unix -u -c
25729 postfix 20 0 5836 1876 1496 S 0 0.1 0:00.02 qmgr -l -t fifo -u
25728 postfix 20 0 5792 1760 1404 S 0 0.1 0:00.01 pickup -l -t fifo -u -c
25722 root 20 0 5780 1776 1416 S 0 0.1 0:00.03 /usr/lib/postfix/master
2192 root 20 0 5436 1072 680 S 0 0.1 0:00.00 /usr/sbin/sshd
24850 root 20 0 4528 1080 836 S 0 0.1 0:00.01 /usr/lib/courier/courier-authlib/authdaemo
24852 root 20 0 4528 372 128 S 0 0.0 0:00.00 /usr/lib/courier/courier-authlib/authdaemo
24853 root 20 0 4528 372 128 S 0 0.0 0:00.00 /usr/lib/courier/courier-authlib/authdaemo
24855 root 20 0 4528 372 128 S 0 0.0 0:00.00 /usr/lib/courier/courier-authlib/authdaemo
24856 root 20 0 4528 372 128 S 0 0.0 0:00.00 /usr/lib/courier/courier-authlib/authdaemo
24857 root 20 0 4528 372 128 S 0 0.0 0:00.00 /usr/lib/courier/courier-authlib/authdaemo
18591 root 20 0 4288 1832 1456 S 0 0.1 0:00.10 -bash
after ehcp install, disabled ehcp experimental python daemon, sorted by ram max to min:
top - 11:15:58 up 1 day, 8:25, 3 users, load average: 0.01, 0.04, 0.10
Tasks: 136 total, 1 running, 135 sleeping, 0 stopped, 0 zombie
Cpu0 : 0.4%us, 0.4%sy, 0.0%ni, 99.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2053208k total, 634560k used, 1418648k free, 48696k buffers
Swap: 3903784k total, 0k used, 3903784k free, 481388k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
26633 mysql 20 0 125m 16m 4952 S 0 0.8 0:00.36 /usr/sbin/mysqld --basedir=/usr --datadir=
25636 bind 20 0 70288 12m 2176 S 0 0.6 0:00.08 /usr/sbin/named -u bind
26748 root 20 0 36608 12m 5904 S 0 0.6 0:00.22 php index.php daemon
25601 root 20 0 35184 8060 4604 S 0 0.4 0:00.11 /usr/sbin/apache2 -k start
25608 www-data 20 0 35184 4068 596 S 0 0.2 0:00.00 /usr/sbin/apache2 -k start
25609 www-data 20 0 35184 4068 596 S 0 0.2 0:00.00 /usr/sbin/apache2 -k start
25610 www-data 20 0 35184 4068 596 S 0 0.2 0:00.00 /usr/sbin/apache2 -k start
25611 www-data 20 0 35184 4068 596 S 0 0.2 0:00.01 /usr/sbin/apache2 -k start
25612 www-data 20 0 35184 4068 596 S 0 0.2 0:00.00 /usr/sbin/apache2 -k start
2288 root 20 0 17700 2964 1644 S 0 0.1 0:02.44 /usr/sbin/console-kit-daemon
24717 root 20 0 8764 4208 1616 S 0 0.2 0:00.05 /usr/bin/perl -wT /usr/sbin/pop-before-smt
18583 root 20 0 8632 3048 2452 S 0 0.1 0:00.33 sshd: root@pts/0
18849 root 20 0 8632 3152 2452 S 0 0.2 0:00.80 sshd: root@pts/1
21460 root 20 0 8632 3052 2452 S 0 0.1 0:00.27 sshd: root@pts/2
24831 root 20 0 7492 880 504 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/p
24832 root 20 0 7492 512 136 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/p
24833 root 20 0 7492 508 132 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/p
24834 root 20 0 7492 508 132 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/p
24835 root 20 0 7492 508 132 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/p
26147 postfix 20 0 6176 2564 1848 S 0 0.1 0:00.05 tlsmgr -l -t unix -u -c
25729 postfix 20 0 5836 1876 1496 S 0 0.1 0:00.02 qmgr -l -t fifo -u
25728 postfix 20 0 5792 1760 1404 S 0 0.1 0:00.01 pickup -l -t fifo -u -c
25722 root 20 0 5780 1776 1416 S 0 0.1 0:00.03 /usr/lib/postfix/master
2192 root 20 0 5436 1072 680 S 0 0.1 0:00.00 /usr/sbin/sshd
24850 root 20 0 4528 1080 836 S 0 0.1 0:00.01 /usr/lib/courier/courier-authlib/authdaemo
24852 root 20 0 4528 372 128 S 0 0.0 0:00.00 /usr/lib/courier/courier-authlib/authdaemo
24853 root 20 0 4528 372 128 S 0 0.0 0:00.00 /usr/lib/courier/courier-authlib/authdaemo
24855 root 20 0 4528 372 128 S 0 0.0 0:00.00 /usr/lib/courier/courier-authlib/authdaemo
24856 root 20 0 4528 372 128 S 0 0.0 0:00.00 /usr/lib/courier/courier-authlib/authdaemo
24857 root 20 0 4528 372 128 S 0 0.0 0:00.00 /usr/lib/courier/courier-authlib/authdaemo
18857 root 20 0 4296 1852 1472 S 0 0.1 0:00.11 -bash
after a while:
top - 17:02:19 up 3:31, 3 users, load average: 0.00, 0.00, 0.00
Tasks: 148 total, 1 running, 147 sleeping, 0 stopped, 0 zombie
Cpu0 : 0.3%us, 0.6%sy, 0.0%ni, 99.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2053208k total, 259884k used, 1793324k free, 18244k buffers
Swap: 3903784k total, 0k used, 3903784k free, 93916k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2394 mysql 20 0 126m 17m 5228 S 0 0.9 0:08.39 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-exte
2280 bind 20 0 77528 19m 2288 S 0 1.0 0:00.14 /usr/sbin/named -u bind
4919 www-data 20 0 39796 11m 3152 S 0 0.6 0:00.17 /usr/sbin/apache2 -k start
4916 www-data 20 0 39784 11m 3164 S 0 0.6 0:00.18 /usr/sbin/apache2 -k start
4918 www-data 20 0 39784 11m 3144 S 0 0.6 0:00.19 /usr/sbin/apache2 -k start
4917 www-data 20 0 39748 11m 3160 S 0 0.6 0:00.35 /usr/sbin/apache2 -k start
4915 www-data 20 0 39524 11m 3156 S 0 0.5 0:00.33 /usr/sbin/apache2 -k start
5011 www-data 20 0 39500 11m 3696 S 0 0.6 0:01.82 /usr/sbin/apache2 -k start
5383 www-data 20 0 38424 9.9m 3088 S 0 0.5 0:00.32 /usr/sbin/apache2 -k start
5381 www-data 20 0 38168 9896 2996 S 0 0.5 0:00.32 /usr/sbin/apache2 -k start
5384 www-data 20 0 38168 9752 2980 S 0 0.5 0:00.31 /usr/sbin/apache2 -k start
5395 www-data 20 0 37912 9760 3112 S 0 0.5 0:00.78 /usr/sbin/apache2 -k start
2886 root 20 0 37196 12m 5992 S 0 0.6 0:02.00 php index.php daemon
2827 root 20 0 35184 8952 5164 S 0 0.4 0:00.79 /usr/sbin/apache2 -k start
2891 root 20 0 17448 2528 1644 S 0 0.1 0:00.36 /usr/sbin/console-kit-daemon
5654 postfix 20 0 13164 4648 3444 S 0 0.2 0:00.05 smtpd -n smtp -t inet -u -c -o stress
5679 postfix 20 0 13140 4552 3364 S 0 0.2 0:00.06 smtpd -n smtp -t inet -u -c -o stress
2761 root 20 0 8632 3056 2460 S 0 0.1 0:00.13 sshd: root@pts/0
5685 root 20 0 8632 3124 2460 S 0 0.2 0:00.13 sshd: root@pts/2
5532 root 20 0 8488 3040 2460 S 0 0.1 0:00.08 sshd: root@pts/1
after setting apache2.conf to:
<IfModule mpm_prefork_module>
StartServers 3
MinSpareServers 2
MaxSpareServers 2
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
top - 17:10:16 up 3:39, 2 users, load average: 0.10, 0.03, 0.01
Tasks: 131 total, 1 running, 130 sleeping, 0 stopped, 0 zombie
Cpu0 : 0.3%us, 0.3%sy, 0.0%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2053208k total, 206280k used, 1846928k free, 18728k buffers
Swap: 3903784k total, 0k used, 3903784k free, 93940k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2394 mysql 20 0 126m 17m 5228 S 0 0.9 0:08.76 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/run/mysqld/mysqld.
2280 bind 20 0 77528 19m 2288 S 0 1.0 0:00.14 /usr/sbin/named -u bind
5826 www-data 20 0 38132 9288 2844 S 0 0.5 0:00.16 /usr/sbin/apache2 -k start
2886 root 20 0 37196 13m 5992 S 0 0.6 0:02.07 php index.php daemon
5822 root 20 0 35176 8036 4604 S 0 0.4 0:00.08 /usr/sbin/apache2 -k start
5827 www-data 20 0 35176 4040 596 S 0 0.2 0:00.00 /usr/sbin/apache2 -k start
5828 www-data 20 0 35176 4040 596 S 0 0.2 0:00.00 /usr/sbin/apache2 -k start
2891 root 20 0 17448 2532 1644 S 0 0.1 0:00.39 /usr/sbin/console-kit-daemon
5685 root 20 0 8632 3124 2460 S 0 0.2 0:00.26 sshd: root@pts/2
5532 root 20 0 8488 3040 2460 S 0 0.1 0:00.08 sshd: root@pts/1
2713 root 20 0 7492 876 504 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/postfix/var/run/saslauthd -r
2714 root 20 0 7492 508 136 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/postfix/var/run/saslauthd -r
2715 root 20 0 7492 504 132 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/postfix/var/run/saslauthd -r
2716 root 20 0 7492 504 132 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/postfix/var/run/saslauthd -r
2717 root 20 0 7492 504 132 S 0 0.0 0:00.00 /usr/sbin/saslauthd -a pam -m /var/spool/postfix/var/run/saslauthd -r
2584 root 20 0 7388 4184 1612 S 0 0.2 0:00.51 /usr/bin/perl -wT /usr/sbin/pop-before-smtp --daemon=/var/run/pop-before-smtp.pid
3217 postfix 20 0 6176 2584 1872 S 0 0.1 0:00.06 tlsmgr -l -t unix -u -c
2695 postfix 20 0 5836 1864 1496 S 0 0.1 0:00.04 qmgr -l -t fifo -u
5354 postfix 20 0 5792 1756 1404 S 0 0.1 0:00.01 pickup -l -t fifo -u -c
2683 root 20 0 5780 1772 1416 S 0 0.1 0:00.02 /usr/lib/postfix/master
2304 root 20 0 5436 1072 680 S 0 0.1 0:00.00 /usr/sbin/sshd
2491 root 20 0 4576 1464 952 S 0 0.1 0:00.01 /usr/lib/courier/courier-authlib/authdaemond