Solved

Request queue for FastCGI

Posted on 2014-12-10
4
246 Views
Last Modified: 2014-12-28
We are using IIS 8 on Windows Server 2012.
The websites are using PHP in FastCGI mode and we use MaxInstances to control the number of php-cgi.exe instances that will be loaded at the same time to serve concurrent requests.

But is there a way to see what the current number of requests are in the request queue waiting for an instance to become available? We don't want to set MaxInstances to 0 since we have a DB backend which we don't want to overload. But we would like to know if our current MaxInstances value is OK or if there is a very long queue at any given moment.
0
Comment
Question by:primecrew
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:Greg Hejl
ID: 40492729
http://stackoverflow.com/questions/4614681/problem-the-fastcgi-pool-queue-is-full

here's a nice long post on optimizing for a drupal site using fastcgi:

https://groups.drupal.org/node/60283

FastCGI user forum:

http://forums.iis.net/t/1214675.aspx?Intalling+a+php+site+in+IIS+performance+

as for connections to your DB - if you allocate enough memory to your SQL Server you should be able to fulfill the requirements for the web server.

are you using MSSql or MySQL?
0
 

Author Comment

by:primecrew
ID: 40493321
Thank you Greg Hejl for your reply

I had actually reviewed the first two links that you mention in your reply before writing this question here. And yes, if we get the response that there are too many requests in the queue we of course know that we should do something about it. But it would be nice to know what the current status is when there are requests in the queue but still not too many. If we have eg. a queue length of 10 000 it would be very nice to know if the queue length usually is 200 or 9 200...
0
 
LVL 13

Accepted Solution

by:
Greg Hejl earned 500 total points
ID: 40494598
Ohh - sry - you are looking for worker processes current requests...

Here's a link from Stack overflow

http://stackoverflow.com/questions/15621509/how-do-i-see-currently-executing-web-request-on-iis-8

These counters are also exposed in Perf Monitor which can be queried with WMI

http://technet.microsoft.com/en-us/library/cc732518%28v=ws.10%29.aspx

Since request queues are dealt with so fast it is somewhat difficult to see realtime information...it's only a snapshot in time that you are able to capture.

http://blogs.iis.net/mailant/archive/2008/01/10/new-worker-process-performance-counters-in-iis7.aspx
0
 

Author Closing Comment

by:primecrew
ID: 40520268
Thank you Greg.

We know about the IIS worker process requests but I wasn't sure if it also displayed requests that are queued for php-cgi processing or if they only show the requests that are actually being processed at any given time. But we will monitor it more closely now. Thanks again.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Suggested Solutions

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now