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

Dmytro Sheyko dmytro_sheyko at hotmail.com
Tue Sep 11 16:51:35 UTC 2012


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