[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: where to set the JAVA_OPTS for Max memory allocated

jaikiran do-not-reply at jboss.com
Wed Nov 12 08:41:24 EST 2008


"gan.gary" wrote : Thanks. why ? Any difference?

Those parameters are passed to the JVM. The run.bat (or the run.sh) is responsible for instantiating the JVM. These scripts do not look into the environment variables for JVM options. So you either have to change those scripts yourself to pick the values from environment variables or just (the easier and better way) is to set it directly in the run.bat.

The other reason why i don't set such parameters as environment variables is, these parameters are per JVM and need not be per user or per system. So it makes sense to have them set in the script which instantiates the JVM. Infact, i don't even set the JAVA_HOME as an environment variable, given that i have more than one java installation on my system.
  

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188782#4188782

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188782



More information about the jboss-user mailing list