1.

How is 32-bit JVM different from 64-bit JVM?

Answer»

64-bit JVM is used in 64-bit operating systems whereas 32-bit JVM is used for 32-bit operating systems. In 64-bit JVM, we can specify more heap size memory up to 100G when COMPARED to the 4G limit of 32-bit JVM. Java applications take more memory while running in 64-bit JVM when compared to running the same APPLICATION in 32-bit JVM. This is because of the increased size of the ORDINARY Object Pointer. However, this can be bypassed by making use of the -XXCompressedOOP option of the JVM for telling to use 32-bit pointers. Additionally, 64-bit JVM uses 12 bytes object header size and a maximum of 8 bytes of INTERNAL references whereas the 32-bit JVM uses 8 bytes headers and a maximum of 4 bytes of internal references.



Discussion

No Comment Found