Menu

#244 prune-working-directories times out when there are lots of files

workingwiki
open
nobody
None
5
2013-05-07
2013-01-08
Lee Worden
No

the 'prune-working-directories' operation gets run regularly during WW page views. It's generally a null operation, because it doesn't do anything unless it's been a day since it was last run. When it does run, it does some expensive operations to find out which preview sessions are old enough to delete. In fact, on our site, it currently seems to take so long that it exceeds the PHP max execution time of 300 seconds and gets the process killed. This probably means the user doesn't get their page, and it also means the prune operation doesn't finish, which might mean that some old directories won't get deleted, and they might accumulate until they fill the disk. It would be good to separate out this operation, so it doesn't run during regular requests, and only runs once in a while, maybe in a cron job, in such a way that it doesn't have a timeout.

Discussion

  • Lee Worden

    Lee Worden - 2013-01-08

    I'm going to try disabling this pruning, to see if it improves the server's responses.

     
  • Lee Worden

    Lee Worden - 2013-01-08

    I just experiences a 5m0s wait for an image, after disabling the pruning, which strongly suggests that pruning is not the cause of the 5 minute delays, btw.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.