Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Written by: Michael Wood
- #Date 11-29-2011
- Gallery2 can be a resource hog, especially if you just uploaded a lot of pictures. Gallery2 creates thumbnails and caches all this data. To make better use of your resources modify your /etc/httpd/conf/httpd.conf file and add the following lines:
- #Gallery2
- BusyTimeout 10800
- ProcessLifeTime 10800
- IPCConnectTimeout 20
- IPCCommTimeout 10800
- MaxRequestsPerProcess -1
- #Gallery2
- This is a configuration example for keeping the script alive for 10800 seconds, which is equal to 3 hours.
- BusyTimeout and IPCCommTimeout are both going to determine the execution duration of the task. The one with the lower value will happen first. BusyTimeout will terminate the script if a single request takes longer than busy timeout.
Advertisement
Add Comment
Please, Sign In to add comment