Eclipse running out of memory, or..?

Jeroen Lankheet admin1 at lankheet.com
Fri Mar 2 14:24:34 UTC 2007


> Andrew Overholt skrev:
>> * Frode Petersen <fropeter at online.no> [2007-02-26 06:24]:
>>>> One thing to confirm is that you are indeed running with the Sun VM.
>>>> If
>>>> you've downloaded plugins that aren't shipped with Fedora, they don't
>>>> contain the gcj-compiled bits and if you're just running with our
>>>> stock
>>>> setup, they'll be purely interpreted by gij.  They'll run slower than
>>>> if
>>>> there are .sos corresponding to the jars.  But if you're running with
>>>> the Sun VM then that's irrelevant.
>>>> Andrew
>>> One of the plugins refused to run with less than Java 1.5, I have not
>>> checked the other in that respect.
>>
>> Then you must use the Sun (or IBM or BEA) VM.  gcj in rawhide has just
>> recently merged in the 1.5 branch of GNU Classpath so you can expect
>> that in Fedora 7.
>>
>>> But what you're saying here, if I get you right, is that if I need
>>> Java 1.5, there wouldn't be any advantage in using Fedora Eclipse over
>>> the upstream version, but if the Fedora Java stack suffices for the
>>> plugins, Eclipse itself would run faster, although the plugins won't
>>> benefit. Confused again? :-)
>>
>> I don't think it's worth talking about absolute performance of
>> gcj-compiled binaries vs. the Sun JIT 'cause there are a lot of factors
>> and it's difficult to get hard numbers that apply in all cases.
>>
>> As for using Fedora Eclipse over an upstream download, it's up to you.
>> We include a few patches.  These have either been applied upstream after
>> the release we're shipping or are useful for multi-user, RPM-based
>> installations.  There's also the benefit of having it installed and
>> managed by yum and the whole RPM infrastructure but I figure that goes
>> without saying :)
>>
>> Andrew
>>
>
> Thank you for the clarifications!
>
> Frode
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

I ran into the same problems some time ago. Apart from the compiler and
Java version to be installed, are you using CDT within Eclipse?
And do you have C/C++ Indexing set to Full?, Then the Indexer lets you run
out of memory. You can change the VM arguments in
Window-Preferences->Java-Installed JREs. Select JRE, edit.
My VM args are as follows:
-vmargs -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m

These settings work for me with 1GB of RAM.

I hope this is useful for someone.




More information about the fedora-list mailing list