-Xmx---m getting smaller and smaller  
Author Message
Don Leckie





PostPosted: 2008-5-25 10:03:00 Top

java-programmer, -Xmx---m getting smaller and smaller 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





PostPosted: 2008-5-25 13:47:00 Top

java-programmer >> -Xmx---m getting smaller and smaller 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.

Don Leckie wrote:
>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

--
Daniel @ [www.littletutorials.com]
Language is froth on the surface of thought

 
Mark Space





PostPosted: 2008-5-25 14:16:00 Top

java-programmer >> -Xmx---m getting smaller and smaller Don Leckie wrote:

>
> 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?
 
 
Kenneth P. Turvey





PostPosted: 2008-5-25 14:58:00 Top

java-programmer >> -Xmx---m getting smaller and smaller On Sun, 25 May 2008 05:47:25 +0000, danielstoner wrote:

>>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?

--
Kenneth P. Turvey <email***@***.com>
http://www.electricsenator.net

/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL AND NEWS
/ \
 
 
Don Leckie





PostPosted: 2008-5-25 20:05:00 Top

java-programmer >> -Xmx---m getting smaller and smaller Mark Space <email***@***.com> wrote in
news:Du7_j.6086$email***@***.com:

> Don Leckie wrote:
>
>>
>> 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
 
 
Don Leckie





PostPosted: 2008-5-25 20:12:00 Top

java-programmer >> -Xmx---m getting smaller and smaller "danielstoner" <u43811@uwe> wrote in news:84aa502e4704c@uwe:

> 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.
>
> Don Leckie wrote:
>>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
>

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
 
 
Don Leckie





PostPosted: 2008-5-25 20:37:00 Top

java-programmer >> -Xmx---m getting smaller and smaller "Kenneth P. Turvey" <email***@***.com> wrote in news:48390e15$0
$2953$email***@***.com:

> On Sun, 25 May 2008 05:47:25 +0000, danielstoner wrote:
>
>>>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?
>

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
 
 
Roedy Green





PostPosted: 2008-5-26 17:10:00 Top

java-programmer >> -Xmx---m getting smaller and smaller On Sat, 24 May 2008 21:02:47 -0500, Don Leckie <email***@***.com>
wrote, quoted or indirectly quoted someone who said :

> 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 ....
--

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