Eclipse memory settings when getting “Java Heap Space” and “Out of Memory”

前端 未结 11 821
野的像风
野的像风 2020-11-27 13:06

When trying to launch and run a flex/java project in eclipse I kept getting a \"Out of Memory Exception\" and \"Java Heap Space\" using Eclipse, Tomcat and a JRE.

Wh

11条回答
  •  情话喂你
    2020-11-27 13:25

    I have these settings:

    -vmargs
    ...
    -Duser.name=...
    -XX:PermSize=256m
    -XX:MaxPermSize=256m
    -Xmn128m
    -Xms256m
    -Xmx768m
    

    Eclipse randomly crashed before I set the PermSize equal to MaxPermSize.

提交回复
热议问题