• Post Reply Bookmark Topic Watch Topic
  • New Topic

Response time  RSS feed

 
Marcelo Heitor
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello folks,

How to calculate the time (miliseconds) of response of a request (servlet)?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could always embed calls to System.currentTimeMillis in your doGet /doPost methods and log the results. For a more flexible approach to finding out what is really consuming the time in your servlet response, look at the JAmon open source package.
Specifically the servlet monitor configuration
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!