Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Monitor request/response time  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I am looking for some configuration at the web server level that will capture the request/response time for each request along with the authenticated id.

Is this something I need to include within my app or is it possible to get this from the web server logs.


Thanks.
 
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to server side response time then server logging is necessary. For example write a log entering and exiting the API.

However, client tools such as JMeter can detect the response time but again that's the client side.
 
Sheriff
Posts: 21327
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just create a filter that does it for you. Basically, in doFilter:
Then make sure this is one of the first filters in your filter chain (you'll have to use web.xml to get any ordering on filters), and you're good to go.
 
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
free 1 hour java lesson
https://coderanch.com/t/695988/free-hour-java-lesson
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!