jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes JVM memory limitation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JVM memory limitation" Watch "JVM memory limitation" New topic

JVM memory limitation

Silvana Pontillo

Joined: Feb 19, 2003
Posts: 2
I've installed a Java Application that uses JVM settings. I've an AIX machine with 4 GB RAM but application crash when I tell that to use up to 1 Gb. Someone told me it is a JVM limitation that I can't modify. Is it true? Someone can tell me how can I verify this information?

Advanced IT Specialist
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Heaps larger than 2GB are available starting with J2SE 1.3.1.

From Big Heaps and Intimate Shared Memory (ISM)
How did you tell it how much memory to use. You should have used
The default maximum size is 64MB.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Karl Rearden

Joined: Feb 20, 2003
Posts: 3
I am having the same problem. I am using Sun's jdk1.4.1_01 on a Linux box with 4GB RAM, and I cannot start java with a heap larger than 1.7GB without getting a memory error.
I searched around and saw something hinting that the OS swap space needs to be at least as large as the max heap size. I don't know if this is true, but I added a 2GB swap file to complement the 2GB swap partition there already, but it didn't get me anywhere.
What am I missing?
I agree. Here's the link: http://aspose.com/file-tools
subject: JVM memory limitation
It's not a secret anymore!