United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6559565 : Dynamic upper memory limit please

Details
Type:
Enhancement
Submit Date:
2007-05-18
Status:
Closed
Updated Date:
2010-04-04
Project Name:
JDK
Resolved Date:
2008-05-12
Component:
hotspot
OS:
windows_xp
Sub-Component:
gc
CPU:
x86
Priority:
P4
Resolution:
Duplicate
Affected Versions:
7
Fixed Versions:

Related Reports
Duplicate:

Sub Tasks

Description
A DESCRIPTION OF THE REQUEST :
Java should have the option to automatically grow the heap without being governed by an arbitrary limit.

JUSTIFICATION :
Over the past 10 years of java development having a fixed upper memory limit has
been a pain many times over. It has been a pain on servers, fat clients and through jnlp. Just because it's not always wise to have an unbounded memory limit doesn't mean it should not be an option.

Other competing technologies do not seem to suffer these arbitrary limitations (need I name names?).

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
When using -Xmx:auto the JRE will use any available system memory for the heap.
ACTUAL -
java.lang.OutOfMemoryError

CUSTOMER SUBMITTED WORKAROUND :
Set -Xmx to the highest possible value on a particular machine. Not ideal, and can only be achived by trial and error.

                                    

Comments



Hardware and Software, Engineered to Work Together