I have a tomcatservlet 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?
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).
When it comes to destroying a civilization, gas chambers cannot hold a candle to echo chambers.