?
Solved

Request queue for FastCGI

Posted on 2014-12-10
4
Medium Priority
?
414 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 1500 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

801 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