JDK-6990484 : Dynamically sized heap
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 7
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: windows
  • CPU: x86
  • Submitted: 2010-10-08
  • Updated: 2019-02-11
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.
Other
tbdUnresolved
Related Reports
Duplicate :  
Relates :  
Description
We want to be able to support many applets at the same time. Today, applications have to define the heap up front and each applet reserves unused memory. A suggested solution for this problem is dynamically sized heap. Description: A real pain currently is that applications have to define the heap up front. Typically this means that after an app first hits OOM, it will then request way more heap than it actually needs, just to avoid another OOM. But this will often lead to long GM pauses as the heap is now 512m large and has to be crawled when it runs out of room. Also, having to specify the heap is a hit-or-miss thing. For applications that deal with lots of images, it can run out of heap very quickly. Also, if we are starting each Applet in its own VM (for robustness), then we will use system memory very quickly (even though an Applet may only need 10m heap, it will have by default 64mb or whatnot. If 10 such applets are running, then we're wasting 500m of system memory, and that won't look good for Java). Having some max like 512MB by default which can be extended via a system property is still a good idea, thus preventing a run-away program from eating all system memory.

Comments
Please also look at JDK-4408373 for some comments.
04-09-2014

Triage team: Affects GC. Forwarding to GC team for evaluation.
28-02-2014