简体   繁体   English

如何在Windows下重启JVM

[英]How to reboot the JVM under windows

How do I restart the whole JVM in our Windows Server which have JRE, without restarting the OS? 如何重新启动具有JRE的Windows Server中整个JVM ,而无需重新启动操作系统?

Is there something like: 是否有类似的东西:

java -restart 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. 我的想法是我在JRE的/lib/ext文件夹中添加了tool.jar ,我需要重新启动JVM。

The Java process runs on demand as and when you want to run it. 当您想要运行它时, Java进程会按需运行。 It's not a daemon. 它不是守护进程。 You need to stop the Java process manually (kill it) if it doesn't end gracefully. 如果Java流程没有正常结束,您需要手动停止Java进程(终止它)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM