我可以在单台PC上运行多个JVM吗? [英] can I run more than one JVM on my single PC?

查看:90
本文介绍了我可以在单台PC上运行多个JVM吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以运行多个JVM吗?如果是,那么我怎样才能找到一个特定的类加载在哪个JVM上?

Can I run more than one JVM? If yes then how can I find a particular class is loaded on which JVM?

推荐答案

你的意思并不完全清楚,但是:

It's not entirely clear what you mean, but:


  • 您可以在同一台计算机上安装多个VM(版本/品牌等)

  • 您可以运行多个 java 进程,无论是相同的JVM版本还是不同的版本

  • You can have more than one VM (version / brand etc) installed on the same machine
  • You can run more than one java process, whether of the same JVM version or different ones

除非您正在运行调试代理或类似的东西,否则我不知道有任何方法可以询问JVM进程是否加载了特定的类。这似乎有点奇怪的要求 - 你为什么要这样做?

Unless you're running a debugging agent or something similar, I don't know of any way to ask a JVM process whether it's loaded a particular class. It seems a bit of an odd requirement - why do you want to do this?

这篇关于我可以在单台PC上运行多个JVM吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆