Tomcat 8 first request processing is slow for first request

572 Views Asked by At

I'm working on a high performance java application. I deployed in Tomcat 8. First request processing is slow i.e. it is taking 800 milli seconds to process. After that every request is processing very fast within 50 milli seconds. I think for initial request class loading takes time. My requirement is performance should be high even for the first request.
My questions are:
1) How to handle this scenario?
2) Is passing a sample request after server restart is the idle way to do it?

0

There are 0 best solutions below