PDA

View Full Version : Same processes runs 5 times without anything goes on?


webking
4th December 2007, 11:12
I've installed CentOS 5 and ISPconfig. Nothing on the server yet. No websites, no nothing except those 2 on the server. I m checking the "ps -aux", I m seeing same processes are running 5 times each. What's happening and what should I do to prevent that happens? I've rebooted the server and I see the same thing. How do configure or what to do?

What's mingetty? it shows 5 times.

root 304 0.0 0.0 0 0 ? S< 04:04 0:00 [kpsmoused]
root 324 0.0 0.0 0 0 ? S< 04:04 0:00 [kmirrord]
root 329 0.0 0.0 0 0 ? S< 04:04 0:00 [ksnapd]
root 332 0.0 0.0 0 0 ? S< 04:04 0:00 [kjournald]
root 359 0.0 0.0 0 0 ? S< 04:04 0:00 [kauditd]
root 393 0.1 0.1 2120 580 ? S<s 04:04 0:00 /sbin/udevd -d
root 628 0.0 0.0 0 0 ? S< 04:04 0:00 [kgameportd]
root 1101 0.0 0.0 0 0 ? S< 04:04 0:00 [kjournald]
rpc 1603 0.0 0.1 1776 548 ? Ss 04:04 0:00 portmap
root 1628 0.0 0.1 1784 724 ? Ss 04:04 0:00 rpc.statd
root 1658 0.0 0.1 5384 584 ? Ss 04:04 0:00 rpc.idmapd
root 1712 0.0 0.2 9328 1104 ? Ssl 04:04 0:00 automount
root 1738 0.0 0.2 5248 960 ? Ss 04:04 0:00 /usr/sbin/sshd
ntp 1756 0.0 0.9 4304 4304 ? SLs 04:04 0:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
root 1823 0.0 0.2 4484 1204 ? S 04:04 0:00 /bin/sh /usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --pid-file=/var/run/mysqld/mysqld.pid --log-error=/var/log/mysqld.log
mysql 1859 0.0 4.2 137016 19248 ? Sl 04:04 0:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --s
root 1888 0.0 0.1 1832 564 ? Ss 04:04 0:00 /usr/sbin/dovecot
root 1921 0.0 0.3 7480 1768 ? S 04:04 0:00 dovecot-auth
dovecot 1922 0.0 0.3 4772 1756 ? S 04:04 0:00 pop3-login
dovecot 1923 0.0 0.3 4772 1756 ? S 04:04 0:00 pop3-login
dovecot 1924 0.0 0.3 4772 1756 ? S 04:04 0:00 pop3-login
dovecot 1925 0.0 0.3 4772 1760 ? S 04:04 0:00 imap-login
dovecot 1926 0.0 0.3 4772 1760 ? S 04:04 0:00 imap-login
dovecot 1927 0.0 0.3 4772 1760 ? S 04:04 0:00 imap-login
root 2004 0.0 0.2 5224 1112 ? Ss 04:04 0:00 crond
root 2027 0.0 0.1 1640 528 ? SNs 04:04 0:00 anacron -s
root 2041 0.0 0.1 5428 700 ? Ss 04:04 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam
root 2042 0.0 0.0 5428 432 ? S 04:04 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam
root 2043 0.0 0.0 5428 420 ? S 04:04 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam
root 2046 0.0 0.0 5428 420 ? S 04:04 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam
root 2047 0.0 0.0 5428 420 ? S 04:04 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam
root 2159 0.0 1.9 18324 8620 ? Ss 04:04 0:00 /root/ispconfig/httpd/bin/ispconfig_httpd -DSSL
root 2160 0.0 0.2 4484 1128 ? S 04:04 0:00 /bin/bash /root/ispconfig/sv/ispconfig_wconf
101 2164 0.0 1.5 18296 6992 ? S 04:04 0:00 /root/ispconfig/httpd/bin/ispconfig_httpd -DSSL
root 2189 0.0 1.7 24456 8020 ? Ss 04:04 0:00 /usr/sbin/httpd
root 2190 0.0 0.0 1672 448 ? S 04:04 0:00 /root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d
apache 2194 0.0 1.0 24588 4644 ? S 04:04 0:00 /usr/sbin/httpd
apache 2195 0.0 1.0 24588 4640 ? S 04:04 0:00 /usr/sbin/httpd
apache 2196 0.0 0.8 24456 3976 ? S 04:04 0:00 /usr/sbin/httpd
apache 2197 0.0 0.8 24456 3976 ? S 04:04 0:00 /usr/sbin/httpd
apache 2198 0.0 0.8 24456 3976 ? S 04:04 0:00 /usr/sbin/httpd
apache 2199 0.0 0.8 24456 3976 ? S 04:04 0:00 /usr/sbin/httpd
apache 2211 0.0 0.8 24456 3976 ? S 04:04 0:00 /usr/sbin/httpd
apache 2212 0.0 0.8 24456 3976 ? S 04:04 0:00 /usr/sbin/httpd
root 2247 0.0 0.5 8248 2464 ? Ss 04:04 0:00 sshd: root@pts/0
root 2275 0.0 0.3 6688 1752 ? Ss 04:04 0:00 /usr/libexec/postfix/master
postfix 2277 0.0 0.3 6752 1716 ? S 04:04 0:00 pickup -l -t fifo -u
postfix 2278 0.0 0.3 6812 1760 ? S 04:04 0:00 qmgr -l -t fifo -u
named 2324 0.0 0.6 36804 3032 ? Ssl 04:04 0:00 /usr/sbin/named -u named -t /var/named/chroot
nobody 2351 0.0 0.1 2536 840 ? Ss 04:04 0:00 proftpd: (accepting connections)
101 2357 0.0 0.1 2604 792 ? Ss 04:04 0:00 /home/admispconfig/ispconfig/tools/clamav/bin/freshclam -d -c 10 --datadir=/home/admispconfig/ispconfig/tools/clamav/share/clamav
root 2364 0.0 0.3 4492 1396 pts/0 Ss 04:04 0:00 -bash
root 2375 0.0 1.1 7304 5340 ? Ss 04:04 0:00 /usr/bin/perl /usr/local/webmin/miniserv.pl /etc/webmin/miniserv.conf
root 2380 0.0 0.0 1628 444 tty1 Ss+ 04:04 0:00 /sbin/mingetty tty1
root 2381 0.0 0.0 1628 444 tty2 Ss+ 04:04 0:00 /sbin/mingetty tty2
root 2382 0.0 0.0 1628 444 tty3 Ss+ 04:04 0:00 /sbin/mingetty tty3
root 2383 0.0 0.0 1628 444 tty4 Ss+ 04:04 0:00 /sbin/mingetty tty4
root 2384 0.0 0.0 1628 440 tty5 Ss+ 04:04 0:00 /sbin/mingetty tty5
root 2385 0.0 0.0 1624 440 tty6 Ss+ 04:04 0:00 /sbin/mingetty tty6
root 2546 0.0 0.1 3676 468 ? S 04:08 0:00 sleep 10

till
4th December 2007, 14:17
The output of ps aux is fine. It is normal that the daemons spawn more then one process when they start. The number of processes is defined in the config file of every daemon, but you should not change this.

mlz
4th December 2007, 17:42
Depending on load, you may actually need to up the httpd threads, tho' with newer apache2 I haven't had to do that yet. 1.3 had issues here, and you had to "tune" it, 2 relieves that by being a bit smarter about threads. Your seeing multiple threads (separate process) to help avoid having visitors wait while a new handler loads. Almost all daemons do this, particularly if the system gets a heavy loads.

I used to gauge how busy the server was by how many httpd daemons are running. You'll see a definate correlation between processor load and the number of daemons. However if it needs to have 20 or 30 running, it needs it. Don't skimp or you'll get complaints.