java的xms与xmx和服务器内存_启动JVM时-XMS和-XMX参数是什么?

这篇博客详细介绍了Java虚拟机(JVM)的一些重要命令行参数,如-Xms和-Xmx用于设置堆内存大小,-Xint用于纯解释模式执行,-Xbootclasspath用于指定引导类路径等。这些参数对于优化Java应用程序的性能和内存管理至关重要。通过调整这些选项,开发者可以更好地控制JVM的行为和资源消耗。
摘要由CSDN通过智能技术生成

运行命令java -X你会得到一张清单-X备选方案:

C:\Users\Admin>java -X

-Xmixed           mixed mode execution (default)

-Xint             interpreted mode execution only

-Xbootclasspath:

set search path for bootstrap classes and resources

-Xbootclasspath/a:

append to end of bootstrap class path

-Xbootclasspath/p:

prepend in front of bootstrap class path

-Xdiag            show additional diagnostic messages

-Xnoclassgc       disable class garbage collection

-Xincgc           enable incremental garbage collection

-Xloggc:    log GC status to a file with time stamps

-Xbatch           disable background compilation

-Xms        set initial Java heap size.........................

-Xmx        set maximum Java heap size.........................

-Xss        set java thread stack size

-Xprof            output cpu profiling data

-Xfuture          enable strictest checks, anticipating future default

-Xrs              reduce use of OS signals by Java/VM (see documentation)

-Xcheck:jni       perform additional checks for JNI functions

-Xshare:off       do not attempt to use shared class data

-Xshare:auto      use shared class data if possible (default)

-Xshare:on        require using shared class data, otherwise fail.

-XshowSettings    show all settings and continue

-XshowSettings:all         show all settings and continue

-XshowSettings:vm          show all vm related settings and continue

-XshowSettings:properties  show all property settings and continue

-XshowSettings:locale      show all locale related settings and continue

-X选项是非标准的,如有更改,恕不另行通知.

我希望这能帮助你理解Xms, Xmx还有很多其他最重要的事情。*)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值