简体   繁体   English

默认情况下分配的JVM内存是多少

[英]What is the JVM memory allocated by default

In my Catalina.bat file 在我的Catalina.bat文件中

:doStop
shift
set ACTION=stop
set CATALINA_OPTS=
goto execCmd

Xms has not specified , so what would be the memory allocated by default ?? Xms没有指定,因此默认情况下分配的内存是多少?

is there any specific command to check the allocation given to the jvm ? 是否有任何特定命令来检查分配给jvm的分配?

Java will choose default values depending on the actual environment, see http://docs.oracle.com/javase/7/docs/technotes/guides/vm/gc-ergonomics.html . Java将根据实际环境选择默认值,请参见http://docs.oracle.com/javase/7/docs/technotes/guides/vm/gc-ergonomics.html To see actual memory options run java with -XX:printCommandLineFlags. 要查看实际的内存选项,请使用-XX:printCommandLineFlags运行Java。 Another option is to run jconsole util, connect to running Java app and go to "VM Summary" tab. 另一个选择是运行jconsole util,连接到正在运行的Java应用程序,然后转到“ VM Summary”选项卡。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM