Here is my server specification and I am hosting one site 4 Generic \ 2048 MB \ DDR2 667 FB DIMM 1 Seagate \ 146GB:SAS:15K \ ST3146855SS 1 Dell \ 1066/1333FSB Dual Xeon \ PowerEdge 2950 1 Dell \ 9G Drive Controller - SAS/SATA - budget raid \ SAS 6/iR 2 Intel \ 2.0 GHz 1333FSB - Harpertown \ Xeon 5405 (Quad Core) 4 Generic \ 1024 MB \ DDR2 667 FB DIMM 1 Dell \ 4 Drive Max \ Drive Bay for 2950 Installed Software - Redhat Enterprise Linux - x86_64 - OS ES 5.0 - SWsoft Plesk - Linux - 100 Domain 8.2 Here's my question.. my load is steady around 0.25 ~ 0.50, but my site gets slow.. what do you guys recommend.. I am new to server tweaking so any suggestion would be great.. First of all am I suppose to change my.cnf from etc folder or /etc/httpd/conf/httpd.conf file ? information at my.cnf is [mysqld] set-variable=local-infile=0 datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 max_connections=3000 [mysql.server] user=mysql basedir=/var/lib [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid and.... infomation in /etc/httpd/conf/httpd.conf file is StartServers 15 MinSpareServers 10 MaxSpareServers 40 ServerLimit 2000 MaxClients 2000 MaxRequestsPerChild 10000 please help !
Server load can be misleading at times. What is the i/o wait on the server (try using iowait)? A lot depends on the amount of traffic (and type - is it connection oriented? db driven?) for the Apache configs. If traffic is heavy, are you sure your mysql db is responding fast enough?
Forget server specs. Good code is the most important thing. Better hardware can increase your speed by factor of max 2 or 3. Better code on the other hand can easily speed up by 100 or more. It's all about the code.
If you're code is written well then you might have an issue with the advertisers code you are running. I've had issues with 3rd party javascripts taking forever to load and my page wouldn't come up until they did. You might also just have a slow connection line. I moved from a 10Mbps line to a 100Mbps line for $15 extra per month with my hosting company and the difference was night and day.