Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » With -Xmx951M Eclipse fails to start
With -Xmx951M Eclipse fails to start [message #326959] Thu, 03 April 2008 17:05 Go to next message
James Garrison is currently offline James GarrisonFriend
Messages: 16
Registered: July 2009
Junior Member
Europa 3.3.2 on Windows Server 2003 with 4GB physical memory, 3GB
available.

Setting -Xmx to any value above 950M causes Eclipse to fail to start.

The following eclipse.ini works:

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
-vmargs
-Xms40M
-Xmx950M

but with -Xmx951M or greater, I get a popup "JVM teminated. Exit code=-1"
as soon as I launch Eclipse. A search of the entire Eclipse directory
structure turned up no files matching *.log.

Suggestions on how to debug?
Re: With -Xmx951M Eclipse fails to start [message #326983 is a reply to message #326959] Thu, 03 April 2008 20:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Jim Garrison wrote:
> Europa 3.3.2 on Windows Server 2003 with 4GB physical memory, 3GB
> available.
>
> Setting -Xmx to any value above 950M causes Eclipse to fail to start.
>
> The following eclipse.ini works:
>
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 512m
> -vmargs
> -Xms40M
> -Xmx950M
>
> but with -Xmx951M or greater, I get a popup "JVM teminated. Exit
> code=-1" as soon as I launch Eclipse. A search of the entire Eclipse
> directory structure turned up no files matching *.log.
>
> Suggestions on how to debug?

There is a practical limit to the maximum heap space setting that a JVM
can actually satisfy. It is related to how the JVM allocates that memory
(IIRC, it requires a contiguous block, which may or may not exist
depending on the state of your OS memory at the time).
Here is a little info about it:
http://www.eclipsezone.com/eclipse/forums/t94023.html#921445 85
There are other (more complete) references on the web, but I don't have
time to dig them up right now.

If that is indeed the problem you're bumping into, there is nothing
Eclipse can do about it.

Hope this helps,
Eric
Re: With -Xmx951M Eclipse fails to start [message #326988 is a reply to message #326959] Thu, 03 April 2008 22:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Jim Garrison" <jhg@acm.org> wrote in message
news:fd561d094cd43883697d6bc5a4bc3225$1@www.eclipse.org...
> Europa 3.3.2 on Windows Server 2003 with 4GB physical memory, 3GB
> available.
>
> Setting -Xmx to any value above 950M causes Eclipse to fail to start.
>
> The following eclipse.ini works:
>
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 512m
> -vmargs
> -Xms40M
> -Xmx950M
>
> but with -Xmx951M or greater, I get a popup "JVM teminated. Exit code=-1"
> as soon as I launch Eclipse. A search of the entire Eclipse directory
> structure turned up no files matching *.log.


What JRE are you using?

Are you sure?

Although as Eric said there's a practical limit, I routinely run
with -Xmx1024M on Sun JDK 1.5.0_13 and 1.6.0_u5, so I don't think 951M
should be a problem. I wonder about that 512M for max perm size, though,
that seems like an awful lot.

ISTR some compatibility issues between Windows Server 2003 and the Sun JDKs?
Sorry, it's a very vague recollection; you might try checking the Sun web
site for more info on OS compatibility.
Re: With -Xmx951M Eclipse fails to start [message #326990 is a reply to message #326959] Fri, 04 April 2008 00:01 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
I am using -vmArgs -Xmx1000M to start M6 and this is working for me.

Which JVM are you using?
I am using j2sdk1.4.2_08 from Sun

Darins
http://runnerwhocodes.blogspot.com

"Jim Garrison" <jhg@acm.org> wrote in message
news:fd561d094cd43883697d6bc5a4bc3225$1@www.eclipse.org...
> Europa 3.3.2 on Windows Server 2003 with 4GB physical memory, 3GB
> available.
>
> Setting -Xmx to any value above 950M causes Eclipse to fail to start.
>
> The following eclipse.ini works:
>
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 512m
> -vmargs
> -Xms40M
> -Xmx950M
>
> but with -Xmx951M or greater, I get a popup "JVM teminated. Exit code=-1"
> as soon as I launch Eclipse. A search of the entire Eclipse directory
> structure turned up no files matching *.log.
>
> Suggestions on how to debug?
>
>
>
Re: With -Xmx951M Eclipse fails to start [message #327005 is a reply to message #326988] Fri, 04 April 2008 12:58 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Walter Harley wrote:
> "Jim Garrison" <jhg@acm.org> wrote in message
> news:fd561d094cd43883697d6bc5a4bc3225$1@www.eclipse.org...
>> Europa 3.3.2 on Windows Server 2003 with 4GB physical memory, 3GB
>> available.
>>
>> Setting -Xmx to any value above 950M causes Eclipse to fail to start.
>>
>> The following eclipse.ini works:
>>
>> -showsplash
>> org.eclipse.platform
>> --launcher.XXMaxPermSize
>> 512m
>> -vmargs
>> -Xms40M
>> -Xmx950M
>>
>> but with -Xmx951M or greater, I get a popup "JVM teminated. Exit code=-1"
>> as soon as I launch Eclipse. A search of the entire Eclipse directory
>> structure turned up no files matching *.log.
>
>
> What JRE are you using?
>
> Are you sure?
>
> Although as Eric said there's a practical limit, I routinely run
> with -Xmx1024M on Sun JDK 1.5.0_13 and 1.6.0_u5, so I don't think 951M
> should be a problem. I wonder about that 512M for max perm size, though,
> that seems like an awful lot.

That may be part of the problem, as the JVM will be trying to allocate
two large contiguous blocks of memory, 950MB for heap and another 512MB
for perm gen. Jim, can you try bumping down the perm gen setting to
256MB (or even 128, which is usually enough even with a large tool set
like Eclipse+EMF+GMF+WTP)?

Eric
Previous Topic:Update Manager returns Java Result: 13
Next Topic:using keybindings, menus, and context in a fragment
Goto Forum:
  


Current Time: Mon Jan 13 17:53:23 GMT 2025

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

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

Back to the top