Skip to main content
Can I use fme to ping a website and measure the response time?

 

I want to check the response time / speed of a website and log the results to measure performance.
Hi

 

 

The ping protocol is very frequently disabled because of potential security risks (example), especially on outward-facing servers, so you might have to find an alternative.

 

 

You could use the HTTPCaller to request a known page on the web server, e.g. http://www.mydomain.com/index.html. Use a TimeStamper with the format "^s" before and after the HTTPCaller, this will return the number of seconds since 01.01.1970. Subtracting the first value from the last will give you the number of seconds used by the HTTPCaller, and therefore the time used to fetch the page from your web server.

 

 

David
@david_r's response is a good one. The real question is, what do you want to measure?

 

 

  • - That there is a live machine sitting at a given web-address? Then Ping (assuming it's not blocked).
  • - That that machine is routeable (accessable) from your server - TraceRoute.
  • - That that machine is serving web-pages - use HTTPCaller.
  • - That the machine is serving web-pages in an acceptable timeframe - Timestamper etc.

 

Just using ping will only tell you if a machine is online, it won't tell you how it's performing its web-serving functions.

Reply