Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Rather than guessing on coffee grounds, you need to take measurements.
4 Useful Commandline Tools to Monitor MySQL Perform...
Tuning Your MySQL Database
MySQLTuner-perl
I get the impression that people generally cease to understand what megahertz is and what does it have to do with it at all. They cease to understand the connection between megahertz and the speed of work :(
Topikstarter, in your opinion, what does 400 MHz mean? 400 parrots? 400 million WHAT?
PS Started at 4.7 MHz :)
Well, then 400 megahertz is very small, so this is not surprising.
Whether you are running out of CPU resources - you can tell by the output of the top command. If MySQL eats more than 90% while executing a query (assuming that you have one core) - there is definitely not enough processor performance.
See if you have gone to SWAP - you may not have enough RAM. The command free -m or top
Requests for a request are different - if your request consists of a dozen joins, then even a dozen cores will not save here.
In general, 400 MHz for a web server is not enough.
Please provide information on server and MySQL configuration, as well as an example query. Is your MySQL config default? With the inclusion of caching, the situation can change for the better (provided that there are enough resources for this).
You can enable the slow query log - add the lines
log-slow-queries=/var/log/slow_queries.log
long_query_time=3 to the mysql config
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question