You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Kailash Vyas <ka...@gmail.com> on 2005/05/14 22:23:24 UTC

[users@httpd] apache performance problems

hi 

I am facing some issues with apache webserver. The web pages are taking a 
long time to load especially the images.
The following is the configuration that i have kept in httpd.conf 
I am running apache 1.3 and php 4.3.1. is there anything wrong specified in 
the configuration file.

At runtime apache is loading 
Apache/1.3.33 (Unix) mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 
mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.10 FrontPage/5.0.2.2635 
mod_ssl/2.8.22 OpenSSL/0.9.7a PHP-CGI/0.1b

I used Apache jmeter for testing purposes and load time is around 
HTTP Request 74 samples 16373 ms(avg) 8312 ms(avg) 40498 ms (max) 45.8/hour 
(rate)

httpd.conf
========
RLimitMEM 408429909
RLimitCPU 240
Timeout 300
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0
HostnameLookups Off
UseCanonicalName On



LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule expires_module libexec/mod_expires.so
LoadModule php4_module libexec/libphp4.so
LoadModule bwlimited_module libexec/mod_bwlimited.so
LoadModule bytes_log_module libexec/mod_log_bytes.so
LoadModule auth_passthrough_module libexec/mod_auth_passthrough.so
#LoadModule jk_module libexec/mod_jk.so
LoadModule gzip_module libexec/mod_gzip.so
LoadModule bandwidth_module libexec/mod_bandwidth.so


php configuration
============
engine = On
y2k_compliance = On
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
serialize_precision = 100
allow_call_time_pass_reference = On
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing 
request data
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
variables_order = "EGPCS"
register_globals = Off
register_argc_argv = On
post_max_size = 8M
upload_max_filesize = 2M
allow_url_fopen = Off
default_socket_timeout = 60
default_mimetype = "text/html"
doc_root =
user_dir =
extension_dir = /usr/lib/php4
enable_dl = On
file_uploads = On
upload_max_filesize = 2M
allow_url_fopen = Off
default_socket_timeout = 60
[Syslog]
define_syslog_variables = Off
[mail function]
SMTP = localhost
sendmail_from = me@localhost.com
sendmail_path = /usr/sbin/sendmail -t -i
[Java]
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[MySQL]
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = -1
mysql.trace_mode = Off
[mSQL]
msql.allow_persistent = On
msql.max_persistent = -1
msql.max_links = -1
[PostgresSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off


thanks,
kailash