|
Re: With -Xmx951M Eclipse fails to start [message #326983 is a reply to message #326959] |
Thu, 03 April 2008 20:53 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #327005 is a reply to message #326988] |
Fri, 04 April 2008 12:58 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03506 seconds