Hi
It was working fine.
Suddenly the server is loading very slowly.
I tried to make some changes in httpd.conf
Still it is not faster.
i7 with 8gb ram.
httpd.conf
KeepAlive On
MaxKeepAliveRequests 0
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 16
MinSpareServers 15
MaxSpareServers 64
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 100000
</IfModule>
my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
max_user_connections=25
max_connections=500
interactive_timeout=10
wait_timeout=10
connect_timeout=10
thread_cache_size=128
key_buffer=16M
join_buffer=1M
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=2M
read_buffer_size=2M
max_connect_errors=10# Try number of CPU's*2 for thread_concurrencythread_concurrency=8
myisam_sort_buffer_size=64M
#log-binserver-id=1
old-passwords = 1
[mysql.server]
user=mysqlbasedir=/var/lib
[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
open_files_limit=8192
[mysqldump]
quickmax_allowed_packet=16M
[mysql]
no-auto-rehash
#safe-updates
[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[mysqlhotcopy]
interactive-timeout
Home page is static. But loading of homepage itself is very slow.
I don't have much queries.
So i think it should be dealt with httpd and php.
I have also installed php acceleration (yum install php-eaccelerator)