wood burning stoves 2.0*
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 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JVM memory limitation" Watch "JVM memory limitation" New topic
Author

JVM memory limitation

Silvana Pontillo
Greenhorn

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


Advanced IT Specialist
Cindy Glass
"The Hood"
Sheriff

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
-Xmx1g
The default maximum size is 64MB.


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

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
 
Similar Threads
Data Limit in Application Scope of a web App.
JVM memory limitation
AJAX Technology
Any Memory Usage Limitation for Tomcat 5 or 6?
Limitation on number of threads