What are some good ways to improve the performance of the webserver that's running Webwork? Last semester, we were running into serious issues where students would take a quiz, try to submit an answer, and the page would hang. They'd have to refresh the page or hit the browser back button and re-submit the answer multiple times to try and get it to submit. This would occur at seemingly random times throughout the day, but mostly at night or very early in the morning (2am).
I've since updated to the newest version of Webwork in hopes that it would improve the performance. I just had a report from a faculty member who said that Webwork was acting up again.
For the old server, we threw a crap ton of memory and processors on it and still encountered the issue so it's clearly not an underpowered issue. What types of things should I look for on the server that might cause the pages to hang when loading?
I know this is a pretty broad question, but any help is most appreciated.
Next seach for the lines
MaxClients 150 MaxRequestsPerChild 0
Which occur under
<IfModule mpm_prefork_module> and replace them by
# For WeBWorK a rough rule of thumb is 20 MaxClients per 1 GB of memory MaxClients 20 MaxRequestsPerChild 100
where you should set
MaxClients depending on the amount of memory your server has using the above rule of thumb.
NOTE: If you are using Apache version 2.4 or higher (available in Ubuntu 3.10 and later) you should use
MaxRequestWorkers instead of
MaxConnectionsPerChild instead of
MaxRequestsPerChild. Furthermore, in Apache 2.4 these directives are stored in the file