This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes 32 bit JVM memory heap issue on 64 bit XP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "32 bit JVM memory heap issue on 64 bit XP" Watch "32 bit JVM memory heap issue on 64 bit XP" New topic
Author

32 bit JVM memory heap issue on 64 bit XP

manoj r patil
Ranch Hand

Joined: Jun 06, 2002
Posts: 181
My application runs perfectly alright on 32 bit XP and JVM could allocate 1.4 GB object heap size to this application. But when I run the same application (with 32 bit JVM), it could not initialize JVM. Then I tried reducing max heap size and at 1056MB, it started working!

XP 64-bit machine has 11GB RAM and 2GB virtual memory.

Does anyone any idea as what is the solution to this problem?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13884
    
  10

Why are you using the 32-bit JVM on 64-bit Windows?
Try using the 64-bit JVM.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
manoj r patil
Ranch Hand

Joined: Jun 06, 2002
Posts: 181
I can not use 64 bit JVM and the product is already out in the market and I am shipping 32 bit JRE alongwith installer itself.
 
jQuery in Action, 2nd edition
 
subject: 32 bit JVM memory heap issue on 64 bit XP
 
Similar Threads
Any concerns for large heap size? (e.g. 2GB)
Maximun Heap Size in WAS 7.0
Building appication on 64 bit O.S..Performance issue
Mamimum Value which can be allowed in -XMX Parameter
Out Of Memory Error?