Solved

Request queue for FastCGI

Posted on 2014-12-10
4
359 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

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…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

707 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