Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Upgrading JVM while Application Server Running

68a3436e-f11b-4ddd-af2a-d0ea7b6d91a1Sep 27 2017 — edited Sep 27 2017

For our application server I want to know if I can upgrade Java without restarting the application server.


I am talking about minor upgrades of Java 8 (8u121 to 8u140)
These are Debian servers using the Install Oracle Java 8 In Ubuntu Or Linux Mint Via PPA Repository [JDK8] ~ Web Upd8: Ubuntu / Linux blog   method.

We are also using the JDK and we are using the unlimited certificates security package too.

Caution would dictate that I need to restart the application server but maybe not?

Comments

handat

It depends on the application server and what is deployed onto them, ie how classloaders are being used to load components. If you have very simple applications like JSPs which are compiled and cached already, replacing the JDK underneath wouldn't be such a big problem, but if you have more complex components like EJBs or plugins that rely on dynamically loading components, then you will get into quite a bit of problems when components need to be loaded or reloaded. It gets worst if JNI is involved as well.

Short answer, restart app server after upgrading JDK to be safe. If you want to be on the edge and live dangerously, try it without restarting.

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 25 2017
Added on Sep 27 2017
1 comment
744 views