Current location - Health Preservation Learning Network - Slimming men and women - Solution to the memory limitation problem of jvm
Solution to the memory limitation problem of jvm
The jdk compiler supports memory in different client states and server states, and the latter supports more. Different operating systems also have different bits, and the operating system is larger than the bit operating system.

Test method: Test with java XmxXXXXM version command at the command line, and then gradually increase the value of XXXX. If it is executed normally, the specified memory size is available, otherwise an error message will be printed.

such as

c:\ & gt; Java client Xmx M version

Java version _ "

Java SE runtime environment (build _ b)

Java HotSpot(TM) client virtual machine (build b mixed mode)

c:\ & gt; Java client Xmx M version

Java version _ "

Java SE runtime environment (build _ b)

Java HotSpot(TM) client virtual machine (build b mixed mode)

c:\ & gt; Java client Xmx M version

Error during virtual machine initialization.

Unable to reserve enough space for the object heap.

Unable to create Java virtual machine.

c:\ & gt; Java server Xmx M version

Error: there is no `serverjvm in `c: \ program files \ Java \ JRE _ \ bin \ server \ jvmdll.

Methods to change the state of java compiler client and server

c:\ Program Files \ Java \ JDK _ \ JRE \ lib \ I \ JVM CFG

open

Customer knows

Known server

Hotspot Alias _ To Client

Classic warning

inherent error

Green error

regulate

Known server

Customer knows

Hotspot Alias _ To Client

Classic warning

inherent error

Green error

Lishi Xinzhi/Article/program/Java/hx/20 13 1 1/26433