Thursday, January 15, 2009

Maximum JVM Heap Size 32/64bit (For reference only)

Maximum JVM Heap Size 32/64bit
An important calculation to keep in mind is:
(Managed Heap + native heap + (thread stack size * number of threads)) cannot exceed 2GB on 32bit
x86 Windows or Linux systems
This is a limitation of the Sun Java VM. It means that even if you install 4GB of RAM into your server, a
single instance of the JVM cannot grow beyond 2GB on a 32bit server machine.
Note: Note that a 64 bit OS/JVM has much bigger values. It is recommended that a 64bit OS with large
memory hardware (>2GB assigned to the JVM) is used for deployments of >250 concurrent or >2500
casual users.
You can also setup your machine to cluster if you prefer to solve multi-user access performance issues
with additional machines rather than a single powerful server.

No comments: