Slow apache on ubuntu -
we have pretty standard lamp stack (ubuntu 12.04 - apache2 - mysql - php), on dedicated server big hosting provider.
since couple of days experiencing slow web performance time time (requests succeed take 10-15 seconds).
i have tried check server usage top command, nil seems indicate unusual or excessive usage (cpu usage lie between 10-30%).
tasks: 268 total, 2 running, 266 sleeping, 0 stopped, 0 zombie cpu(s): 4.2%us, 2.8%sy, 0.0%ni, 80.3%id, 11.3%wa, 0.0%hi, 1.4%si, 0.0%st mem: 8070300k total, 7779400k used, 290900k free, 66648k buffers swap: 0k total, 0k used, 0k free, 2799188k cached does have thought other stats check , in direction should go on searching?
the issue number of simultaneous connections allowed on apache, default set 150 (in /etc/apache2/apache2.conf file). updated directives:
<ifmodule mpm_prefork_module> serverlimit 1500 startservers 5 minspareservers 5 maxspareservers 10 maxclients 1500 maxrequestsperchild 0 </ifmodule> further readings:
http://oxpedia.org/wiki/index.php?title=tune_apache2_for_more_concurrent_connections how increment max number of concurrent connections in apache?
apache ubuntu lamp
No comments:
Post a Comment