JDK-4435069 : Hotspot on linux is restricted to a 2GB heap
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.3.0,1.3.1
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: linux
  • CPU: x86
  • Submitted: 2001-04-06
  • Updated: 2001-04-10
  • Resolved: 2001-04-10
using Java on linux the maximum amount of memory you can use is -mx1960m, 
ie you cannot use a 2GB Java heap. Ie Java -mx2000m -version will display
an error message about lack of heap space

Part of the problem is that linux has previously had restrictions with pthreads
using a 2GB heap even though the stack space per process is 'unlimited'

EVALUATION Currently on Linux, process stack is allocated at 0xC0000000 (3G) and grows downwards, heap and other memory allocation grows upwards from 0x40000000 (1G). Stack and heap share this 2G memory address space, which means one cannot have 2G heap on current Linux. However, the whole thing could change in 64-bit Linux. We don't support 64-bit Linux, for now. hui.huang@Eng 2001-04-10