You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2020/09/22 09:36:57 UTC

[GitHub] [incubator-pagespeed-mod] oschaaf commented on issue #2041: mod_pagespeed crashes from time to time

oschaaf commented on issue #2041:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2041#issuecomment-696613828


   TLDR; Based on a hunch, one thing you could try, is configuring `RateLimitBackgroundFetches` to limit the amount of in-flight work. Or switch to use `LoadFromFile` to avoid lots of in-flight http(s) fetches during shutdown altogether.
   
   I have a hunch that this occurs during shutdown. I remember looking into something similar a long time ago, and what happens during shutdown is that some long(ish) running tasks may not return and/or respond to being cancelled in a timely manner. At that point, the module can either just force shut down, or wait longer. Waiting longer is no good, as we're mid-shutdown and that obviously should be bounded in time. So a force shutdown will be initiated, which may tear down live structures from underneath the tasks I mentioned above. Obviously, these tasks may not take that well. In this case it looks lik it the memcached implementation, which relies on apr-memcached, isn't responding (fast enough), but I'm not confident. 
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org