Eclipse 3.5.1 uses a lot of memory

I switched to Eclipse 3.5.1 and noticed that it takes 560 mb when doing a clean build. And the memory is not collected after use. This is true.

Any solution for this?

JVM: jdk1.6.0_17 Windows XP, 2GM RAM

Below is my eclipse.ini

-showlocation
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
384m
-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
-vm
C:/Program Files/Java/jre6/bin/client/jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms128m
-Xmx384m
-Xss4m
-XX:PermSize=128m
-XX:MaxPermSize=384m
-XX:CompileThreshold=5
-XX:MaxGCPauseMillis=10
-XX:MaxHeapFreeRatio=70
-XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode
-XX:+CMSIncrementalPacing
-Dcom.sun.management.jmxremote
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:/jaydeep/Ericsson/eclipse_galileo/eclipse/dropins

Jaydeep.

+3
source share
6 answers

I spent a lot of time on memory issues related to Eclipse, especially with Eclipse 3.2 and the shameful PermGen problem.

A few things that can make a difference:

1) Remove the memory used for the initial heap size: -Xms40m instead of -Xms128m. 2) Do not set the minimum size PermGen: remove -XX: PermSize = 128m

1 & 2 , .

3) - , . 4) "// ", , , Eclipse.

3 & 4 .

5) Max PermGen Max Heap, , , , / /, . PermGen, , JVM , .log.

, , , - , Windows , , JVM , . , JVM, Java jconsole ( JDK) .

, .

+5

. , , Eclipse . Java , .

+3

AFAIK Java . , PermSize 384Mb 384Mb, , 768Mb - ( 100%, ).

, - . , , , .

" ", , , "jstat".

+1

. , ?

, JVM (, Java), , JVM (Eclipse) .

0

, ? " " ( ) , ( , ).

Eclipse , , . - , , , .

1,6 . , , ...

0
source

According to my experiments, all the vmargs options installed in ini are played only once - when creating a new workspace. If you want to change the settings in an existing workspace, use the run / debug configuration. vmargs in ini will no longer be read.

0
source

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


All Articles