JDK-6453956 : JVM should output some message when VM cannot get contiguous memory with big -Xmx in 1.4.2
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.4.2_12
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-07-28
  • Updated: 2014-02-27
  • Resolved: 2006-11-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
1.4.2_14 b01Fixed
When IE user sets big number to -Xmx, JVM(IE process) sometimes carshes without any information
like dialogue or console messages in 1.4.2.

  A java licensee specified -Xmx512m for 1GB physical memory in IE (WindowsXP(SP2,Japanese))
  IE process disapears without any logfile, message and dialogue.

  1) Set big number (about half of physical memory size) to -Xmx
  2) Invoke the attached test program via IE in 1.4.2
  Behaviors of crash depends on platform, PC configuration, ...etc
  Some PC can duplicate the behavior without message, but some PC
  can not..
 This problem is caused from the lack of contiguous memory. 
 When JVM fails to get contiguous memory, VM should show some information to user
 like 5.0 does.

EVALUATION This problem has two fixes - one in hotspot workspace and another in plugin workspace. In hotspot, in Threads::create_vm, VM terminates the process if it is not able to reserve the requested space, rather than suspending itself and returning an appropriate error value. Fix for 4898900 resolves this problem. In plugin, in InitializeJava(), in src/plugin/src/win32/com/iexplorer/DllServer.cpp, g_pFactory->Initialize() should not be called if VM initialization falied and g_jni is null.