Rano to zamrzlo pri 512 vlaknech, v error logu bylo jen
[Wed Aug 22 08:16:30 2012] [error] server reached MaxClients setting, consider raising the MaxClients setting
Normalni stav je kolem 120 vlaken a takhle extremne to vystreli jen rano, kdy rozhodne neni nejvetsi load.
Prikladam httpd.conf
User www
Group www
ServerLimit 700
MaxClients 512
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule status_module modules/mod_status.so
LoadModule info_module modules/mod_info.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule perl_module modules/mod_perl.so
php_admin_value safe_mode off
php_admin_value display_errors on
##########
TraceEnable Off
DocumentRoot "/var/www"
<VirtualHost *:80>
php_admin_value open_basedir "/var/www"
DocumentRoot /var/www
ServerName notexist
#CustomLog "/var/httpd/logs/access_log_default" combined
php_admin_value safe_mode off
</VirtualHost>
<Directory "/var/httpd/">
AllowOverride All
Order allow,deny
Allow from all
Options -Indexes
</Directory>
NameVirtualHost *:80
Listen 80
php_admin_value upload_tmp_dir "/var/www/prd/document_root/tmp"
php_admin_value session.save_path "/var/www/prd/document_root/tmp"
#################### hostname ###################
<VirtualHost *:80>
ServerName hostname.cz
ServerAlias www.hostname.cz
DocumentRoot /var/www/prd/document_root
ErrorLog /var/log/httpd/prd-hostname-error.log
php_admin_value open_basedir "/var/www/prd/document_root"
php_admin_value mysql.default_user XXXXXXXXXXXXX
php_admin_value mysql.default_password XXXXXXXXX
php_admin_value mysql.default_host localhost
php_admin_value upload_tmp_dir "/var/www/prd/document_root/tmp"
php_admin_value session.save_path "/var/www/prd/document_root/tmp"
php_admin_value safe_mode off
php_value default_charset "utf-8"
php_value error_reporting "E_ALL"
php_flag display_errors 0
php_admin_value post_max_size 50M
php_admin_value max_input_time 1200
php_admin_value max_execution_time 1200
</VirtualHost>
<Directory "/var/www/payments">
AllowOverride AuthConfig
php_value default_charset "WINDOWS-1250"
php_admin_value mysql.default_user XXXXXXXX
php_admin_value mysql.default_password XXXXXXXX
php_admin_value mysql.default_host localhost
#php_value mysql.default_host 77.93.197.28
#php_value mysql.default_socket /var/lib/mysql/mysql.sock
php_value register_globals 0
</Directory>
<VirtualHost *:80>
ServerName payments.hostname.cz
ServerAdmin info@hostname.cz
DocumentRoot /var/www/payments
ErrorLog /var/log/httpd/payments-hostname-error.log
#CustomLog /var/log/httpd/payments-hostname-access.log combined
</VirtualHost>
<Directory "/var/www/prd_test/document_root">
Options Indexes FollowSymLinks
AllowOverride All
php_value default_charset "UTF-8"
php_value mysql.default_user XXXXXXXXXX
php_value mysql.default_password XXXXXXXXX
# php_value mysql.default_socket /var/lib/mysql/mysql.sock
php_value register_globals 0
php_flag display_errors On
php_value error_reporting "E_ALL ^ E_NOTICE"
php_value default_charset "utf-8"
</Directory>
<VirtualHost *:80>
ServerName prdtest.hostname.cz
ServerAdmin tech@hostname.cz
DocumentRoot "/var/www/prd_test/document_root"
ErrorLog /var/log/httpd/prdtest-hostname-error.log
# CustomLog /var/log/httpd/prdtest-hostname-access.log combined
</VirtualHost>
<Directory "/var/www/quality_test/document_root">
Options Indexes FollowSymLinks
AllowOverride All
php_value default_charset "UTF-8"
php_value mysql.default_user XXXXXXXXXX
php_value mysql.default_password XXXXXXXXX
# php_value mysql.default_socket /var/lib/mysql/mysql.sock
php_value register_globals 0
php_flag display_errors On
php_value error_reporting "E_ALL ^ E_NOTICE"
php_value default_charset "utf-8"
</Directory>
<VirtualHost *:80>
ServerName quatest.hostname.cz
ServerAdmin tech@hostname.cz
DocumentRoot "/var/www/quality_test/document_root"
ErrorLog /var/log/httpd/quatest-hostname-error.log
# CustomLog /var/log/httpd/quatest-hostname-access.log combined
</VirtualHost>
<Directory "/var/www/quality_dev/">
Options Indexes FollowSymLinks
AllowOverride All
php_value default_charset "UTF-8"
php_value mysql.default_user XXXXXXXX
php_value mysql.default_password XXXXXXXX
# php_value mysql.default_socket /var/lib/mysql/mysql.sock
php_value register_globals 0
php_flag display_errors On
php_value error_reporting "E_ALL ^ E_NOTICE"
php_value default_charset "utf-8"
</Directory>
<VirtualHost *:80>
ServerName quadev.hostname.cz
ServerAdmin tech@hostname.cz
DocumentRoot "/var/www/quality_dev/"
ErrorLog /var/log/httpd/quadev-hostname-error.log
# CustomLog /var/log/httpd/quadev-hostname-access.log combined
</VirtualHost>
<Directory "/var/www/prddev">
Options Indexes FollowSymLinks
AllowOverride All
php_value default_charset "UTF-8"
php_value mysql.default_user XXXXXXXX
php_value mysql.default_password XXXXXXXX
# php_value mysql.default_socket /var/lib/mysql/mysql.sock
php_value register_globals 0
php_flag display_errors On
php_value error_reporting "E_ALL ^ E_NOTICE"
php_value default_charset "utf-8"
</Directory>
<VirtualHost *:80>
ServerName prddev.hostname.cz
ServerAdmin tech@hostname.cz
DocumentRoot "/var/www/prddev/"
ErrorLog /var/log/httpd/prddev-hostname-error.log
# CustomLog /var/log/httpd/prddev-hostname-access.log combined
</VirtualHost>
<Directory "/var/www/migration">
Options Indexes FollowSymLinks
AllowOverride All
php_value default_charset "UTF-8"
php_value mysql.default_user XXXXXXXX
php_value mysql.default_password XXXXXXXX
php_value register_globals 0
php_flag display_errors On
php_value error_reporting "E_ALL ^ E_NOTICE"
php_value default_charset "utf-8"
</Directory>
<VirtualHost *:80>
ServerName quality.hostname.cz
ServerAdmin tech@hostname.cz
DocumentRoot "/var/www/quality/document_root"
ErrorLog /var/log/httpd/quality-hostname-error.log
# CustomLog /var/log/httpd/quality-hostname-access.log combined
php_value mysql.default_user XXXXXXXX
php_value mysql.default_password XXXXXXXX
php_value register_globals 0
php_flag display_errors On
php_value error_reporting "E_ALL ^ E_NOTICE"
php_value default_charset "windows-1250"
</VirtualHost>
<Directory "/var/www/forum">
Options Indexes FollowSymLinks
AllowOverride All
php_value default_charset "UTF-8"
php_value mysql.default_user XXXXXXXX
php_value mysql.default_password XXXXXXXX
php_value register_globals 0
php_flag display_errors On
php_value error_reporting "E_ALL ^ E_NOTICE"
php_value default_charset "utf-8"
</Directory>
<VirtualHost *:80>
ServerName forum.hostname.cz
ServerAdmin tech@hostname.cz
DocumentRoot "/var/www/forum/"
ErrorLog /var/log/httpd/forum-hostname-error.log
# CustomLog /var/log/httpd/forum-hostname-access.log combined
</VirtualHost>
<Directory "/var/www/hostname/galerie">
Options Indexes FollowSymLinks
AllowOverride All
php_value default_charset "UTF-8"
php_value mysql.default_user XXXXXXXX
php_value mysql.default_password XXXXXXXX
php_value register_globals 0
php_flag display_errors On
php_value error_reporting "E_ALL ^ E_NOTICE"
php_value default_charset "utf-8"
</Directory>
<VirtualHost *:80>
ServerName galerie.hostname.cz
ServerAdmin tech@hostname.cz
DocumentRoot "/var/www/hostname/galerie/"
ErrorLog /var/log/httpd/galerie-hostname-error.log
#CustomLog /var/log/httpd/galerie-hostname-access.log combined
</VirtualHost>
########################################
<IfModule mod_status.c>
<Location /srvstat>
SetHandler server-status
</Location>
</IfModule>
ExtendedStatus On
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>