I am wondering what happens with running Java processes if I update the JDK on a Debian machine. The answer is probably the same for other systems as well, I just wanted to be more explicit about my environment.
With update I mean that the newer JDK will be installed next to the existing one, and the symlink /usr/lib/jvm/default-java
will be changed to the folder of the new JDK.
Folder structure after the update:
/usr/lib/jvm/default-java
-> /usr/lib/jvm/jdk1.7.0_79
/usr/lib/jvm/jdk1.7.0_21 # old version
/usr/lib/jvm/jdk1.7.0_79 # new version
Will the running processes be affected by this change?
The running processes are running off of the real JVM executable, not off of the symbolic link.
So, they will continue to run, but they will not switch over to the new JVM version you've just installed until you restart them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With