• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JVM memory limitation

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic