Solved

Request queue for FastCGI

Posted on 2014-12-10
4
271 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

912 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

17 Experts available now in Live!

Get 1:1 Help Now