Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
It started with random errors from Apache that cannot connect to the MySQL server, a couple of times a day, with loadavg like 0.20-0.40. Wait_timeout wasn't specifically needed, but just came across this option and thought it might be a good idea to get rid of idle connections more often. Then I noticed the issue with that script an became curious.mflorell wrote:...As for setting your MySQL wait time so low, what was your reasoning for that?
Used MySQL memory = key_buffer + max_connections * (join_buffer + record_buffer + sort_buffer + thread_stack + tmp_table_size)
...
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 200
MaxRequestsPerChild 0
</IfModule>
...
<IfModule mpm_worker_module>
StartServers 2
MaxClients 200
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
...
WARNING: MaxClients of 300 exceeds ServerLimit value of 256 servers,
lowering MaxClients to 256. To increase, please see the ServerLimit
directive
Users browsing this forum: Google [Bot] and 70 guests