File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JVM memory limitation

 
Silvana Pontillo
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Karl Rearden
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic