Eclipse Kepler Crash after startup with Message:-Java heap space

后端 未结 4 1058
不思量自难忘°
不思量自难忘° 2020-12-30 03:45

I am getting below exception

An internal error occurred during: \"Building workspace\".
Java heap space

and then i am getting

<         


        
相关标签:
4条回答
  • 2020-12-30 03:54

    You can use that faq http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F

    which indicates to modify the eclipse.ini file

    the important ones

    --launcher.XXMaxPermSize
    512m
    --launcher.defaultAction
    openFile
    -vmargs
    -Xms1024m
    -Xmx2048m
    -XX:+UseParallelGC
    -XX:PermSize=512M
    -XX:MaxPermSize=2048M
    
    0 讨论(0)
  • 2020-12-30 04:06

    Just add this in your eclipse VM arguments.

    -XX:MaxPermSize=256m -Xmx1024m
    

    and restart the server.

    0 讨论(0)
  • 2020-12-30 04:08

    Go to Eclise.ini file(C:\Program Files\eclipse-standard-kepler-SR2-win32-x86_64\eclipse\eclipse.ini) and open it with a Notepad to edit: -Xms256m -Xmx1024m (as per Requirement)

    This will increase the heap size and overcomes the error.

    PS:for Windows 7 and above,"Run as Administrator" can only Save the Change.

    0 讨论(0)
  • 2020-12-30 04:09

    In your eclipse installation folder, find the eclipse.ini file and change

    -Xms512m
    -Xmx1024m
    

    parameters according to your requirement.

    0 讨论(0)
提交回复
热议问题