How do I detect web latency?

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



How do I detect web latency?Expand / Collapse
Author
Message
Posted 8/13/2007 2:44:54 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/13/2007 3:56:03 PM
Posts: 1, Visits: 6
I have users claiming that various websites are slow to load at intermitent times.  I have an antivirus gateway, load balancer, and content filtering (Websense) that filter traffic.    I realize that it could be the AVGateway, load balancer or content filtering that is causing the slowdown but I need to prove it.  Has anyone used WUG to log and graph latency for certain websites? 

- Thx!

Post #35762
Posted 8/13/2007 3:54:47 PM
Time Traveler

Time TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime Traveler

Group: Ipswitch Employees
Last Login: Today @ 9:44:17 AM
Posts: 423, Visits: 872
It may be possible to do what you suggest, but this may be a quicker way to tell when the site is 'slow' and give a rough idea of how slow...

Use the HTTP Content (copy and modify, change the Name to include the Timeout) to check your site. Note the Timeout setting (5 seconds by default) as you will want to modify that, on the other monitors you create. Once you have this working, copy it again and change the timeout to be smaller or larger (1, 2 and 10 seconds, maybe). Assign these multiple HTTP Content monitors to the device.

WUG will use try each monitor and if one does not respond by the end of the timeout, that monitor will go down. This will give you a idea of how long it takes the site to respond, based upon the timeout you set in each of your customized monitors. The down monitor name(s) will be displayed in the bottom gray bar, when you hover over the device and the the Active Monitor State and State Change Timeline reports will show which one(s) went down and when...

To get what you want, a graph of the response time, is more complex, requiring a customized Performance monitor, that may also require using the Active Script monitor type (can you code in VB or Java?).

If you use the only a single HTTP Content monitor and that shows the device is down, then you know the response time is more than the timeout (5 seconds). Crude, but if you adjust the timeout, you can set it to what you want for the ideal response time and WUG will tell you when it is not meeting that.

Daniel Donnelly

Post #35765
Posted 8/6/2008 8:33:32 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/7/2008 5:36:33 AM
Posts: 4, Visits: 18
Well, I used the following active script as a performance monitor to graph the latency to a webpage. It doesn't grab images though, only the HTML. However it should give you some idea how quickly the page is being rendered (if it is dynamic), or how quickly the websense server is responding.

http://classicasp.aspfaq.com/general/how-do-i-read-the-contents-of-a-remote-web-page.html

I found "MSXML2.XMLHTTP" and "Microsoft.XMLHTTP" a little troublesome as sites not in "trusted" or "intranet" zones are automatically denied (Access is Denied). The "MSXML2.ServerXMLHTTP" doesn't appear to have this problem.

http://msdn.microsoft.com/en-us/library/ms766431(VS.85).aspx


' This is the URL which this monitor will try and get
url="http://www.google.com"

'context.logmessage context.getproperty("hostname")

'Timestamp before getting the page
startTime = Timer()

on error resume next
'Set objHTTP = CreateObject("MSXML2.XMLHTTP")
'Set objHTTP = CreateObject("Microsoft.XMLHTTP")
Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP")


objHTTP.Open "GET", url, FALSE
objHTTP.Send

if err.number then
context.logmessage "Failed to get website - " & err.description
else
context.logmessage objHTTP.ResponseText

'Timestamp after getting the page
endTime = Timer()

' Work out how long it took
Duration = Int((endTime-startTime)*1000)

context.logmessage "Script took " & Duration & " ms"
end if

Context.SetValue Duration
Post #45978
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Dave, Mark Singh, kevin r gillis, Jason Benton, Brandon Felger, Ben Henderson, Tripp Allen, Will Sansbury, Hush, FTPplanet.com, Hugh Garber, George Dailey, WUP-PM, mmulryan@ipswitch.com, mswimm

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 4:22pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.016. 7 queries. Compression Enabled.