Which arguments stand for what in JVM memory options?
问题 There a lot of JVM arguments that affect the JVM's memory usage like -Xms, -Xmx, -Xns, -XX:MaxPermSize... What do they do? Are there any more? Which one do I have to increase when I get what error (e.g. OutOfMemoryError , StackOverflowError ...)? I cannot find a good cheat sheet for them - let's create one here. 回答1: -Xms: this option sets the initial and minimum Java heap size. -Xmx: This option sets the maximum Java heap size. The Java heap (the “heap”) is the part of the memory where