Hi,
I have Windows XP SP3 with 4GB memory (I know Windows only allows apps to use
about 3.25GB.) I have no applications running. I ran System Mechanic 7 to
defrag the memory with the result of the largest contiguous block of memory
being 2.74GB.
However, everytime I started Eclipse 3.3.2, the JRE 1.6.0_04 JVM terminated
with a -1 code. I started at -Xmx1024m and continually decremented until I
reached -Xmx600m when Eclipse started okay. This morning I was running
Eclipse with -Xmx900m okay.
The only changes I made were to (1) set the system variable JAVA_HOME to
reference JDK 1.6.0_04 and replaced java.exe, javaw.exe, javaws.exe in c:
\WINDOW\System32\ with the JRE 1.6.0_04 files. They were 1.4.2_07.
Does anyone have any idea why the JVM terminates because of not enough memory
when there is more than enough contiguous memory? This is really
frustrating.
Thank you,
Don
danielstoner - 25 May 2008 06:47 GMT
The question is how many plug-ins do you have installed? You might run out of
space to load the classes. BIRT is know to do that to you.
>Hi,
>
[quoted text clipped - 18 lines]
>Thank you,
>Don

Signature
Daniel @ [www.littletutorials.com]
Language is froth on the surface of thought
Kenneth P. Turvey - 25 May 2008 07:58 GMT
>>Does anyone have any idea why the JVM terminates because of not enough
>>memory when there is more than enough contiguous memory? This is really
>>frustrating.
Does the memory really need to be contiguous under Windows? Why? With
paging of memory I didn't even know that such a thing really existed
anymore.
Page table anyone?

Signature
Kenneth P. Turvey <kt-usenet@squeakydolphin.com>
http://www.electricsenator.net
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL AND NEWS
/ \
Don Leckie - 25 May 2008 13:37 GMT
"Kenneth P. Turvey" <kt-usenet@squeakydolphin.com> wrote in news:48390e15$0
$2953$ec3e2dad@news.usenetmonster.com:
>>>Does anyone have any idea why the JVM terminates because of not enough
>>>memory when there is more than enough contiguous memory? This is really
[quoted text clipped - 5 lines]
>
> Page table anyone?
Yes. Google finds a lot of discussion about this. For years this has been
one of the biggest complaints to Sun.
BTW - From what I have read, Windows allocates memory to the JVM as more heap
space is needed when -Xms and -Xmx are NOT equal. However, when -Xms and -
Xmx are equal, Windows will allocate all the memory for the Xmx heap.
Thank you,
Don
Don Leckie - 25 May 2008 13:11 GMT
> The question is how many plug-ins do you have installed? You might run
> out of space to load the classes. BIRT is know to do that to you.
[quoted text clipped - 21 lines]
>>Thank you,
>>Don
Thank you for your suggestion. Just the standard plug-ins for basic
Eclipse plus emf-sdo-xsd and Subclipse.
The JVM terminates immediately before Eclipse can be run. Eclipse.exe
starts the JVM and then the Eclipse Java classes run in the JVM.
Thank you,
Don
Mark Space - 25 May 2008 07:15 GMT
> Does anyone have any idea why the JVM terminates because of not enough memory
> when there is more than enough contiguous memory? This is really
> frustrating.
This might be obvious but when was the last time you did a full virus
and malware scan with a good, up-to-date scanner?
Don Leckie - 25 May 2008 13:05 GMT
>> Does anyone have any idea why the JVM terminates because of not enough
>> memory when there is more than enough contiguous memory? This is
>> really frustrating.
>
> This might be obvious but when was the last time you did a full virus
> and malware scan with a good, up-to-date scanner?
Thank you for your suggestion. I have McAffe AntiVirus with automatic
updates. It's always turned on. I do a full deep scan twice a week.
Thank you,
Don
Roedy Green - 26 May 2008 10:10 GMT
> I started at -Xmx1024m
-Xmx10m means set the maximum Java heap size, in megabytes.
Java needs a lot more space than just the heap. It needs all its
native code, stackspace, disk cache ....

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com