当我启动一个java程序时,我可以看到在任务管理器中运行了两个jvm实例。我的平台是Windows,IDE是IDEA

时间:2015-11-27 12:48:38

标签: java jvm

enter image description here

当程序退出时,仍然有一个jvm实例,如下所示: enter image description here

第二个jvm实例的功能是什么?

1 个答案:

答案 0 :(得分:0)

使用" jps":http://docs.oracle.com/javase/7/docs/technotes/tools/share/jps.html

> jps -l
5334 scala.tools.nsc.MainGenericRunner
5853 sun.tools.jps.Jps
5838 /home/reza/.i/tools/sbt-0.13.9/bin/sbt-launch.jar

也许这些问题对您有所帮助: How to execute "jps'' command on Windows 8?How to set java_home on Windows 7?