node-java icon indicating copy to clipboard operation
node-java copied to clipboard

Restarting the JVM

Open danperetz opened this issue 11 years ago • 2 comments

Hi, Is there a possability to add an ability to restart the JVM or create a jar hot replacement? The reason I'm asking is because I'm working with node-red and if I'm replacing a jar I need to restart the proccess - something that I can't do in a production environment.

Thanks, Dan

danperetz avatar Feb 12 '15 10:02 danperetz

Would like to know this as well

miketamis avatar Nov 18 '18 21:11 miketamis

According to Java specification and, AFAIK both Oracle and OpenJDK implementations, there's no way to fully unload the JVM from a process. Since one process can have only one JVM loaded, this implicates that JVM restart without restarting the whole process is impossible.

jzakrzewski avatar Nov 19 '18 06:11 jzakrzewski