How can I give eclipse more memory than 512M?

后端 未结 7 933
清酒与你
清酒与你 2020-11-28 02:31

I have following setup, but when I put 1024 and replace all 512 with 1024, then eclipse won\'t start at all. How can I have more than 512M memory for my eclipse JVM?

7条回答
  •  北海茫月
    2020-11-28 03:29

    While working on an enterprise project in STS (heavily Eclipse based) I was crashing constantly and STS plateaued at around 1GB of RAM usage. I couldn't add new .war files to my local tomcat server and after deleting the tomcat folder to re-add it, found I couldn't re-add it either. Essentially almost anything that required a new popup besides the main menus was causing STS to freeze up.

    I edited the STS.ini (your Eclipse.ini can be configured similarly) to:

    --launcher.XXMaxPermSize 1024M -vmargs -Xms1536m -Xmx2048m -XX:MaxPermSize=1024m

    Rebooted STS immediately and saw it plateau at about 1.5 gigs before finally not crashing

提交回复
热议问题