Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Memory problems with 3.4/3.5 on Mac OSX
Memory problems with 3.4/3.5 on Mac OSX [message #483375] Tue, 01 September 2009 07:58 Go to next message
Eclipse UserFriend
I'm having difficulty with running Eclipse (3.4 and also 3.5) on Mac OSX (10.5).

In the past I've found that I can get away with the default Xms Xmx settings (40M and 256M) and it will perform acceptably. However, my code base has recently grown much larger and I'm finding that I'm running in OutOfMemory errors.

The obvious solution is to increase my Xms/Xmx. However when I do this the Java Type Content Assist proposals suddenly stop working. For me, it's like any deviation from the defaults causes these problems.

My machine has 2GB of RAM.

Is there a known correlation between the two? Has anyone else experienced this or similar problems with the Content Assist?

Thanks,

Damian.
Re: Memory problems with 3.4/3.5 on Mac OSX [message #483413 is a reply to message #483375] Tue, 01 September 2009 10:28 Go to previous messageGo to next message
Eclipse UserFriend
I had this problem once.

It was related to PermGen space.
Try those arguments : -XX:PermSize=256m -XX:MaxPermSize=256m


Damian Harvey a écrit :
> I'm having difficulty with running Eclipse (3.4 and also 3.5) on Mac OSX
> (10.5).
>
> In the past I've found that I can get away with the default Xms Xmx
> settings (40M and 256M) and it will perform acceptably. However, my code
> base has recently grown much larger and I'm finding that I'm running in
> OutOfMemory errors.
>
> The obvious solution is to increase my Xms/Xmx. However when I do this
> the Java Type Content Assist proposals suddenly stop working. For me,
> it's like any deviation from the defaults causes these problems.
>
> My machine has 2GB of RAM.
>
> Is there a known correlation between the two? Has anyone else
> experienced this or similar problems with the Content Assist?
>
> Thanks,
>
> Damian.
Re: Memory problems with 3.4/3.5 on Mac OSX [message #483427 is a reply to message #483375] Tue, 01 September 2009 11:12 Go to previous messageGo to next message
Eclipse UserFriend
"Damian Harvey" <damianharvey@gmail.com> wrote in message
news:h7j29n$5rj$1@build.eclipse.org...
> I'm having difficulty with running Eclipse (3.4 and also 3.5) on Mac OSX
> (10.5).
>
> In the past I've found that I can get away with the default Xms Xmx
> settings (40M and 256M) and it will perform acceptably. However, my code
> base has recently grown much larger and I'm finding that I'm running in
> OutOfMemory errors.
>
> The obvious solution is to increase my Xms/Xmx. However when I do this the
> Java Type Content Assist proposals suddenly stop working. For me, it's
> like any deviation from the defaults causes these problems.

FWIW, both of those Eclipse versions work fine for me on 10.5.8,
with -Xmx1024M.

What JVM version are you using?

What are the contents of your eclipse.ini, and how are you launching
Eclipse?
Re: Memory problems with 3.4/3.5 on Mac OSX [message #483585 is a reply to message #483427] Wed, 02 September 2009 04:56 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for your replies.

I'm using the default Eclipse 3.5 JEE installation. My (unchanged) eclipse.ini looks like this:
-startup
../../../plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.0.0.v20090519
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts


If I close the projects that contain the large source files then the Content Assist is back up to speed. Unfortunately I need these projects open often during the day.

Is there any way to tell Content Assist to ignore them?

Thanks.
Re: Memory problems with 3.4/3.5 on Mac OSX [message #483600 is a reply to message #483375] Wed, 02 September 2009 05:54 Go to previous messageGo to next message
Eclipse UserFriend
This is the error message that I am frequently getting. It does not matter what I change the proposals too (eg. changing it to Type etc).
http://locuslive.com/webdrive/JDTscreenshot.png

I am launching Eclipse via the standard Eclipse.app
Re: Memory problems with 3.4/3.5 on Mac OSX [message #483608 is a reply to message #483427] Wed, 02 September 2009 06:08 Go to previous messageGo to next message
Eclipse UserFriend
Can you post your entire eclipse.ini so I can shamelessly copy it ?
Re: Memory problems with 3.4/3.5 on Mac OSX [message #483686 is a reply to message #483600] Wed, 02 September 2009 11:06 Go to previous message
Eclipse UserFriend
On 9/2/09 5:54 AM, Damian Harvey wrote:
> This is the error message that I am frequently getting. It does not
> matter what I change the proposals too (eg. changing it to Type etc).
>
>
> I am launching Eclipse via the standard Eclipse.app

The attachment of the error message did not make it through to the
newsgroup, but it is visible in the web forum here:
http://www.eclipse.org/forums/index.php?t=msg&th=153472& amp;goto=483375#msg_483600

Since it is Mylyn that is causing the trouble, one option is to disable
Mylyn's contribution to content assist. In the preferences, navigate to
Java > Editor > Content Assist > Advanced and then un-check any of the
options that include "Mylyn" or "Task-focused" in their name.

It would be very helpful if you could post the problem to the Mylyn
newsgroup (eclipse.tools.mylyn); they might like to have a bug report
about it.

Hope this helps,
Eric
Previous Topic:ASTRewriteCorrectionProposal
Next Topic:JDT Completion Context
Goto Forum:
  


Current Time: Mon Jul 21 22:18:53 EDT 2025

Powered by FUDForum. Page generated in 0.04736 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top