[NTLUG:Discuss] Eclipse - running out of RAM?

Justin M jrmercier at gmail.com
Thu Sep 18 10:10:04 CDT 2008


Steve Baker wrote:
>     GC Warning: Repeated allocation of very large block (appr. size 
> 262144999):
>     GC Warning: Out of Memory!  Returning NIL;
>     Exception in thread "Refresh Packages" java.lang.OutOfMemoryError
>         <<No stacktrace available>>
>
>   
Take a look at the readme.
/usr/share/doc/packages/eclipse/readme/readme_eclipse.html (OpenSuSE 11)

A little snippet of that doc...
>
> By default, Eclipse will allocate up to 256 megabytes of Java heap
> memory. This should be ample for all typical development tasks.
> However, depending on the JRE that you are running, the number of
> additional plug-ins you are using, and the number of files you will be
> working with, you could conceivably have to increase this amount.
> Eclipse allows you to pass arguments directly to the Java VM using the
> |-vmargs| command line argument, which must follow all other Eclipse
> specific arguments. Thus, to increase the available heap memory, you
> would typically use:
>
>     |eclipse -vmargs -Xmx<memory size>|
>
> with the |<memory size>| value set to greater than "256M" (256
> megabytes -- the default).
>

Justin




More information about the Discuss mailing list