Help Modify OSX Eclipse Java Heap Distribution

I need to increase heap allocation, but I think that I am missing a step, I follow these instructions http://wiki.eclipse.org/Eclipse.ini , but the ini file is different from mine, this is what I get

-startup ../../../plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar --launcher.library ../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.2.R36x_v20101019_1345 -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -product org.eclipse.epp.package.java.product --launcher.defaultAction openFile -vmargs -Xdock:icon=../Resources/Eclipse.icns -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx1536m -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -XX:MaxPermSize=256m 

I am changing the line -Xmx1536m , but still getting a memory problem, any ideas what I need to configure? I have the latest 64 bit Eclipse IDE and it works on OSX 10.6.7

thanks

+6
source share
2 answers

In your comments, you explained that you are trying to increase the amount of memory for the application that you use in Eclipse. What you tried increases memory for Eclipse itself. To increase the memory capacity for an application that you use in Eclipse to 1536m, follow these steps:

  • Go to Run> Run Configurations ...
  • Choose a Java application
  • Go to the Arguments tab
  • Add -Xmx1536m to your VM arguments
+16
source

You can increase the heap size allocated by the JVM in eclipse directly. In eclipse IDE goto

 Run---->Run Configurations----> 

Enter

 -Xmx1g 

(It is used to set the maximum size, such as Xmx256m or Xmx1g ...... m → mb g ---> gb)

+1
source

Source: https://habr.com/ru/post/885895/


All Articles