Eclipse failed to create the java virtual machine
Solution:
1. symptom
2. Java Virtual Machine initialization failed! Find the eclipse decompression path
3. Find the eclipse Initialization File
4. Right-click to open (use ultraedit here as an example)
5. Open Search for initialization. The Virtual Machine permanently generates objects (Permanate generation) for java, such as class objects and method objects. The reflective object allocates memory limit settings (originally 256, set to 128)
Note: The setting here cannot be too small, and there are two parts.
6. Save and restart eclipse
Note: The PermSize and MaxPermSize indicate that the virtual machine allocates memory limits for these reflective objects, such as Permanate generation, which are not included in Heap (Heap memory) area.
-Xms128m
The minimum size of JVM Heap (Heap memory) is 128 MB and is initially allocated.
-Xmx512m
The maximum size allowed by JVM Heap (Heap memory) is 256 MB, which is allocated as needed.
-XX: PermSize = 64 MB minimum size, initial allocation
-XX: MaxPermSize = 256 MB: the maximum size allowed for allocation, which is allocated on demand.
Too small will cause: java. lang. OutOfMemoryError: PermGen space