Apache configuration problem: huge daemons and I often lose controlof the server
am 26.09.2009 11:10:43 von Alvise Nicoletti
Hi ...
I use ubuntu-server jaunty with apache2 and php5.
I also use tomcat6 on the server but I still can't configure mod_jk to
use the jsp website on port 80.
I write you because every daemon's size of apache2 processes is big
from 35 to 55 megabytes.
So with a configuration like:
KeepAlive Off
StartServers 2
MinSpareServers 3
MaxSpareServers 15
MaxClients 100
MaxRequestsPerChild 5000
I run out of memory in a 1Gb RAM server.
I also notice that in a 700 free Mb of RAM situation, after opening 10
websites toghether, the used memory never comes back to 700Mb.
It's like if apache creates those daemons that he puts on sleep without
freeing memory.
Can you help me to understand the problem?
SERVER CONFIGURATION:
|*apache2 -V
Server version: Apache/2.2.11 (Ubuntu)
Server built: Aug 18 2009 14:27:36
Server's Module Magic Number: 20051115:21
Server loaded: APR 1.2.12, APR-Util 1.2.12
Compiled using: APR 1.2.12, APR-Util 1.2.12
Architecture: 64-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=""
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf
*|
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Apache configuration problem: huge daemons and I often lose controlof the server
am 27.09.2009 10:36:26 von Alvise Nicoletti
Hi again ...
I need help, this morning I lost again the control of the server.
99% cpu and no answer from SSHD.
After webfarm will have manually rebooted the system, I need some help
from you to understand the problem.
It's happened 4 times already...
Alvise Nicoletti wrote:
> Hi ...
>
> I use ubuntu-server jaunty with apache2 and php5.
> I also use tomcat6 on the server but I still can't configure mod_jk to
> use the jsp website on port 80.
>
> I write you because every daemon's size of apache2 processes is big
> from 35 to 55 megabytes.
> So with a configuration like:
> KeepAlive Off
>
> StartServers 2
> MinSpareServers 3
> MaxSpareServers 15
> MaxClients 100
> MaxRequestsPerChild 5000
>
>
> I run out of memory in a 1Gb RAM server.
>
> I also notice that in a 700 free Mb of RAM situation, after opening 10
> websites toghether, the used memory never comes back to 700Mb.
> It's like if apache creates those daemons that he puts on sleep
> without freeing memory.
>
> Can you help me to understand the problem?
>
>
>
> SERVER CONFIGURATION:
> |*apache2 -V
> Server version: Apache/2.2.11 (Ubuntu)
> Server built: Aug 18 2009 14:27:36
> Server's Module Magic Number: 20051115:21
> Server loaded: APR 1.2.12, APR-Util 1.2.12
> Compiled using: APR 1.2.12, APR-Util 1.2.12
> Architecture: 64-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=""
> -D SUEXEC_BIN="/usr/lib/apache2/suexec"
> -D DEFAULT_PIDLOG="/var/run/apache2.pid"
> -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
> -D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
> -D DEFAULT_ERRORLOG="logs/error_log"
> -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
> -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf
> *|
>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org