如何启动jvm,并且我们可以在单个系统上运行多个jvm? [英] how to start jvm and can we have multiple jvm running on a single system?

查看:282
本文介绍了如何启动jvm,并且我们可以在单个系统上运行多个jvm?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在采访中有人问我这个问题,如何启动jvm,我们可以在一个系统上运行多个jvm吗?

I had been asked this question in interview, how to start jvm and can we have multiple jvm running on a single system?

推荐答案

每个运行的Java应用程序都使用一个独立的JVM.

每个JVM是一个单独的进程,并且它们不共享堆栈,堆.将仅共享通用的核心JVM和本机库.

Each JVM is a separate process, and they do not share stacks, heaps. Only common core JVM and native libraries will be shared.

您可以在单个计算机/服务器上运行n个应用程序,并且n个JVM也可以运行.

You can have n number of application running on single machine/server box, and so as n number of JVM's.

启动多个Java进程将为您创建JVM.

Launching multiple java processes will create JVM for you.

您总共可以在计算机上运行任意数量的JVM,甚至可以使用不同的JDK版本.

In all you can have any number of JVM running in your machine, with even different JDK versions.

这篇关于如何启动jvm,并且我们可以在单个系统上运行多个jvm?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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