I've this old spring MVC project with Jsps, packaged as war and deployed in jboss server. Moved it to spring boot with embedded tomcat. Everything works fine. But if I package it into executable war and run it as standalone , I see some performance lag of about 2000 ms. Weird thing it happens for every first request I send after some time (say request sent after 2 mins gap) The consecutive requests go through fine.
I also observed CPU usage going high during that time consuming request, which doesn't happen when I don't pack it as war.
I'm struck up on this for a couple of days and nearing the dead line. Any suggestions or leads will be welcome.
p.s request in the sense a web request where jsp is returned at the end.