This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes how to find http response time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to find http response time " Watch "how to find http response time " New topic
Author

how to find http response time

David Menfields
Greenhorn

Joined: Jun 28, 2005
Posts: 7
Team,

I have the below problem and need your suggesstion.

Problem :

My application is deployed in Websphere with 3 JVM instance( 3 ports).
I need to monitor the application in all 3 ports and if one goes down, i need to get alert.Goes down means, if the port is not accessible in any port or if the HTTP request (clickng hyperlink/button click) takes more time to reach other page via any port.


a) for checking the the application availabilty , i can check the http response status code 200.
b) but if the request takes longer to get response, it is a problem.
so, i need to know the response time for the http request made.
Based on this, if it is greater than certain seconds, i can set alerts.

How to get this response time for any http request we make ? any api in java or any other ideas . Kindly share.

Thanks
David.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
If this was my problem I would use HttpClient to create a Java application that could poll the servers and track the response time.
HttpClient is part of the Apache Commons open source project.

Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to find http response time
 
Similar Threads
Http port
http request sending garbage response when request is sent on SSL port.
JAXB and TCP/IP
Tomcat configuration with IBM HTTP Server
IBM HttpServer and websphere Appserver