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?
Asked
Active
Viewed 539 times
2

Naresh Muthyala
- 135
- 5
-
Please let me know the browser you are using and operating system. If it is windows 7 then open cmd as administrator and run this command **netsh interface tcp set global autotuning=disabled** – maddy23285 Dec 30 '17 at 09:16
-
It might be because of multiple issues. Are you using spring framework or Any other DI? – Kuldeep Yadav Dec 30 '17 at 15:56
-
No, I'm not using Spring framework or DI. I'm using Java API and JDBC. – Naresh Muthyala Dec 31 '17 at 05:01