Eclipse failed to create the java virtual machine [How to Solve]


1. Problem phenomenon

2. Java virtual machine initialization failed! Find the eclipse decompression path

3. Find eclipse initialization file

4. Right click to open (here, UltraEdit is taken as an example)

5. Open search initialization. Virtual machine allocates memory limit settings (original 256, set to 128) for Java permanent generation objects such as class objects and method objects

Note: the setting here can not be too small, and there are two places, which have been marked in the figure

6. Save and restart eclipse

Note: permsize and maxpermsize indicate that the virtual machine allocates memory limits for reflective objects such as Java permanent generation, which are not included in heap memory

indicates that the minimum size of JVM heap memory is 128MB, and the initial allocation
– xmx512m
indicates that the maximum allowable size of JVM heap memory is 256MB, which is allocated on demand

-20: Permsize = 64MB minimum size, initial allocation
– XX: maxpermsize = 256MB maximum allowable allocation size, on-demand allocation
too small will cause: java.lang.outofmemoryerror: permgen space


Similar Posts: