subrequest cycle cause cpu 100%

xinghua_hi nginx-forum at nginx.us
Tue Feb 3 03:38:24 UTC 2015


hello, 

        I use error_page = /500.html to show myself 500 page, and for some
reason, I need ssi include in 500.html, for example:
       
        500.html
  
         <!--# include virtual="/fastcgi/global" -->
         <!--# include virtual="/fastcgi/cap" -->
         <!--# include virtual="/fastcgi/header" -->

        if fastcgi upstream return 500 response code, it will cause
subrequest cycle,  a set number of error logs such as "subrequests cycle
while processing "xxx" while sending response to client". 

        but if I add "wait" parameter in ssi

        500.html
  
         <!--# include virtual="/fastcgi/global" wait="yes" -->
         <!--# include virtual="/fastcgi/cap" -->
         <!--# include virtual="/fastcgi/header" -->

        I find endless error log such as "subrequest cycle" in error_log,
and cpu go up to 100%

        I wonder why wait parameter cause so strange case, thanks


best regards

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,256410,256410#msg-256410



More information about the nginx mailing list