Server Factors
Everything done correctly, there still may be some server factors that may be causing the system to be slow. These are:
1. Hardware related 2. Server configuration related
Here is what you can do about the hardware:
1. The more RAM is on the system the better it is. MySQL frequently fetches data from the RAM and more the RAM is on the system, the better it is.
2. Buy the fastest possible RAM! A slower RAM is just irony.
3. Once you are settled with the RAM size and speed, look for processing speed. MySQL can use multiple processors.
Once you are satisfied with the hardware, there are a set of variables in “my.cnf” that you must look at:
a) key_buffer_size: This describes the memory available to store the index keys. The default is 8 MB but you can set it to 25% of the RAM.
b) query_cache_size: This value is by default 0. if you have a lot of repeating queries like in reporting applications etc, make sure you set this value high.
c) table_open_cache: This determines the number of table descriptors that MySQL will keep in the cache. The default value is 64. But, if you have 100 users accessing a table concurrently then this value should atleast be 100. You also have to take into considerations joins etc. Thus, this value should also be kept high.
I hope this article will take one step further in unlocking the mystery of slow servers and help solve some of the problems.
Page 2 of 2 :: First | Last :: Prev | 1 2 | Next
|