« Previous Next »

Thread: Problems with FastCGI timeout on IIS 6.0

Last post 04-30-2009 4:37 AM by lettie_dude. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 04-29-2009, 5:31 AM

    Problems with FastCGI timeout on IIS 6.0

    Hi

    This problem has been dogging me for some months now. So wondered if anyone else had come across it or had a solution to it.

    Set up is as follows:

    Windows Server 2003
    IIS 6.0
    PHP 5.2.6

    PHP settings:
    upload_max_filesize=21m
    post_max_size=21m

    FastCgi Settings:

    QueueLength=1000
    MaxInstances=10
    ActivityTimeout=600
    InstanceTimeout=600
    InstanceMaxRequests=10000
    EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000

    I have a file upload system on a site for a client hosted as above. The problem I was having before increasing the timeout settings above from 300 to 600. Was any file over around 11mb was causing a FastCGI error (0x800703e3) error number 995 timeout error. Files smaller than this seemed to upload fine.

    Once I increased the settings above everything worked as above except now after about 6-7 minutes I get an http server error 500 on files bigger than 11mb. As you can see the timeouts are set to 10 minutes so this should be ok. The file size variables in php are set to 21m and the largest file I have tried so far is 18.8m so should be no problem with file size.

    The other problem is they are hosting on there own server and I have been liasing with their IT guy to try and resolve this his findings were as follows:

    With the testing I did I proved the following It was the CGI timings causing large files to time out on the site giving us a error ( files over 10M ) The main problem I was seeing is a big difference between out side traffic and inside traffic Out side yourself or a customer always timed out 10M or so with an error 

    Inside timed out or froze with files 6M 8M etc usually without an error.  So this indicates a timeout with AT&T gateway outwards we use which is very difficult to prove at present. My next step is to try and get simon to route directly to the box over the LAN which is causing concern as the server is sat on a DMZ.

     

    Can anyone point me in the right direction on how to resolve this?

     

    Many thanks 

     

  • 04-29-2009, 12:32 PM In reply to

    Re: Problems with FastCGI timeout on IIS 6.0

    What about running this test on the server itself?

    Does it error then?

    Are you connecting to other servers for the content? 

    I think you have some sort of networking/firewall issue here. 

    Maybe use a packet sniffer to work out where/what is the last thing to be send out/recieved to determine if it is the client or server primary issue.

  • 04-30-2009, 4:37 AM In reply to

    Re: Problems with FastCGI timeout on IIS 6.0

     Hi

     I have hopefully resolved the issue. There is a further variable in the php.ini that needs increasing to deal with the time it takes to upload large files. If anyone else has this issue increase the  max_input_time variable as appropriate to allow for this I think by default it is set at 300 seconds.

Page 1 of 1 (3 items)
Microsoft Communities