• Post Reply Bookmark Topic Watch Topic
  • New Topic

JVM Xmx limit of 2GB

 
Adam Brown
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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 ]
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!