The default size of jvm memory, and how to adjust the size

The default jvm size is 64m. If you want to increase the memory of the program, if you want to adjust the size of the JVM, you can configure the parameters of the VM in the run configuration. -Xmx100m means that the size is configured to be 100M.

 

Below are some configuration instructions.

-vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M
-vmargs Explain that the latter are the parameters of the VM, so the latter are actually the parameters of the
JVM -Xms128m The heap memory initially allocated by the
JVM -Xmx512m The maximum allowable JVM Allocated heap memory, allocated on demand
-XX:PermSize=64M JVM initially allocated non-heap memory
-XX:MaxPermSize=128M JVM maximum allowable allocation of non-heap memory, allocated on demand

Original: https://www.cnblogs.com/yangwei20160911/p/6209617.html

 

Guess you like

Origin blog.csdn.net/cherry_vicent/article/details/108810670