Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » launcher Could not reserve enough space for object heap(cannot execute junit launcher)
launcher Could not reserve enough space for object heap [message #1013481] Sat, 23 February 2013 14:19 Go to next message
andre silva is currently offline andre silva
Messages: 2
Registered: February 2013
Junior Member
Hi,

I really hope someone can help me with this..
I'm trying to execute a JUnit launcher and I keep getting:

Error occurred during initialization of VM
Could not reserve enough space for object heap

I've tried everything from low and high values on each variable:
-Xms
-Xmx
-XX:PermSize
-XX:MaxPermSize

both on eclipse.ini and on the launcher VM parameters.
I'm running out of options.
Does anyone have any idea on what might be the problem?

Important note: What I'm trying to execute is not really a junit, but a cucumber feature with the cucumber eclipse plugin cukes.info/cucumber-eclipse.

help please... Sad
Re: launcher Could not reserve enough space for object heap [message #1013687 is a reply to message #1013481] Sun, 24 February 2013 01:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26007
Registered: July 2009
Senior Member
Andre,

The -Xmx option controls that. If you have a 32 bit JVM you have to be
careful not to make it larger than the largest possible heap possible on
the 32 bit JVM. Significantly larger than -Xmx1g is likely to cause
problems.

On 23/02/2013 11:35 PM, andre silva wrote:
> Hi,
>
> I really hope someone can help me with this..
> I'm trying to execute a JUnit launcher and I keep getting:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> I've tried everything from low and high values on each variable:
> -Xms
> -Xmx
> -XX:PermSize
> -XX:MaxPermSize
>
> both on eclipse.ini and on the launcher VM parameters.
> I'm running out of options.
> Does anyone have any idea on what might be the problem?
>
> Important note: What I'm trying to execute is not really a junit, but
> a cucumber feature with the cucumber eclipse plugin
> cukes.info/cucumber-eclipse.
>
> help please... :(
Re: launcher Could not reserve enough space for object heap [message #1013694 is a reply to message #1013481] Sun, 24 February 2013 01:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26007
Registered: July 2009
Senior Member
Andre,

The -Xmx option controls that. If you have a 32 bit JVM you have to be
careful not to make it larger than the largest possible heap possible on
the 32 bit JVM. Significantly larger than -Xmx1g is likely to cause
problems.

On 23/02/2013 11:35 PM, andre silva wrote:
> Hi,
>
> I really hope someone can help me with this..
> I'm trying to execute a JUnit launcher and I keep getting:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> I've tried everything from low and high values on each variable:
> -Xms
> -Xmx
> -XX:PermSize
> -XX:MaxPermSize
>
> both on eclipse.ini and on the launcher VM parameters.
> I'm running out of options.
> Does anyone have any idea on what might be the problem?
>
> Important note: What I'm trying to execute is not really a junit, but
> a cucumber feature with the cucumber eclipse plugin
> cukes.info/cucumber-eclipse.
>
> help please... :(
Re: launcher Could not reserve enough space for object heap [message #1013701 is a reply to message #1013481] Sun, 24 February 2013 01:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26007
Registered: July 2009
Senior Member
Andre,

The -Xmx option controls that. If you have a 32 bit JVM you have to be
careful not to make it larger than the largest possible heap possible on
the 32 bit JVM. Significantly larger than -Xmx1g is likely to cause
problems.

On 23/02/2013 11:35 PM, andre silva wrote:
> Hi,
>
> I really hope someone can help me with this..
> I'm trying to execute a JUnit launcher and I keep getting:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> I've tried everything from low and high values on each variable:
> -Xms
> -Xmx
> -XX:PermSize
> -XX:MaxPermSize
>
> both on eclipse.ini and on the launcher VM parameters.
> I'm running out of options.
> Does anyone have any idea on what might be the problem?
>
> Important note: What I'm trying to execute is not really a junit, but
> a cucumber feature with the cucumber eclipse plugin
> cukes.info/cucumber-eclipse.
>
> help please... :(
Re: launcher Could not reserve enough space for object heap [message #1013709 is a reply to message #1013481] Sun, 24 February 2013 01:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26007
Registered: July 2009
Senior Member
Andre,

The -Xmx option controls that. If you have a 32 bit JVM you have to be
careful not to make it larger than the largest possible heap possible on
the 32 bit JVM. Significantly larger than -Xmx1g is likely to cause
problems.

On 23/02/2013 11:35 PM, andre silva wrote:
> Hi,
>
> I really hope someone can help me with this..
> I'm trying to execute a JUnit launcher and I keep getting:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> I've tried everything from low and high values on each variable:
> -Xms
> -Xmx
> -XX:PermSize
> -XX:MaxPermSize
>
> both on eclipse.ini and on the launcher VM parameters.
> I'm running out of options.
> Does anyone have any idea on what might be the problem?
>
> Important note: What I'm trying to execute is not really a junit, but
> a cucumber feature with the cucumber eclipse plugin
> cukes.info/cucumber-eclipse.
>
> help please... :(
Re: launcher Could not reserve enough space for object heap [message #1013717 is a reply to message #1013481] Sun, 24 February 2013 01:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26007
Registered: July 2009
Senior Member
Andre,

The -Xmx option controls that. If you have a 32 bit JVM you have to be
careful not to make it larger than the largest possible heap possible on
the 32 bit JVM. Significantly larger than -Xmx1g is likely to cause
problems.

On 23/02/2013 11:35 PM, andre silva wrote:
> Hi,
>
> I really hope someone can help me with this..
> I'm trying to execute a JUnit launcher and I keep getting:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> I've tried everything from low and high values on each variable:
> -Xms
> -Xmx
> -XX:PermSize
> -XX:MaxPermSize
>
> both on eclipse.ini and on the launcher VM parameters.
> I'm running out of options.
> Does anyone have any idea on what might be the problem?
>
> Important note: What I'm trying to execute is not really a junit, but
> a cucumber feature with the cucumber eclipse plugin
> cukes.info/cucumber-eclipse.
>
> help please... :(
Re: launcher Could not reserve enough space for object heap [message #1013725 is a reply to message #1013481] Sun, 24 February 2013 01:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26007
Registered: July 2009
Senior Member
Andre,

The -Xmx option controls that. If you have a 32 bit JVM you have to be
careful not to make it larger than the largest possible heap possible on
the 32 bit JVM. Significantly larger than -Xmx1g is likely to cause
problems.

On 23/02/2013 11:35 PM, andre silva wrote:
> Hi,
>
> I really hope someone can help me with this..
> I'm trying to execute a JUnit launcher and I keep getting:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> I've tried everything from low and high values on each variable:
> -Xms
> -Xmx
> -XX:PermSize
> -XX:MaxPermSize
>
> both on eclipse.ini and on the launcher VM parameters.
> I'm running out of options.
> Does anyone have any idea on what might be the problem?
>
> Important note: What I'm trying to execute is not really a junit, but
> a cucumber feature with the cucumber eclipse plugin
> cukes.info/cucumber-eclipse.
>
> help please... :(
Re: launcher Could not reserve enough space for object heap [message #1013733 is a reply to message #1013481] Sun, 24 February 2013 01:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26007
Registered: July 2009
Senior Member
Andre,

The -Xmx option controls that. If you have a 32 bit JVM you have to be
careful not to make it larger than the largest possible heap possible on
the 32 bit JVM. Significantly larger than -Xmx1g is likely to cause
problems.

On 23/02/2013 11:35 PM, andre silva wrote:
> Hi,
>
> I really hope someone can help me with this..
> I'm trying to execute a JUnit launcher and I keep getting:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> I've tried everything from low and high values on each variable:
> -Xms
> -Xmx
> -XX:PermSize
> -XX:MaxPermSize
>
> both on eclipse.ini and on the launcher VM parameters.
> I'm running out of options.
> Does anyone have any idea on what might be the problem?
>
> Important note: What I'm trying to execute is not really a junit, but
> a cucumber feature with the cucumber eclipse plugin
> cukes.info/cucumber-eclipse.
>
> help please... :(
Re: launcher Could not reserve enough space for object heap [message #1013741 is a reply to message #1013481] Sun, 24 February 2013 01:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26007
Registered: July 2009
Senior Member
Andre,

The -Xmx option controls that. If you have a 32 bit JVM you have to be
careful not to make it larger than the largest possible heap possible on
the 32 bit JVM. Significantly larger than -Xmx1g is likely to cause
problems.

On 23/02/2013 11:35 PM, andre silva wrote:
> Hi,
>
> I really hope someone can help me with this..
> I'm trying to execute a JUnit launcher and I keep getting:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> I've tried everything from low and high values on each variable:
> -Xms
> -Xmx
> -XX:PermSize
> -XX:MaxPermSize
>
> both on eclipse.ini and on the launcher VM parameters.
> I'm running out of options.
> Does anyone have any idea on what might be the problem?
>
> Important note: What I'm trying to execute is not really a junit, but
> a cucumber feature with the cucumber eclipse plugin
> cukes.info/cucumber-eclipse.
>
> help please... :(
Re: launcher Could not reserve enough space for object heap [message #1013746 is a reply to message #1013481] Sun, 24 February 2013 01:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26007
Registered: July 2009
Senior Member
Andre,

The -Xmx option controls that. If you have a 32 bit JVM you have to be
careful not to make it larger than the largest possible heap possible on
the 32 bit JVM. Significantly larger than -Xmx1g is likely to cause
problems.

On 23/02/2013 11:35 PM, andre silva wrote:
> Hi,
>
> I really hope someone can help me with this..
> I'm trying to execute a JUnit launcher and I keep getting:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> I've tried everything from low and high values on each variable:
> -Xms
> -Xmx
> -XX:PermSize
> -XX:MaxPermSize
>
> both on eclipse.ini and on the launcher VM parameters.
> I'm running out of options.
> Does anyone have any idea on what might be the problem?
>
> Important note: What I'm trying to execute is not really a junit, but
> a cucumber feature with the cucumber eclipse plugin
> cukes.info/cucumber-eclipse.
>
> help please... :(
Re: launcher Could not reserve enough space for object heap [message #1013751 is a reply to message #1013481] Sun, 24 February 2013 01:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26007
Registered: July 2009
Senior Member
Andre,

The -Xmx option controls that. If you have a 32 bit JVM you have to be
careful not to make it larger than the largest possible heap possible on
the 32 bit JVM. Significantly larger than -Xmx1g is likely to cause
problems.

On 23/02/2013 11:35 PM, andre silva wrote:
> Hi,
>
> I really hope someone can help me with this..
> I'm trying to execute a JUnit launcher and I keep getting:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> I've tried everything from low and high values on each variable:
> -Xms
> -Xmx
> -XX:PermSize
> -XX:MaxPermSize
>
> both on eclipse.ini and on the launcher VM parameters.
> I'm running out of options.
> Does anyone have any idea on what might be the problem?
>
> Important note: What I'm trying to execute is not really a junit, but
> a cucumber feature with the cucumber eclipse plugin
> cukes.info/cucumber-eclipse.
>
> help please... :(
Re: launcher Could not reserve enough space for object heap [message #1013756 is a reply to message #1013481] Sun, 24 February 2013 01:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26007
Registered: July 2009
Senior Member
Andre,

The -Xmx option controls that. If you have a 32 bit JVM you have to be
careful not to make it larger than the largest possible heap possible on
the 32 bit JVM. Significantly larger than -Xmx1g is likely to cause
problems.

On 23/02/2013 11:35 PM, andre silva wrote:
> Hi,
>
> I really hope someone can help me with this..
> I'm trying to execute a JUnit launcher and I keep getting:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> I've tried everything from low and high values on each variable:
> -Xms
> -Xmx
> -XX:PermSize
> -XX:MaxPermSize
>
> both on eclipse.ini and on the launcher VM parameters.
> I'm running out of options.
> Does anyone have any idea on what might be the problem?
>
> Important note: What I'm trying to execute is not really a junit, but
> a cucumber feature with the cucumber eclipse plugin
> cukes.info/cucumber-eclipse.
>
> help please... :(
Re: launcher Could not reserve enough space for object heap [message #1013813 is a reply to message #1013687] Sun, 24 February 2013 06:34 Go to previous message
andre silva is currently offline andre silva
Messages: 2
Registered: February 2013
Junior Member
Thanks Ed,

I'm aware of that. My problem was not knowing where those values were actually configured.
I only knew the eclipse.ini file and the launcher vm parameters, but there is another place where these values can be configured. The eclipse JRE configuration has an option named default VM parameters. The invalid values where configured there.
Problem solved.

Thanks Ed.
Previous Topic:Eclipse and Codeblocks
Next Topic:"Prompt for workplace on startup" always doesn't work
Goto Forum:
  


Current Time: Wed Aug 27 07:04:04 EDT 2014

Powered by FUDForum. Page generated in 0.02154 seconds