• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Java performace issue in 32 bit Red Hat

Ranch Hand
Posts: 33
Android Mac PPC Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

We are using 32 bit Red Hat Linux with 10 GB Physical Memory. JVM allows us to allocate max heap size as 2GB. But we have requirement to allocated more than 2GB. Is there any way I can allocate more heap size then 2GB.

Please help us as we are struggling with Performance issue in production

Posts: 5856
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
32-bit applications are limited to 4GB of memory. Some of that space (usually around 1GB on Linux and 2GB on Windows) is reserved for the operating system's use (for things such as file handles). The rest of the space is used by the code (the app itself and its shared libraries or DLLs) and the app's data. The heap is only one of the many data areas used by the JVM (others include the thread stacks, perm gen and C/C++ data structures used by the JVM).

The JVM heap size is limited to the largest contiguous memory block that can be allocated. On most 32-bit Linux systems this turns out to be around 2GB. On Windows it is around 1.4GB.

If you need a larger heap, you will have to move to a 64-bit operating system and run a 64-bit JVM.
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes what peter said is correct, you will not get more than 2GB of space in 32bit unix or windows system. However, on 32bit solaris machine you will get 3GB of memory.

But I would advise that you make sure that you really need memory more than 2GB. If you really do then you should go for 64bit environment.
JavaMonitor Support
Posts: 251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's some more background, and some links to additional reading http://java-monitor.com/forum/showthread.php?t=570
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic