0

My REST service application is very slow the first time it is solicited. Apparently the problem is linked with the loading of the java classes and the initialization.

Is there a way to force the application to initialize itself without waiting to the first call ?

Thank you for your time. Julien.

julienasefth
  • 115
  • 2
  • 9
  • How is your REST services initalised? I would have thought the web container initalised and wired up everything before hand. I would suggest you profile your application. – Minh Kieu May 18 '17 at 16:30
  • My web service is a Spring framework based (Spring security, data, ....), ibean injected into my API, on a tomcat web container. – julienasefth May 19 '17 at 09:46
  • Then it should have started and wired everything when application first started up. You need to profile what took time when for the first request. – Minh Kieu May 19 '17 at 18:36
  • Does this answer your question? [Preloading java classes/libraries at jar startup?](https://stackoverflow.com/questions/677739/preloading-java-classes-libraries-at-jar-startup) – Dave Jarvis Aug 31 '20 at 18:17

0 Answers0