heap size -xms and -xmx definition on a per-app basis in manifest file?

LaMothe, Ryan R Ryan.LaMothe at pnnl.gov
Tue Sep 11 17:27:59 UTC 2012


Maybe an alternative would be allowing the JVM to accept percentage requests for available memory, such as -Xms10% and -Xmx80%

__________________________________________________

Ryan LaMothe

-----Original Message-----
From: discuss-bounces at openjdk.java.net [mailto:discuss-bounces at openjdk.java.net] On Behalf Of Dmytro Sheyko
Sent: Tuesday, September 11, 2012 9:52 AM
To: fcassia at gmail.com
Cc: discuss at openjdk.java.net
Subject: RE: heap size -xms and -xmx definition on a per-app basis in manifest file?


Hi Fernando,

I believe that one of the reasons why you can't specify -Xms -Xmx parameters in jar manifest is that different platforms may require slightly different parameters (e.g. 64bit JVM may require a bit more memory than 32bit). If we could specify such parameters in a manifest, "executable jar" became bound to specific platform. And hence it's more common practice to deliver java application with platform-specific launcher (.bat/.sh/.exe/.lnk file etc) rather than as a single executable jar file.

Also you may take a look at Java web Start: you can specify memory parameters in a single jnlp file.

Regards,
Dmytro

> Date: Mon, 10 Sep 2012 10:15:43 -0300
> Subject: Re: heap size -xms and -xmx definition on a per-app basis in manifest	file?
> From: fcassia at gmail.com
> To: discuss at openjdk.java.net
> 
> On Sun, Sep 9, 2012 at 9:16 PM, Fernando Cassia <fcassia at gmail.com> wrote:
> 
> >
> > Well, after asking all this... I hope this isn´t an issue that has 
> > been already adressed. ;-)
> >
> 
> ...and if my proposal is stupid just tell me too. ;)
> 
> FC
 		 	   		  



More information about the discuss mailing list