Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes JVM Maximum Heap Size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "JVM Maximum Heap Size" Watch "JVM Maximum Heap Size" New topic

JVM Maximum Heap Size

Jeff Storey
Ranch Hand

Joined: Oct 09, 2006
Posts: 118
I have an application and it supports multiple users and is rather memory intensive, so I want to be able to use all of the memory I have in my machine. I currently have over 2GB and have now found that the JVM does not let you use more than about 1.8GB. Is there any way around this limitation or do I need to start exploring the options of launching multiple JVMs and doing some load balancing.

Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
I think the 64 bit versions of the JVMs support bigger heaps.

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15092

What operating system are you using? 32-bit Windows? To use the 64-bit version of Java you must ofcourse have a 64-bit OS installed.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: JVM Maximum Heap Size
It's not a secret anymore!