Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » java heap size
java heap size [message #201654] Fri, 14 September 2007 13:34 Go to next message
Eclipse UserFriend
Originally posted by: someone.nospam.net

I am contiually getting errors from eclipse about running out of space on
the java heap while I am examaning C++ code. The little memory gadet at the
bottom of the sceen displays a maximum of 254 megs, I believe for the java
heap. How can I allocate more memory for eclipse to use? Keep in mind I am
very un-unix savvy and this whole environment is new to me. I googled java
heap and it talks about an -Xmm and -Xmx option, but I imagine those are
arguments that need to be passed when eclipse is loaded somehow?

Thanks
Re: java heap size [message #201677 is a reply to message #201654] Fri, 14 September 2007 19:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Christopher Pisz wrote:
> I am contiually getting errors from eclipse about running out of space on
> the java heap while I am examaning C++ code. The little memory gadet at the
> bottom of the sceen displays a maximum of 254 megs, I believe for the java
> heap. How can I allocate more memory for eclipse to use? Keep in mind I am
> very un-unix savvy and this whole environment is new to me. I googled java
> heap and it talks about an -Xmm and -Xmx option, but I imagine those are
> arguments that need to be passed when eclipse is loaded somehow?
>
> Thanks
>
>
The -X?? options are arguments that need to be passed on the Eclipse
command line. They need to follow the -vmargs command line option.
Here is an example:
eclipse -vm path/to/java.exe -vmargs -Xmx512m

This will give Eclipse a max heap size of 512meg. You can adjust the
512 number to find what works for you. Make sure you don't put a space
between the -Xmx and the number.
Re: java heap size [message #201720 is a reply to message #201654] Mon, 17 September 2007 02:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fwein.lse.eei.uni-erlangen.de

Hi,

> very un-unix savvy and this whole environment is new to me. I googled java
> heap and it talks about an -Xmm and -Xmx option, but I imagine those are
> arguments that need to be passed when eclipse is loaded somehow?
In your eclipse installation there is an eclipse.ini - depending on your version
there might already be some lines prepared.

You can check your settings
Via Help->About Eclipse->Configuration Details

Fabian

P.S.: I don't find such a memory gadget (but miss it!)
Re: java heap size [message #201734 is a reply to message #201677] Mon, 17 September 2007 02:32 Go to previous messageGo to next message
Eclipse UserFriend
David Wegener wrote:

> Christopher Pisz wrote:
>> I am contiually getting errors from eclipse about running out of space on
>> the java heap while I am examaning C++ code. The little memory gadet at the
>> bottom of the sceen displays a maximum of 254 megs, I believe for the java
>> heap. How can I allocate more memory for eclipse to use? Keep in mind I am
>> very un-unix savvy and this whole environment is new to me. I googled java
>> heap and it talks about an -Xmm and -Xmx option, but I imagine those are
>> arguments that need to be passed when eclipse is loaded somehow?
>>
>> Thanks
>>
>>
> The -X?? options are arguments that need to be passed on the Eclipse
> command line. They need to follow the -vmargs command line option.
> Here is an example:
> eclipse -vm path/to/java.exe -vmargs -Xmx512m

> This will give Eclipse a max heap size of 512meg. You can adjust the
> 512 number to find what works for you. Make sure you don't put a space
> between the -Xmx and the number.
You can adjust these values also in the file eclipse.ini .
Re: java heap size [message #201742 is a reply to message #201720] Mon, 17 September 2007 02:34 Go to previous message
Eclipse UserFriend
> P.S.: I don't find such a memory gadget (but miss it!)
Preferences->General: Check "Show Heap Status"

Axel
Previous Topic:C++ construct folding?
Next Topic:ansi C
Goto Forum:
  


Current Time: Sat May 10 02:07:16 EDT 2025

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

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

Back to the top