JDK-6350328 : JVM memory usage problem
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-11-15
  • Updated: 2010-04-02
  • Resolved: 2006-03-21
Related Reports
Duplicate :  
Description
A DESCRIPTION OF THE REQUEST :
The problem of the milions java developers is that there in java still unexists a way, how to enlarge the JVM memory dynamically or/and programatically. It means if there is any OutOfMemoryException so I would extend the maximum of the usable memory for JVM at least.
The best way could be the JVM would be able to increase the default memory maximum (64 MB) automatically and without any influences to application, but for the 1st possibility could be already helpfull the memory controlling system via explicit ask  from java application code - to ability do it programatically on OutOfMemoryException demands.

JUSTIFICATION :
because of big amount od java projects what gets OutOfMemoryException.
The every second project in java has theese memory problems

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
JVM dynamically increases the maximum of the memory for applications,
or JVM be able to set dynamically directly from java code.
ACTUAL -
it is neccessary to set the right value for JVM atribute -Xmxn
to specify the maximum size of the memory allocation pool once before the application was launched. It is not possible to manage the memory maximum dynamically for each amount of data loaded into my application.

CUSTOMER SUBMITTED WORKAROUND :
to set -XMX to biggest possible value what can be used, what is not easily be done, if user opens bigger amount of data than was supposed while application was lauched.