Is there one JVM per Java application?

前端 未结 8 1648
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 18:52

Is the same JVM used by all Java applications running or, does \'one JVM per Java application\' apply? (say the applications are IntelliJ IDEA, a server and NetBeans for exa

8条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 19:30

    Little late here however this info may be useful for somebody. In a Linux system, if you want to know how many JVMs are running you can try this command

    $ ps -ef | grep "[j]ava" | wc -l
    

    ps to list process, grep to search process containing "java" and wc to count lines returned

提交回复
热议问题