本文介绍了如何增加JVM内存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,
我想知道我可以根据我的应用程序增加JVM的内存。如果是的话我怎样才能增加JVM内存?
我怎么知道JVM的大小?

I like to know can I increase the memory of the JVM depending on my application.If yes how can I increase the JVM memory?And how can I know the size of JVM?

推荐答案

启动JVM时,可以调整两个参数适合您的记忆需求:

When starting the JVM, two parameters can be adjusted to suit your memory needs :

-Xms<size>

指定初始Java堆大小和

specifies the initial Java heap size and

-Xmx<size>

最大Java堆大小。

the maximum Java heap size.

这篇关于如何增加JVM内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-27 07:55
查看更多