JDK-4435069 : Hotspot on linux is restricted to a 2GB heap
  • Type: Enhancement
  • Status: Closed
  • Resolution: Won't Fix
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Affected Version: 1.3.0,1.3.1
  • OS: linux
  • CPU: x86
  • Submit Date: 2001-04-06
  • Updated Date: 2001-04-10
  • Resolved Date: 2001-04-10
Description
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'
 

Comments
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
2001-04-10