« Previous Next »

Thread: FastCGI vs ISAPI IIS6?

Last post 10-25-2007 12:25 PM by rickjames. 7 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (8 items)

Sort Posts:

  • 10-14-2007, 5:27 PM

    • CFGuru
    • Not Ranked
    • Joined on 10-14-2007, 9:23 PM
    • Posts 1

    FastCGI vs ISAPI IIS6?

     I'm running an  Invision Power Board forum under PHP 5.4.2 in ISAPI mode on an W23K server.  I am having no problems whatsoever with ISAPI.

     However, one can always use better performance.  My question is, will FastCGI improve performance at all in my configuration or would it actually make performance worse?

     

    I do have eaccelerator installed.
     

  • 10-15-2007, 2:23 AM In reply to

    Re: FastCGI vs ISAPI IIS6?

    It wouldn't make performance worse, but would bring PHP stability to the table.
  • 10-16-2007, 1:01 AM In reply to

    • ndamico
    • Not Ranked
    • Joined on 10-16-2007, 4:53 AM
    • Posts 3

    Re: FastCGI vs ISAPI IIS6?

    what do you mean by "php reliability"?

     php has been very good for us.  is fastcgi faster?

  • 10-16-2007, 11:50 AM In reply to

    Re: FastCGI vs ISAPI IIS6?

    Hi ndamico,

    ISAPI is faster than FastCGI. FastCGI is faster than CGI (20x for /helloworld.php on Windows).

    CGI and FastCGI have the same reliability when running PHP. For many sites, running PHP as an ISAPI is unreliable (e.g. some extensions aren't thread safe).

    If you are experiencing excellent reliability with ISAPI then stick with it. (try "logparser "SELECT sc-status,COUNT(*) FROM u_ex071010.log GROUP BY sc-status" to get an idea of your current reliability, 500=bad, 200=good)

    Cheerz,

    Rick.

  • 10-16-2007, 2:01 PM In reply to

    • ndamico
    • Not Ranked
    • Joined on 10-16-2007, 4:53 AM
    • Posts 3

    Re: FastCGI vs ISAPI IIS6?

    Thank you Rick for the answer. that's what i've been trying to find. i've never had a problem with isapi, however i had read a thread on vbulletin.com talking about how fast fastcgi was which lead me to believe it would surpass isapi.

     that's the answer i've been looking for. are you reasonably confident in that answer?  i'm only asking because i have zero experience with fastcgi.

     

    thanks again

     

    nick

  • 10-16-2007, 2:05 PM In reply to

    Re: FastCGI vs ISAPI IIS6?

    Hi nick,

    I'm confident in the performance statements. You can verify them for yourself easily:

    1) create /helloworld.php

    2) aim wcat at it for 30 seconds

    3) record request/sec

    repeat steps 2 and 3 for cgi, fastcgi and isapi

    Cheerz,

    Rick.

  • 10-25-2007, 9:30 AM In reply to

    Re: FastCGI vs ISAPI IIS6?

    Hi Nick,

    You might be interested in an article I've just written on my site called performance tuning PHP 5.2 on IIS. As I've just posted in another thread on this forum, another consideration when performance tuning your site is your database server.
     

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 10-25-2007, 12:25 PM In reply to

    Re: FastCGI vs ISAPI IIS6?

    Life is full of surprises. I'm always claiming ISAPI > FastCGI > CGI. Which is true for helloworld.php and I'm guessing most pages that exceed 100 requests/sec. Someone showed me that their database-driven php application ran way faster as a FastCGI than an ISAPI. I've got no idea why this is. Which just goes to show: performance test your application if you're serious about performance, cause sometimes mysterious factors can change things a lot.

    (the other thing I learnt about db php app perf is: if you're not using persistent database connections, you can run out of ephemerel ports quickly, leading to database connections errors, leading to http 500s..)

Page 1 of 1 (8 items)
Microsoft Communities