Apache2 服务器上有 97 个进程正常吗?

Apache2 服务器上有 97 个进程正常吗?

我有 97 个进程正在运行,这是 top 报告的。我只有基本安装 + apache2 和 php5。它真的能添加那么多东西吗?或者 ubuntu-desktop 有 300 个进程?

我在一台旧的 G4 powerpc 上运行它。

UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 13:35 ?        00:00:01 /sbin/init
root         2     0  0 13:35 ?        00:00:00 [kthreadd]
root         3     2  0 13:35 ?        00:00:00 [ksoftirqd/0]
root         4     2  0 13:35 ?        00:00:00 [watchdog/0]
root         5     2  0 13:35 ?        00:00:00 [events/0]
root         6     2  0 13:35 ?        00:00:00 [cpuset]
root         7     2  0 13:35 ?        00:00:00 [khelper]
root         8     2  0 13:35 ?        00:00:00 [netns]
root         9     2  0 13:35 ?        00:00:00 [async/mgr]
root        10     2  0 13:35 ?        00:00:00 [pm]
root        11     2  0 13:35 ?        00:00:00 [sync_supers]
root        12     2  0 13:35 ?        00:00:00 [bdi-default]
root        13     2  0 13:35 ?        00:00:00 [kintegrityd/0]
root        14     2  0 13:35 ?        00:00:00 [kblockd/0]
root        15     2  0 13:35 ?        00:00:00 [ata/0]
root        16     2  0 13:35 ?        00:00:00 [ata_aux]
root        17     2  0 13:35 ?        00:00:00 [ksuspend_usbd]
root        18     2  0 13:35 ?        00:00:00 [khubd]
root        19     2  0 13:35 ?        00:00:00 [kseriod]
root        21     2  0 13:35 ?        00:00:00 [khungtaskd]
root        22     2  0 13:35 ?        00:00:00 [kswapd0]
root        23     2  0 13:35 ?        00:00:00 [ksmd]
root        24     2  0 13:35 ?        00:00:00 [aio/0]
root        25     2  0 13:35 ?        00:00:00 [crypto/0]
root        28     2  0 13:35 ?        00:00:00 [khvcd]
root        30     2  0 13:35 ?        00:00:00 [kondemand/0]
root        31     2  0 13:35 ?        00:00:00 [kconservative/0]
root       196     2  0 13:35 ?        00:00:00 [khpsbpkt]
root       197     2  0 13:35 ?        00:00:00 [usbhid_resumer]
root       199     2  0 13:35 ?        00:00:00 [knodemgrd_0]
root       200     2  0 13:35 ?        00:00:00 [jbd2/hda3-8]
root       201     2  0 13:35 ?        00:00:00 [ext4-dio-unwrit]
root       262     1  0 13:35 ?        00:00:00 upstart-udev-bridge --daemon
root       266     1  0 13:35 ?        00:00:00 udevd --daemon
root       278     2  0 13:35 ?        00:00:00 [kapmd]
syslog     579     1  0 13:35 ?        00:00:00 rsyslogd -c4
104        586     1  0 13:35 ?        00:00:00 dbus-daemon --system --fork
root       641     1  0 13:35 tty4     00:00:00 /sbin/getty -8 38400 tty4
root       645     1  0 13:35 tty5     00:00:00 /sbin/getty -8 38400 tty5
root       649     1  0 13:35 tty2     00:00:00 /sbin/getty -8 38400 tty2
root       650     1  0 13:35 tty3     00:00:00 /sbin/getty -8 38400 tty3
root       653     1  0 13:35 tty6     00:00:00 /sbin/getty -8 38400 tty6
daemon     669     1  0 13:35 ?        00:00:00 atd
root       670     1  0 13:35 ?        00:00:00 cron
bind       717     1  0 13:35 ?        00:00:00 /usr/sbin/named -u bind
mysql      761     1  0 13:35 ?        00:00:03 /usr/sbin/mysqld
root       774     1  0 13:35 ?        00:00:00 /usr/sbin/mouseemu
root       776   774  0 13:35 ?        00:00:00 /usr/sbin/mouseemu
nobody     830     1  0 13:35 ?        00:00:00 dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file=  --listen-address 192.168.122.1 --except-interface lo --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-lease-max=253
root       880     1  0 13:35 tty1     00:00:00 /bin/login --     
root      1899     1  0 13:36 ?        00:00:00 /usr/sbin/console-kit-daemon --no-daemon
alex      1971   880  0 13:36 tty1     00:00:01 -bash
root      2031     1  0 13:36 ?        00:00:00 /usr/sbin/vsftpd
root      2055     2  0 13:49 ?        00:00:00 [flush-3:0]
root      2130     1  0 13:55 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  2133  2130  0 13:55 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  2134  2130  0 13:55 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  2135  2130  0 13:55 ?        00:00:04 /usr/sbin/apache2 -k start
www-data  2136  2130  0 13:55 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  2137  2130  0 13:55 ?        00:00:00 /usr/sbin/apache2 -k start
root      2203     1  0 13:56 ?        00:00:00 dhclient3 -e IF_METRIC=100 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp3/dhclient.eth0.leases eth0
root      2223     1  0 13:56 ?        00:00:00 /usr/sbin/sshd -D
root      3083   266  0 13:58 ?        00:00:00 udevd --daemon
www-data  3202  2130  0 13:59 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  3203  2130  0 13:59 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  3204  2130  0 14:00 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  3205  2130  0 14:00 ?        00:00:00 /usr/sbin/apache2 -k start
alex      3209  1971  0 14:05 tty1     00:00:00 ps -aef

答案1

您有十个 apache 线程正在运行,以提供更快的多线程响应时间。

您有 6 个终端正在运行。

就我个人而言,我并没有看到任何严重浪费进程空间的事情。

相关内容