Current time: 12-24-2024, 11:12 AM Hello There, Guest! (LoginRegister)


Post Reply 
too many apache2 processes...
Author Message
bulforce Offline
Junior Member
*

Posts: 63
Joined: Oct 2007
Reputation: 0
Post: #1
too many apache2 processes...
Is it normal to have so many apache processes ??

Code:
PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+   PPID RUSER     UID GROUP    SWAP   TIME CODE DATA Flags    COMMAND
7929 root      15   0  2352 1268  864 R    1  0.1   0:00.06 22228 root        0 root     1084   0:00   48  476 ..4.2... top
2442 www-data  18   0  232m 8704 1904 S    0  0.8   0:00.00 18235 www-data   33 www-data 224m   0:00  316 224m ..4.214. /usr/sbin/apache2 -k start
2444 www-data  22   0  232m 8704 1904 S    0  0.8   0:00.42 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2445 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.38 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2446 www-data  22   0  232m 8704 1904 S    0  0.8   0:00.31 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2447 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.33 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2448 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.28 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2449 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.29 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2450 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.38 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2451 www-data  16   0  232m 8704 1904 S    0  0.8   0:00.33 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2452 www-data  19   0  232m 8704 1904 S    0  0.8   0:00.41 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2453 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.31 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2454 www-data  19   0  232m 8704 1904 S    0  0.8   0:00.34 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2455 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.28 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2456 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.32 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2457 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.30 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2458 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.37 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2459 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.32 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2460 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.31 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2461 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.25 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2462 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.32 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2463 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.37 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2464 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.36 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2465 www-data  21   0  232m 8704 1904 S    0  0.8   0:00.30 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2466 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.44 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start
2467 www-data  15   0  232m 8704 1904 S    0  0.8   0:00.34 18235 www-data   33 www-data 224m   0:00  316 224m ..4.2.4. /usr/sbin/apache2 -k start

Thank you

Debian Etch
ispCP 1.0.0 RC4 OMEGA
build: 20080308
Priamos
08-26-2008 06:08 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: too many apache2 processes...
It is normal if you're using the prefork mpm...
08-27-2008 06:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
bulforce Offline
Junior Member
*

Posts: 63
Joined: Oct 2007
Reputation: 0
Post: #3
RE: too many apache2 processes...
The thing is that i dont use mpm prefork, all of the websites are running under php5-cgi

I am getting confused....
08-28-2008 02:38 PM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #4
RE: too many apache2 processes...
you may use prefork while using fastcgi ... please ensure you're using mpm-worker (you can install it via dselect / aptitude / apt
08-28-2008 04:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
bulforce Offline
Junior Member
*

Posts: 63
Joined: Oct 2007
Reputation: 0
Post: #5
RE: too many apache2 processes...
Thank you for your responds, it seems that i already have mpm-worker but however i upgrade it .

Code:
# apt-get install apache2-mpm-worker
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  apache2.2-common
The following packages will be upgraded:
  apache2-mpm-worker apache2.2-common
2 upgraded, 0 newly installed, 0 to remove and 73 not upgraded.
Need to get 1388kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
08-31-2008 12:56 AM
Find all posts by this user Quote this message in a reply
bulforce Offline
Junior Member
*

Posts: 63
Joined: Oct 2007
Reputation: 0
Post: #6
RE: too many apache2 processes...
Here is what i see with top
Quote:
# top
top - 18:15:00 up 175 days, 13:30, 2 users, load average: 0.07, 0.04, 0.06
Tasks: 284 total, 1 running, 283 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.2%us, 0.2%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1031024k total, 905392k used, 125632k free, 94040k buffers
Swap: 2104504k total, 551116k used, 1553388k free, 261740k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ PPID RUSER UID GROUP SWAP TIME CODE DATA Flags COMMAND
12075 root 15 0 2356 1280 864 R 1 0.1 0:00.10 12072 root 0 root 1076 0:00 48 480 ..4.2... top
1 root 15 0 1944 512 480 S 0 0.0 0:48.67 0 root 0 root 1432 0:48 32 288 ..4..1.. init [2]
2 root RT 0 0 0 0 S 0 0.0 0:19.15 1 root 0 root 0 0:19 0 0 ....a.4. [migration/0]
3 root 34 19 0 0 0 S 0 0.0 0:01.95 1 root 0 root 0 0:01 0 0 ....a.4. [ksoftirqd/0]
4 root RT 0 0 0 0 S 0 0.0 0:17.12 1 root 0 root 0 0:17 0 0 ....a.4. [migration/1]
5 root 34 19 0 0 0 S 0 0.0 0:03.56 1 root 0 root 0 0:03 0 0 ....a.4. [ksoftirqd/1]
6 root 10 -5 0 0 0 S 0 0.0 0:00.08 1 root 0 root 0 0:00 0 0 ....a.4. [events/0]
7 root 10 -5 0 0 0 S 0 0.0 0:00.02 1 root 0 root 0 0:00 0 0 ....a.4. [events/1]
8 root 10 -5 0 0 0 S 0 0.0 0:00.00 1 root 0 root 0 0:00 0 0 ....a.4. [khelper]
9 root 10 -5 0 0 0 S 0 0.0 0:00.05 1 root 0 root 0 0:00 0 0 ....a.4. [kthread]
119 root 15 -5 0 0 0 S 0 0.0 5:01.09 9 root 0 root 0 5:01 0 0 ....a.4. [kblockd/0]
120 root 10 -5 0 0 0 S 0 0.0 0:35.51 9 root 0 root 0 0:35 0 0 ....a.4. [kblockd/1]
121 root 17 -5 0 0 0 S 0 0.0 0:00.00 9 root 0 root 0 0:00 0 0 ....a.4. [kacpid]
178 root 17 -5 0 0 0 S 0 0.0 0:00.00 9 root 0 root 0 0:00 0 0 ....a.4. [ata/0]
179 root 18 -5 0 0 0 S 0 0.0 0:00.00 9 root 0 root 0 0:00 0 0 ....a.4. [ata/1]
180 root 19 -5 0 0 0 S 0 0.0 0:00.00 9 root 0 root 0 0:00 0 0 ....a.4. [ata_aux]
181 root 19 -5 0 0 0 S 0 0.0 0:00.00 9 root 0 root 0 0:00 0 0 ....a.4. [ksuspend_usbd]
184 root 19 -5 0 0 0 S 0 0.0 0:00.00 9 root 0 root 0 0:00 0 0 ....2.4. [khubd]
186 root 10 -5 0 0 0 S 0 0.0 0:00.00 9 root 0 root 0 0:00 0 0 ....2.4. [kseriod]
212 root 10 -5 0 0 0 S 0 0.0 12:14.55 9 root 0 root 0 12:14 0 0 ..84284. [kswapd0]
213 root 11 -5 0 0 0 S 0 0.0 0:00.00 9 root 0 root 0 0:00 0 0 ....a.4. [aio/0]
214 root 12 -5 0 0 0 S 0 0.0 0:00.00 9 root 0 root 0 0:00 0 0 ....a.4. [aio/1]
915 root 11 -5 0 0 0 S 0 0.0 0:00.00 9 root 0 root 0 0:00 0 0 ....a.4. [kpsmoused]
918 root 15 0 0 0 0 S 0 0.0 0:09.17 1 root 0 root 0 0:09 0 0 ....2.4. [kirqd]
921 root 10 -5 0 0 0 S 0 0.0 44:37.85 9 root 0 root 0 44:37 0 0 ....2.4. [kjournald]
1039 root 19 -4 2172 316 292 S 0 0.0 0:00.23 1 root 0 root 1856 0:00 52 296 ..4..14. udevd --daemon
1456 vu2003 18 0 26740 9264 6344 S 0 0.9 0:00.07 18362 vu2003 2003 vu2003 17m 0:00 4852 2616 ..4.21.. /usr/bin/php5-cgi
1458 vu2003 15 0 28240 7004 3648 S 0 0.7 0:53.73 1456 vu2003 2003 vu2003 20m 0:53 4852 2932 ..4.2.4. /usr/bin/php5-cgi
1542 vu2009 17 0 26736 9260 6344 S 0 0.9 0:00.07 18362 vu2009 2009 vu2009 17m 0:00 4852 2612 ..4.21.. /usr/bin/php5-cgi
1543 vu2009 15 0 26900 6304 3096 S 0 0.6 0:00.44 1542 vu2009 2009 vu2009 20m 0:00 4852 2776 ..4.2.4. /usr/bin/php5-cgi
1544 vu2009 20 0 26924 6332 3100 S 0 0.6 0:00.36 1542 vu2009 2009 vu2009 20m 0:00 4852 2800 ..4.2.4. /usr/bin/php5-cgi
2001 root 18 -5 0 0 0 S 0 0.0 0:00.04 9 root 0 root 0 0:00 0 0 ....2.4. [kjournald]
2003 root 10 -5 0 0 0 S 0 0.0 0:01.98 9 root 0 root 0 0:01 0 0 ....2.4. [kjournald]
2508 www-data 18 0 232m 7548 1904 S 0 0.7 0:00.00 18360 www-data 33 www-data 225m 0:00 316 223m ..4.214. /usr/sbin/apache2 -k start
2510 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.21 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2511 www-data 18 0 232m 7548 1904 S 0 0.7 0:00.17 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2512 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.22 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2513 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.20 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2514 www-data 24 0 232m 7548 1904 S 0 0.7 0:00.25 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2515 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.17 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2516 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.18 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2517 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.20 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2518 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.16 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2519 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.20 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2520 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.24 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2521 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.24 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2522 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.20 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2523 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.20 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2524 www-data 18 0 232m 7548 1904 S 0 0.7 0:00.15 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2525 www-data 16 0 232m 7548 1904 S 0 0.7 0:00.16 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2526 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.21 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2527 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.16 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2528 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.25 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2529 www-data 18 0 232m 7548 1904 S 0 0.7 0:00.18 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start
2530 www-data 15 0 232m 7548 1904 S 0 0.7 0:00.21 18360 www-data 33 www-data 225m 0:00 316 223m ..4.2.4. /usr/sbin/apache2 -k start



What i need to know basically is... is this normal and why i have so many apache2 processes running under www-data user.

Thank you
(This post was last modified: 01-30-2009 05:18 PM by bulforce.)
09-01-2008 08:20 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)