23

How do I restart the whole JVM in our Windows Server which have JRE, without restarting the OS?

Is there something like:

java -restart

Or this is not possible. The idea is that I added tool.jar in /lib/ext folder of the JRE and that I need to restart the JVM.

4
  • 6
    There is nothing like a JVM running in an OS. Instead several independent instances do run. Just make sure to stop all running Java applications (java*.exe) and restart them if necessary.
    – home
    Jan 17, 2013 at 12:07
  • I think your issue like this stackoverflow.com/questions/259343/any-way-to-reboot-the-jvm
    – Kong
    Jan 17, 2013 at 12:09
  • Just got into case when I run java profiler (Visual VM 1.3.8) and I see my Java app running having PID 3232. When I go to "Windows Task Manager"->"Services"->sort by PID there is no PID 3232. Then I go to processes and try to kill "Javaw" and it helped to remove that process 3232. Apr 7, 2015 at 17:52

1 Answer 1

25

The Java process runs on demand as and when you want to run it. It's not a daemon. You need to stop the Java process manually (kill it) if it doesn't end gracefully.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.