users@glassfish.java.net

Re: asadmin multimode question

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Wed, 09 Jan 2013 12:42:08 -0800

On 1/9/13 10:32 AM, Laird Nelson wrote:
> On Wed, Jan 9, 2013 at 10:24 AM, Noah White <emailnbw_at_gmail.com
> <mailto:emailnbw_at_gmail.com>> wrote:
>
> If you need something hearty your best bet would probably be to
> have a ReST client read in a cmd file and use the ReST admin
> interface. Then you could have more fine grain control on the
> results of each cmd.
>
>
> That's a good point; thanks. (I'm just looking to automate in this
> case the creation of JVM options--unfortunately you have to know if
> they're present and what their value is to change them. For example,
> you can't just say: "please replace whatever max memory setting is
> already specified with -Xmx1024m", you have to say "delete -Xmx512m"
> and then "add -Xmx1024m". If instead what's present is (say)
> -Xmx256m, then just by using multimode you'll have two JVM memory
> options set.)
That's terrible! Can you file an issue on -Xmx handling?
>
> Best,
> Laird
>
> --
> http://about.me/lairdnelson