• 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 Xmx limit of 2GB

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I understand that this may be a performance-newbie question, but why does the JVM have a max memory allocation setting of 2GB? I have been reading on threads that this may be different with different flavors of the JRE that run on 64-bit architectures (unfortunately I am running on 32 bit).

The reason that I ask is that I have a Java process that is servicing requests from many hosts over a several week period, and after mapping out some quick figures from some performance tests I've run - I won't be able to make it beyond about 13 days. Does anyone have some great suggestions on where I can find a good resource for Java Application performance-tuning?

Thanks in advance for your time and consideration,

Adam
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Adam Brown:
I have been reading on threads that this may be different with different flavors of the JRE that run on 64-bit architectures (unfortunately I am running on 32 bit).



Yes, this is an operating system constraint.
Your server's memory size should reach a stable point, not grow continuously. That's a symptom of a memory leak.
[ October 10, 2008: Message edited by: Joe Ess ]
 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Adam Brown:
I am running on 32 bit).



32 bit numbers range from 0 to 4GB. or from -2GB to +2GB.
There is always some cruft at the top. The exact amount depends on the OS and some design decisions they made decades ago.

If you want more than 2GB, use a 64Bit OS and JVM
 
All of the following truths are shameless lies. But what about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic