In Apache Status,the "requests currently being processed",can it be changed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Everyone!
 
I have a Apache 2.2 server running ab php5, mysql forum,with CentOS 4.4.
 
Most of my visitors are from our intranet.
 
The problem is, sometimes, the pages is hardly to open,and sometimes it opens very fast.
In apache status,I noticed this:
 
============================================
Current Time: Saturday, 24-Nov-2007 15:59:38 CST
Restart Time: Friday, 23-Nov-2007 21:35:28 CST
Parent Server Generation: 4
Server uptime: 18 hours 24 minutes 10 seconds
Total accesses: 2798113 - Total Traffic: 74.8 GB
CPU Usage: u520.45 s77.28 cu0 cs0 - .902% CPU load
42.2 requests/sec - 1.2 MB/second - 28.0 kB/request
150 requests currently being processed, 0 idle workers
============================================
 
The last line, requests,I found it always is 150.For example ,150 currently,and 0 idle,or 138 currently ,12 idle.
 
The cpu and memory load of my server is low, so I think the problem is the "REQUESTS".
 
How can I change the max requests of my server?
 
I changed my prefork.c to a very large number,for example:
 
====================================
<IfModule prefork.c>
StartServers         100
MinSpareServers      100
MaxSpareServers     200
ServerLimit       12000
MaxClients         8000
MaxRequestsPerChild  12000
</IfModule>
====================================
it's is so large,isn't?
 
My Apache configuration:
====================================
[root@bbs ~]# /usr/local/apache2/bin/httpd -V
Server version: Apache/2.2.4 (Unix)
Server built:   Sep 29 2007 13:03:55
Server's Module Magic Number: 20051115:4
Server loaded:  APR 1.2.8, APR-Util 1.2.8
Compiled using: APR 1.2.8, APR-Util 1.2.8
Architecture:   32-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
=============================================
 
so,what is the problem? and how can I change the max requests of my Apache server?
 
Thank you very much!

--
from:baalchina

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux