Maximum Java heap size of a 32-bit JVM on a 64-bit OS

前端 未结 17 2191

The question is not about the maximum heap size on a 32-bit OS, given that 32-bit OSes have a maximum addressable memory size of 4GB, and that the JVM\'s max heap size depen

17条回答
  •  伪装坚强ぢ
    2020-11-22 07:06

    You don't specify which OS.

    Under Windows (for my application - a long running risk management application) we observed that we could go no further than 1280MB on Windows 32bit. I doubt that running a 32bit JVM under 64bit would make any difference.

    We ported the app to Linux and we are running a 32bit JVM on 64bit hardware and have had a 2.2GB VM running pretty easily.

    The biggest problem you may have is GC depending on what you are using memory for.

提交回复
热议问题