IT story

어떻게 512M보다 더 많은 메모리를 Eclipse에 제공 할 수 있습니까?

hot-time 2020. 9. 7. 21:23
반응형

어떻게 512M보다 더 많은 메모리를 Eclipse에 제공 할 수 있습니까?


다음 설정을 가지고 있지만 1024를 넣고 512를 모두 1024로 바꾸면 Eclipse가 전혀 시작되지 않습니다. Eclipse JVM에 512M 이상의 메모리를 어떻게 가질 수 있습니까?

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
com.springsource.sts.ide
--launcher.XXMaxPermSize
512M
-vm
C:\Program Files (x86)\Java\jdk1.6.0_18\bin\javaw 
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx512m
-XX:MaxPermSize=512m

Eclipse가 사용할 수있는만큼의 메모리를 수용하도록하는 데 많은 문제가있었습니다 (예를 들어 2 ~ 4 기가).

eclipse.iniEclipse 설치 디렉토리에서 엽니 다 . 이후에 메모리 크기를 변경할 수 있어야합니다.-vmargs 문제없이 최대 1024 개시스템에 따라 달라지는 최대 값까지. 내 Linux 상자의 해당 섹션은 다음과 같습니다.

-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=512m
-Xms512m
-Xmx1024m

내 Windows 상자의 해당 섹션은 다음과 같습니다.

-vmargs
-Xms256m
-Xmx1024m

그러나 나는 그것을 1024 megs 이상으로 설정하는 데 실패했습니다 . 그 일을 만드는 방법을 아는 사람이 있다면 알고 싶습니다.

편집 : 32 비트 버전의 juno는 64 비트 버전이 2048을 허용하는 Xmx1024m 이상을 허용하지 않는 것 같습니다.

편집 : Nick의 게시물에는 두 가지 다른 사항을 설명하는 몇 가지 훌륭한 링크가 포함되어 있습니다.

  • 문제는 주로 시스템 과 사용 가능한 연속 사용 가능한 메모리 양에 따라 다릅니다.
  • javaw.exe (Windows)를 사용하면 더 큰 할당 된 메모리 블록을 얻을 수 있습니다.

나는 8 기가의 램을 가지고 -Xmx있고 최소한의 프로그램이로드되고 윈도우 / 리눅스 모두 4 ~ 5 기가의 여유 램을보고하더라도 1024 메가 이상의 램으로 설정할 수 없습니다 .


Eclipse Juno의 메모리 할당을 늘리는 방법은 다음과 같습니다.

enter image description here

I have a total of 4GB on my system and when im working on eclipse, i dont run any other heavy softwares along side it. So I allocated 2Gb.

The thing i noticed is that the difference between min and max values should be of 512. The next value should be let say 2048 min + 512 = 2560max

Here is the heap value inside eclipse after setting -Xms2048m -Xmx2560m:

enter image description here


Care and feeding of Eclipse's memory hunger is a pain...

More or less, keep trying smaller amounts til it works, that's your max.


You can copy this to your eclipse.ini file to have 1024M:

-clean -showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms512m
-Xmx1024m
-XX:PermSize=128m
-XX:MaxPermSize=256m 

I don't think you need to change the MaxPermSize to 1024m. This works for me:

-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx1024m
-XX:PermSize=64m
-XX:MaxPermSize=128m

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


Configuring this worked for me: -vmargs -Xms1536m -Xmx2048m -XX:MaxPermSize=1024m on Eclipse Java Photon June 2018

Running Windows 10, 8 GB ram and 64 bit. You can extend -Xmx2048 -XX:MaxpermSize= 1024m to 4096m too, if your computer has good ram.Mine worked well.

참고URL : https://stackoverflow.com/questions/2610194/how-can-i-give-eclipse-more-memory-than-512m

반응형