简体   繁体   中英

Implication on memory usage if run JVM without any options?

We have 64-bit Oracle JRE 8 and our application start as:

java -jar C:\path\to\app.jar

How JVM does uses memory in that case (when you do not set -Xmx and other options)?

So the max memory consumption limited even in 64-bit machine by default... But this number differs for same JVM but different hosts.

For openjdk and oracle jvms this is governed by the MaxRAMFraction option, which under 64bit defaults to 4, ie 25% of physical memory.

我不记得是对的,但是据我所知,如果您不指定-Xmx或-Xms,jvm将不使用超过25%的RAM

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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