• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Monitoring ssl handshake time in Tomcat  RSS feed

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a tomcat servlet being remotely called. Stats on the time spent inside the servlet show it is reliably taking less than 300ms to complete.
The user calling the servlet (via wget) is complaining that the call is intermittently taking up to 10 seconds to complete.

I need a log of the entire process... initial request received, time spent in ssl handshake then time servlet actually runs. I've got the servlet execution time, how can I configure logging to get me the other data?

 
Bartender
Posts: 20739
124
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Logging would slow things down. I recommend that you run a profiler and see if you cannot narrow down to SSL functions.

However, CPU time is probably only a small part of the delay. Network latencies are the biggest concern, followed by sub-optimal crypto negotiation (where the client and server attempt several different algorithms until they can agree on one).
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!