Previous Next

Thread: FastCGI process exceeded configured activity timeout

Last post 06-19-2008 1:37 AM by gutch. 8 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (9 items)

Sort Posts:

  • 02-16-2007, 8:43 PM

    • jchertudi
    • Top 500 Contributor
    • Joined on 11-02-2006, 1:48 AM
    • Portland, OR
    • Posts 14
    • jchertudi

    FastCGI process exceeded configured activity timeout

    I am trying to find out where this value is configured!

    Win2003 x64, fully patched.
    FastCGI v2, with special bits via Rick James to make it work with UNC paths
     

    I can't get long running scripts to go more than 30 seconds. We have a few data conversion pages that will run for 1-3 minutes using slow cgi (point directly to the exe). It doesn't seem to be in the fcgiext.ini file, I set it to 600 seconds there and restarted IIS. After 30 seconds the error I get is

    FastCGI Handler Extension


    Error 0x80070102 occurred processing request.

    The FastCGI process exceeded configured activity timeout
  • 02-19-2007, 1:11 PM In reply to

    • rickjames
    • Top 25 Contributor
    • Joined on 10-31-2006, 6:43 PM
    • Posts 193
    • rickjames

    Re: FastCGI process exceeded configured activity timeout

    Hi jchertudi,

    I made the following change to php.ini:

    max_execution_time = 90

    Then the following changes to fcgiext.ini:

    RequestTimeout=90
    ActivityTimeout=60

    Then recycled the AppPool in question (currently config change notifications are not supported)

    and then requested a page that calls sleep( 59 )


    Everything worked as expected.

    Cheerz,

    Rick.

  • 11-05-2007, 6:04 PM In reply to

    • hreldelmyer
    • Not Ranked
    • Joined on 11-02-2007, 12:22 PM
    • Posts 5
    • hreldelmyer

    Re: FastCGI process exceeded configured activity timeout

     How does one configure the activity timeout when using Perl? Is there also a php.ini file when doing FastCGI with Perl?

    Thanks for any help
    Horace
  • 11-08-2007, 6:47 AM In reply to

    • AceNZ
    • Not Ranked
    • Joined on 11-08-2007, 11:40 AM
    • Posts 3
    • AceNZ

    Re: FastCGI process exceeded configured activity timeout

    I've run into a similar problem.  I set ActivityTimeout=900 in fcgiext.ini, then restarted IIS, and I'm still getting the activity timeout:

    Error Number: 258 (0x80070102).

    I'm running the 32-bit "intermediate release": 7.0.6001.16606 (LH_SRV_IIS(wadeh).070322-1011)

    I'm using PHP 5.2.4-nts.  I've double-checked the timeout settings in php.ini, and they look fine.  Here's my current fcgiext.ini:

    [Types]
    php=PHP

    [PHP]
    ExePath=C:\PHP\php-cgi.exe
    InstanceMaxRequests=10000
    EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000
    RequestTimeout=500
    ActivityTimeout=900

    Any suggestions on how to fix this would be appreciated.

     

  • 11-08-2007, 7:34 PM In reply to

    • rickjames
    • Top 25 Contributor
    • Joined on 10-31-2006, 6:43 PM
    • Posts 193
    • rickjames

    Re: FastCGI process exceeded configured activity timeout

    Hi AceNZ,

    ActivityTimeout controls home long FastCGI will wait for PHP before giving up. Is the PHP script taking longer than 900 seconds to run?

    Thanks,

    Rick.

  • 11-08-2007, 8:35 PM In reply to

    • AceNZ
    • Not Ranked
    • Joined on 11-08-2007, 11:40 AM
    • Posts 3
    • AceNZ

    Re: FastCGI process exceeded configured activity timeout

    Sorry I wasn't more clear.

    As with the original poster, FastCGI times out after 30 seconds with an Activity Timeout error, regardless of how high I set the ActivityTimeout parameter.

     

     

  • 11-08-2007, 9:19 PM In reply to

    • rickjames
    • Top 25 Contributor
    • Joined on 10-31-2006, 6:43 PM
    • Posts 193
    • rickjames

    Re: FastCGI process exceeded configured activity timeout

    Hi AceNZ,

    I wonder if the correct config is getting used.. If you deliberately mess up your system32\inetsrv\fcgiext.ini config file do you see an error?

    If not and you're using x64, there's an issue where the wrong .ini file is sometimes read. Could you try the latest (http://www.iis.net/default.aspx?tabid=1000057) and see if that solves the problem?

    Thanks,

    Rick.

  • 11-08-2007, 11:14 PM In reply to

    • AceNZ
    • Not Ranked
    • Joined on 11-08-2007, 11:40 AM
    • Posts 3
    • AceNZ

    Re: FastCGI process exceeded configured activity timeout

    I messed up the fcgiext.ini file and restarted the app pool.  No errors were displayed in IE when I went to a PHP page.

    However, I'm running 32-bit Win 2K3, not x64.  In addition, I'm already running the "Intermediate Release" on the page that you mentioned, which I believe is the latest release.

    EDIT: problem solved.  Although the DLL and the INI were located in the inetsrv directory, IIS had been configured to load the DLL from c:\php, due to a permission problem of some kind.  The files weren't removed from inetsrv, so when the config file there was changed, it had no effect, since it was getting loaded from the same folder as the DLL.  Once the files in inetsrv were removed and the INI in c:\php updated, everything seems to be working fine.

    Thanks for the lead -- it helped me start looking in the right direction!

  • 06-19-2008, 1:37 AM In reply to

    • gutch
    • Not Ranked
    • Joined on 06-19-2008, 1:29 AM
    • Posts 1
    • gutch

    Re: FastCGI process exceeded configured activity timeout

    I had similar problems with timeouts on PHP, but I am using IIS 7.0 which doesn't have a fcgiext.ini. It turns out that the FastCGI configuration is now in main IIS XML configuration, modifying fcgiext.ini would make no difference.

    Here is how to set the configuration with IIS 7.0:

    %windir%\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi /[fullPath='C:\php\php-cgi.exe'].activityTimeout:600

    You need to change the 'C:\php\php-cgi.exe' to the actual location PHP that you registered with IIS.

    If you want to make double-check that the configuration worked properly, you can check it like this:

    %windir%\system32\inetsrv\appcmd list config -section:system.webServer/fastCgi

    You should see output similar to the following:

    <system.webServer>
      <fastCgi>
        <application fullPath="C:\php\php-cgi.exe" activityTimeout="600">
          <environmentVariables>
          </environmentVariables>
        </application>
      </fastCgi>
    </system.webServer>

Page 1 of 1 (9 items)
Page view counter