Donate Share

Java Service Wrapper

Tracker: Feature Requests

5 maxmemory with value relative to available physical ram - ID: 1741051
Last Update: Settings changed ( schlm3 )

It would be very helpful, if we could define that the wrapper sets the -Xmx
flag in some relation to the available physical ram on the system.
Our Application runs with 32MB for small business, but may require several
GB's for enterprise systems.
Since -Xmx must always be smaller that the available physical ram, we had'
to know in advance, which (absolute) maximum value is possible. We don't
want our customer to edit that setting. The Application should just use the
available memory....
I know this is a JDK-issue, but people at Sun did not fix this for 6 years
now. I think there is no hope.

I'd like some setting like:
java.system.maxmem=90%

On a small server with 512MB Ram, this would end in the JVM-setting
"-Xmx460m". A LArge Server with 8GB Ram would then become a "-Xmx7372m"
setting.


Markus Schlegel ( schlm3 ) - 2007-06-21 16:16

5

Closed

None

Leif Mortenson

None

None

Public


Comments ( 2 )




Date: 2007-10-01 18:58
Sender: mortensonProject AdminAccepting Donations


Markus,
I got this implemented for the 3.3.0 release. It will be in the Standard
and Professional editions.
It has been tested on Windows and Linix systems.

Cheers,
Leif


Date: 2007-08-13 11:02
Sender: schlm3


You may take a look at the implementation of "WinRun4J"
(http://winrun4j.sourceforge.net/) which implements this for Windows.
What you would have to look at is, that a 32-bit System has at max. 2GB
available for an Application. Also not the full 2GB might be available for
the Heap, because the VM needs a contiguous Address Space. WinRun4J does a
very good job with that (but is not suitable for Server-services).
BTW: We would also pay for the implementation of this feature.


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2009-10-28 19:13 schlm3
close_date - 2009-10-28 19:13 schlm3
assigned_to nobody 2007-10-01 18:58 mortenson