mysql optimization – if you are using Word Press, do not turn off persistent connection | ||
| ||
| I am using Virtual Private Hosting service, and I found that my server has some problem as below. As you can see the CPU occupation rate is more than 300%. So my server response speed is the most slower than I had experiences before.
I had read some articles on internet, and the most of the recommendation was turning off the persistent connection option (mysql.allow_persistent). So I tried to change the setting by opening /etc/php.ini to check persistent connection setting. Following is the basic setting on my server:
And I changed as below: But the result is very disappointed. As you can see the maximum CPU occupation rate is more than 800%. My apache does not response at all.
In terms of Word Press point of view, persistent connection option is very helpful, because Word Press requires persistent connection. | ||
| | ||
| |