Current time: 11-15-2024, 01:54 AM Hello There, Guest! (LoginRegister)


Post Reply 
How many php-cgi threads?
Author Message
Keirnan Offline
Newbie
*

Posts: 6
Joined: Feb 2009
Reputation: 0
Post: #1
How many php-cgi threads?
I have ISPCP RC7 on Ubuntu 8. The Apache and PHP configurations are all just how ISPCP left them. I have made no changes to them. I know very little about the various PHP configurations (cgi, fast-cgi, etc).

Right now, I have a lot of php-cgi processes running, as you can see below. Some of them are using significant resources.

My question is how many of those should I have? Is this normal? I thought it would only launch like 5 at the most.

Code:
top - 10:40:10 up 2 days,  5:36,  1 user,  load average: 0.05, 0.46, 0.62
Tasks: 120 total,   3 running, 117 sleeping,   0 stopped,   0 zombie
Cpu(s): 10.6%us,  1.3%sy,  0.0%ni, 88.1%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   1018156k total,   814980k used,   203176k free,    41508k buffers
Swap:  3036276k total,      636k used,  3035640k free,   117728k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
17241 vu2002    20   0  132m  86m 3276 S    0  8.7   1:15.69 php5-cgi
26058 vu2002    20   0  129m  83m 3268 S    0  8.4   0:56.54 php5-cgi
17913 vu2002    20   0  128m  82m 3152 S    0  8.3   1:06.47 php5-cgi
22716 vu2002    20   0  129m  80m 3192 S    0  8.1   0:41.42 php5-cgi
4469 mysql     20   0  164m  44m 5436 S    3  4.4  16:54.75 mysqld
20325 www-data  20   0  241m  14m 1644 S    0  1.5   0:11.60 apache2
8541 vu2002    20   0 27860  13m 3188 R   16  1.4   1:08.53 php5-cgi
24687 www-data  20   0  238m  13m 1652 S    0  1.4   0:11.67 apache2
8545 vu2002    20   0 26304  12m 3084 S    0  1.2   0:39.36 php5-cgi
8571 vu2002    20   0 25696  11m 3208 S    0  1.2   1:38.66 php5-cgi
8570 vu2002    20   0 25732  11m 3212 S    0  1.2   0:39.06 php5-cgi
8566 vu2002    20   0 25780  11m 3064 S    0  1.2   0:04.38 php5-cgi
8538 vu2002    20   0 25532  11m 3192 S    0  1.1   0:39.22 php5-cgi
8544 vu2002    20   0 25448  11m 3152 S    0  1.1   1:09.61 php5-cgi
8540 vu2002    20   0 25268  11m 3128 S    0  1.1   0:38.15 php5-cgi
8556 vu2002    20   0 25224  11m 3164 S    0  1.1   0:11.28 php5-cgi
8555 vu2002    20   0 25208  11m 3156 S    0  1.1   0:40.58 php5-cgi
20381 vu2001    20   0 25100  11m 3256 S    0  1.1   0:07.13 php5-cgi
8734 vu2002    20   0 25256  11m 3072 S    0  1.1   0:05.12 php5-cgi
8539 vu2002    20   0 25020  10m 3148 S    5  1.1   0:08.99 php5-cgi
20382 vu2001    20   0 24852  10m 3320 S    0  1.1   0:07.92 php5-cgi
8537 vu2002    20   0 24684  10m 3152 S    0  1.0   1:10.51 php5-cgi
8536 vu2002    20   0 24172  10m 3220 S    0  1.0   0:11.78 php5-cgi
8565 vu2002    20   0 24280  10m 3020 S    0  1.0   0:33.44 php5-cgi
24685 root      20   0 13480 9896 2040 S    0  1.0   0:09.73 ispcp-apache-lo
4762 root      20   0 13340 9800 2040 S    0  1.0   0:00.43 ispcp-apache-lo
24682 root      20   0 13340 9800 2040 S    0  1.0   0:00.42 ispcp-apache-lo
8733 vu2002    20   0 23604 9608 3048 S    0  0.9   0:04.56 php5-cgi
4348 bind      20   0 44620 8840 2036 S    0  0.9   0:01.85 named
24690 www-data  20   0  232m 8688 1680 S    0  0.9   0:12.23 apache2
4533 postgrey  20   0 11136 8184 2692 S    0  0.8   0:00.52 postgrey
31044 polw      20   0  8404 6316 1460 S    0  0.6   0:02.90 policyd-weight
4978 polw      20   0  8400 6268 1424 S    0  0.6   0:03.34 policyd-weight
4529 polw      20   0  8140 5948 1244 S    0  0.6   0:00.63 policyd-weight
4530 polw      20   0  8404 5768  876 S    0  0.6   0:00.57 policyd-weight
8531 vu2002    20   0 19240 5488 3700 S    0  0.5   0:00.08 php5-cgi
8533 vu2002    20   0 19240 5488 3700 S    0  0.5   0:00.07 php5-cgi
8532 vu2002    20   0 19240 5484 3700 S    0  0.5   0:00.08 php5-cgi
8542 vu2002    20   0 19240 5484 3700 S    0  0.5   0:00.07 php5-cgi
8552 vu2002    20   0 19240 5484 3700 S    0  0.5   0:00.07 php5-cgi
8563 vu2002    20   0 19240 5484 3700 S    0  0.5   0:00.07 php5-cgi
8732 vu2002    20   0 19240 5484 3700 S    0  0.5   0:00.05 php5-cgi
20379 vu2001    20   0 19240 5484 3700 S    0  0.5   0:00.01 php5-cgi
8569 vu2002    20   0 19240 5480 3700 S    0  0.5   0:00.07 php5-cgi
4837 root      20   0 40228 4656 1852 S    0  0.5   0:32.72 fail2ban-server
4759 root      20   0 11476 3420 1808 S    0  0.3   0:06.74 apache2
8749 postfix   20   0  6612 3096 2132 S    0  0.3   0:00.00 smtpd
8586 pragupia  20   0  5556 2940 1416 S    0  0.3   0:00.50 bash
8582 root      20   0  8056 2520 2064 S    0  0.2   0:00.04 sshd
02-10-2009 04:43 AM
Find all posts by this user Quote this message in a reply
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #2
RE: How many php-cgi threads?
if they are starting out of control for you... see http://www.isp-control.net/forum/showthr...p?tid=5613
02-10-2009 11:25 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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