Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simultaneous Requests

Status
Not open for further replies.

qsac

Programmer
Jan 22, 2002
242
US
I have set up monitoring to record the number of simultaneous Requests my site has. It gets to 9, which is the limit i set in the CF Administrator, quite often.

Is there any way i can see what the 9 Requests actually are? I am trying to track down why my requests are always maxing out. Is it code? Slow connections, etc?

Thanks, Q
 
Build a simple counter... You could log it like this..

Code:
<cfsavecontent variable="logoutput">
  #Now()#  - #cgi.script_name#<br><br>

  <cfdump var="#form#"><br><br>

  [red]Time taken: #(GetTickCount() - GTX)#[/red]<br><Br><br><br>
</cfsavecontent>
<cffile action="write" file="#expandpath#("monitor.html")#" output="#logoutput#">

I'm sure you see the red line... The idea is that you call this from onrequestend.cfm. (If you use application.cfm, create onrequestend in the same folder.)

If you already have the file then just put this code at the end...

In application.cfm, you'll need to add the line

Code:
<cfset GTX = gettickcount()>

The number returned in the red line will be in milliseconds... so for the second value, divide by 1000.

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top