itnetsec

FastCGI timeout issues due to Gallery2 intensive tasks

Nov 29th, 2011
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #Written by: Michael Wood
  2. #Date 11-29-2011
  3.  
  4. 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:
  5.  
  6. #Gallery2
  7. BusyTimeout 10800
  8. ProcessLifeTime 10800
  9. IPCConnectTimeout 20
  10. IPCCommTimeout 10800
  11. MaxRequestsPerProcess -1
  12. #Gallery2
  13.  
  14. This is a configuration example for keeping the script alive for 10800 seconds, which is equal to 3 hours.
  15.  
  16. 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