Solved

Request queue for FastCGI

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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…
Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 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