- This topic has 14 replies, 5 voices, and was last updated 17 years, 10 months ago by Riyad Kalla.
-
AuthorPosts
-
peter_mts_ukParticipantHi,
I am running MyEclipes 5.0.1 with Eclipse 3.2.0 under the Mac OS 10.4.7
I receive the following message quite frequently:
Available Memory Is Low
MyEclipse has detected that less than 5% of the 57MB of
Tenured Gen (Heap Memory) space remains . . .It recommends changing the Eclipse memory parameters in eclipse.ini.
Have I done this:
-vmargs
-Xms512M
-Xmx1024M
-XX:PermSize=128M
-XX:MaxPermSize=256M
. . .BUT still receiving the same message.
TIA Peter
Riyad KallaMemberPeter,
Are you editing the ini file that is located inside the Eclipse package (Eclipse > Show Package Contents > MacOS > eclipse.ini?) Also can you describe a series of actions and tend to run you low on memory consistently?
peter_mts_ukParticipantHi,
Yes I have edited the eclipse.ini file in the Eclipse package.
There is a large project tied to SVN SCM system. Generally the problem occurs after a day or so. It seems to me
more like a memory leak than anything in particular causing it. A colleague using the same spec apple mac and using just Eclipse on the same project does not have any memory problems.Any other ideas ?
TIA Peter
Scott AndersonParticipantPeter,
One thing I find peculiar is that message you reported
MyEclipse has detected that less than 5% of the 57MB of
Tenured Gen (Heap Memory) space remains . .shows that on 57MB of Tenured Gen space is available in the heap. It almost looks like your memory settings aren’t being picked up and you’re running with the default heap size.
To test that, does the Mac JVM have JConsole?
http://java.sun.com/developer/technicalArticles/J2SE/jconsole.htmlIf so, can you run it and see if you can determine what how your heap is initially sized and what operations seem to be driving your usage up? Also, you can turn on the Heap Monitor in Eclipse at Window > Preferences > General
peter_mts_ukParticipantScott,
Apologies. It was because I was editing the eclipse.ini file in MS Word. Even though I was saving it as a text file it was putting in spurious characters (^M). Once I edited it in vi it was fine.
Thanks for your help.
Peter
Riyad KallaMemberGlad to hear it’s working.
thinkboyMemberhi, I am also having the Available Memory Is Low problem on my MacOSX G4 Power book. currently, I am having 2GB of RAM and 6GB of HD free space.
however, I experienced “MyEclipse has detected that less than 5% of the 57MB …”
then I edited my eclipse.ini file as the following:
-vmargs
-Xms512M
-Xmx1024M
-XX:PermSize=128M
-XX:MaxPermSize=256M
-Dosgi.splashLocation=/Applications/MyEclipse 5.0GA/eclipse/MyEclipseSplash.bmp
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xbootclasspath/p:../../../plugins/org.eclipse.jdt.debug_3.2.0.v20060605/jdi.jar
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dorg.eclipse.swt.internal.carbon.noFocusRingwhen I restart my eclipse 3.2 again
I received the following error screen:
——————
JVM terminated.
Exit code =1
/usr/bin/java
-Xms512M
-Xmx1024M
-XX:PermSize=128M
-XX:MaxPermSize=256M
-Dosgi.splashLocation = …..
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xbootclasspath/p:../../../plugins/org.eclipse.jdt.debug_3_2.0.v20060605/jdi.jar
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dorg.eclipse.set.internal.carbon.noFocusRing
-jar /Applications/eclipse/Eclipse.app/Contents/MacOS/../../../startup.jar
-os macosx
-ws carbon
-launcher /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse
-name Eclipse
-showsplash 600
-exitdata 50000
-keyring /Users/manchi/.eclipse_keyring
-consoleLog
-showlocation
-product com.genuitec.myeclipse.product.idehowever, if I removed the following 2 lines. my eclipse will be enabled to startup again.
-XX:PermSize=128M
-XX:MaxPermSize=256Mpls help!! !
Riyad KallaMemberHave you tried changing the order of the -XX options? I hate using the .ini file for this reason because it’s always been flaky for me and doesn’t always load the arugments I need. Unfortunately on Mac, it’s required (as far as I could tell).
Also you are using a Milestone release of Eclipse 3.2, not the final 3.2 GA release of the 3.2.1 update release, you might consider performing a clean install soon. We will have an all-in-one installer with the 5.0.3 release so you could wait for that to make thing easiers (due out in about 2 weeks).
thinkboyMemberi am using eclispe 3.2 release , & Myeclipse 5.0.1 GA release
yes. I would like to wait for 5.0.3 release. pls keep me updated on the release. thanks
btw, what is the position I should put the arg of -XX:PermSize=128M -XX:MaxPermSize=256M ??
Riyad KallaMemberI don’t have a Mac to test this on, but try changing the position of the two -XX params (to the end of the list for example) until MyEclipse starts up. You can also try putting them on the same line as others… I had to do that once to get it to work… very frustrating.
thinkboyMemberhi,
i managed to start up if I put this -XX:PermSize=128M -XX:MaxPermSize=256M at the end of eclipse.ini . i will minitor on the error again.
thinkboyMembermy myecilpse just crashed very badly during importing an existing project . can I send u a screenshot ?
Riyad KallaMemberYes please do, you can PM them to me (look for the button under my name that says “PM”)
Anthony EstelitaMemberNot sure if this will help others, but I use to get this same exact memory error all the time. It turned out the argument “-XX:CompileThreshold=5” was causing this error — I am not sure exactly what this argument is for or where i got it from 🙂
Anyway here is a copy of a startup file that i use for running eclipse (hopefully others will find it useful):
:INIT SETLOCAL pushd .\ set ECLIPSE_DIR=c:\eclipse set ECLIPSE=%ECLIPSE_DIR%\eclipse.exe set JAVA_HOME="C:\Program Files\Java\jre1.6.0" set VM=%JAVA_HOME%\bin\javaw.exe set ECLIPSE_ARGS=-nosplash -nolazyregistrycacheloading -showlocation set MEM_ARGS=-Xms128m -Xmx512m -XX:PermSize=64M -XX:MaxPermSize=128M set VM_ARGS=-Duser.language=en -Dide.gc=true -XX:+UseParallelGC :RUN cd %ECLIPSE_DIR% start %ECLIPSE% %ECLIPSE_ARGS% -vm %VM% -vmargs %MEM_ARGS% %VM_ARGS% :EXIT ENDLOCAL exit
😀
Riyad KallaMemberThanks for posting that Anthony… I’ve had very strange success with the eclipse.ini file versus the command line at times… sometimes one will cause the other to be totally ignored and visa versa… so any help is appreciated.
-
AuthorPosts