By shanefjordan on
We are running RHEL 4, PHP 4, MySQL4, Apache2 and everything seemed great in testing. However, now we have run into an issue that if a user clicks the refresh button multiple times, that it crashes the site. If the site is being used as normal, then there is no issue. It seems as though it does not release the apache processes. I imagine there is a configuration setting for this, but any ideas on what setting and what it should be set to?
Thanks,
Shane
Comments
We just installed and tried
We just installed and tried this with RHEL 5, PHP5, MySQL5, and Apache2 with the same results.
Explore the following options in Apache
In your apache configuration is KeepAlive set to On?
Try to understand the following options in Apache and see if changing them helps...
StartServers
MinSpareServers
MaxSpareServers
MaxClients
MaxRequestsPerChild
MaxKeepAliveRequests
We have the following
We have the following settings --
Apache:
MySQL:
What setting am I missing? I know there are thousands of sites running Drupal and they don't die when someone holds the refresh.
Thanks,
Shane
KeepAliveTimeOut to 15 seconds
Try changing the timeout to 15. Does this help?
We have narrowed this down
We have narrowed this down to MySQL processes sleeping. We took the same queries that are being ran from drupal and put them in a php script executing each one. We can hold the refresh on our script and it does not touch the server. Something in the Drupal code is affecting this, but we don't know what.
Thanks,
Shane
The only real solution we
The only real solution we could come to was to turn on page caching in the Drupal performance settings. We set our cache interval to 5 minutes, which we may play with as time goes on.
- Shane