计算机上扩展了多少个Java虚拟机 [英] how many java virtual machine extst on computer

查看:100
本文介绍了计算机上扩展了多少个Java虚拟机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道我的计算机上有多少个jvm.一个或多个?

I don't understand how many jvm exist on my computer. One or more?

例如. 我打开eclipse,jboss和另一个Java程序.我的计算机中有多少个jvm? 3或1?

For example. I open eclipse, jboss and another java program. How many jvm exist in my computer? 3 or 1?

推荐答案

通常,每次执行Java程序都会启动一个新的VM. JVM只不过是Java程序在其中运行的环境.但是,某些程序会创建多个JVM,以便它们可以独立运行许多Java程序.应用程序服务器使您可以选择控制它们启动的JVM的数量以及它们的用途.对于您引用的示例,您可能有3个JVM,但是取决于JBoss的配置方式以及在其中安装的内容,您可能会有更多.

Typically a new VM is started every time you execute a java program. The JVM is nothing more than the environment that the Java program is running in . However, some programs create multiple JVMs so that they can run a number of Java programs independently. Applications servers give you the option to control the number of JVMs they start, and what to use them for. For the example you cited you probably have 3 JVMs, but depending upon how JBoss is configured, and what you have installed there, you might have more.

这篇关于计算机上扩展了多少个Java虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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