at times it gives "error establishing a database connection", internal server error... and i can't connect through ssh..i need to phisically restart it.
Main Topics
Browse All TopicsI am running a wordpress blog on a dedicated server. The blog has now between 20.000/25.000 visitors a day and I keep having problems as the server randomly crashes. I have looked at the apache error.log but I really didn't find any particular problem.
Is there a way to better analyze the server's health? How can i optimize my server the best way to work efficently with wordpress with that number of visits? Some time ago I used a mysql optimization tool to optimize the db but the server kept crashing therefore I removed all my "improvements" as I think the problem comes from the site itself. Possibly scripts or apache standard configuration. Is there a script/application or way to find our what's messing up my server?
Server details:
Dell Poweredge 2950 III
Quad-Core Xeon E5405 2.0GHz/2x6MB 1333FSB
4GB 667MHz FBD (4x1GB dual rank DIMMs)
2 X 160GB SATA2 (7,200rpm) (RAID 1 configuration)
OS: Centos 5
Control Panel: ISPCONFIG
Thanks guys for the help.
Stefano
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Sounds like your database server is giving you some issues. Is the database server MySQL?
I am going to assume your running a Linux box, with Apache and MySQL installed as that's a pretty normal install for a wordpress machine.
Firstly lets enable your database server to track any queries that are taking a particulary long time.
1) Firstly edit the MySQL configuration file.
[root@server]# nano /etc/my.cnf
2) And then add the following lines to the [mysqld] section of that file.
log-slow-queries
long_
3) Save the file (CTRL + O) then exit (CTRL + X)
4) You'll then need to restart the MySQL server.
[root@server]# service mysqld restart
5) The DB server will then keep a log of any queries that tae longer than 5 seconds to execute. The log files are stored in the data folders for MySQL, so this is usually somewhere like the folder /var/lib/mysql/ and they usually have the extansion "-slow.log" appended to the filename.
Keep an eye on that for a few days and notice any particular queries that are causing problems. Then post them here and well see if we can either optimise the query better or add an index to the database that will improve the speed of execution for that query.
Business Accounts
Answer for Membership
by: namolPosted on 2009-11-02 at 07:08:43ID: 25720014
When the server crashes, does it physically crash ie it reboots the server or does httpd stop responding and it needs to be restarted? If you take a look at /var/log/messages is there anything useful in there? Also the mysql logs might be there also so you can take a look at them and see if there is anything weird going on.