How can I increase the JVM memory?(如何增加 JVM 内存?)
问题描述
我想知道是否可以根据我的应用程序增加 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.
http://www.rgagnon.com/javadetails/java-0131.html
这篇关于如何增加 JVM 内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何增加 JVM 内存?
基础教程推荐
- Struts2 URL 无法访问 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
