Eclipse failed to create the java virtual machine

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.