I have deployed stand alone jar on Linux server in production about 6 month ago. Its starting in about few seconds. But when I deploy a newly builded jar on same server. It takes around 30-45 minutes for getting started.
Due to this I am not able to change any thing on existing setup.
I tried to start a Hello World spring boot app on same server. Its also taking 2 minutes for getting started.
Hello World App Logs:
[support@kbla180303 ~]$ java -jar /app/kpam/kpam-test.jar
Inside Main
  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.5.4.RELEASE)
2019-05-09 13:26:42.606  INFO 1656 --- [           main] com.kmbl.kpam.KpamTest1Application       : Starting KpamTest1Application v0.0.1-SNAPSHOT on kbla180303 with PID 1656 (/app/kpam/kpam-test.jar started by support in /home/support)
2019-05-09 13:26:43.110  INFO 1656 --- [           main] com.kmbl.kpam.KpamTest1Application       : No active profile set, falling back to default profiles: default
2019-05-09 13:26:50.058  INFO 1656 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@531d72ca: startup date [Thu May 09 13:26:50 IST 2019]; root of context hierarchy
2019-05-09 13:27:52.515  INFO 1656 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2019-05-09 13:27:53.905  INFO 1656 --- [           main] com.kmbl.kpam.KpamTest1Application       : Started KpamTest1Application in 122.87 seconds (JVM running for 164.207)
Exit Main
2019-05-09 13:27:53.907  INFO 1656 --- [       Thread-2] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@531d72ca: startup date [Thu May 09 13:26:50 IST 2019]; root of context hierarchy
2019-05-09 13:27:53.910  INFO 1656 --- [       Thread-2] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
 
    