I think is a duplicate of issue
https://glassfish.dev.java.net/issues/show_bug.cgi?id=6227
Please see Kedar's last comments in the issue.
thanks
Sankar
Elena Asarina wrote:
> Hello Judy
>
> For Sailfin is working such format: create-jvm-options
> \\-XX\\:SurvivorRatio=128.
>
> About help, such format "create-jvm-options -- -Xmx1024m" is working
> for cases without ":" and I believe without "="
> Is such format: create-jvm-options "-Xmx1024m:-XX:+PrintGCDetails"
> working for some cases, I don't know, for me it did not work at all.
> But my general opinion, the help doesn't clean and helpful and
> doesn't give right examples.
>
> But I think that help has to be reviewed by somebody who knows how it
> should work in all cases. I only know what works and what doesn't work
> for me. So I believe that a bug can be opened by the person who knows
> the whole picture.
>
> Thank you,
>
> Elena
>
> Judy Tang wrote:
>
>> "I've tried to use patterns from create-jvm-options help:
>> asadmin> create-jvm-options "-Xmx1024m:-XX:+PrintGCDetails"
>> asadmin> create-jvm-options -- -Xmx1024m
>> But it did not work. "
>>
>> Bug, would you like to file it so others will not go through the same
>> pain :-)
>>
>> "When format that worked for Sailfin did not work here", this worries
>> me, we can check
>> with developer.
>>
>> Thanks Elena !
>> Judy
>>
>> Elena Asarina wrote:
>>
>>> Hello Anissa and Judy,
>>>
>>> It works for me noe!!! Tank you very much.
>>>
>>> My mistake was: I did not put double quotes around the command. When
>>> format that worked for Sailfin did not work here, I've tried to use
>>> patterns from create-jvm-options help:
>>>
>>> asadmin> create-jvm-options "-Xmx1024m:-XX:+PrintGCDetails"
>>> asadmin> create-jvm-options -- -Xmx1024m
>>>
>>>
>>> But it did not work.
>>> Thank you very much,
>>>
>>> Elena
>>>
>>> Judy Tang wrote:
>>>
>>>> Good testing from both of you, now seems we narrow down to the
>>>> platform specific issue.
>>>> May be it's time to file a bug :-)
>>>>
>>>> Thanks Elena and Anissa !
>>>>
>>>> Judy
>>>> Anissa Lam wrote:
>>>>
>>>>>
>>>>> Maybe it has to do with the platform or shell ?
>>>>> I can do the following without any problem on my Mac
>>>>>
>>>>> %asadmin create-jvm-options "-XX\:MaxPermSize=192m"
>>>>> created 1 option(s)
>>>>>
>>>>> Command create-jvm-options executed successfully.
>>>>>
>>>>>
>>>>> Anissa.
>>>>>
>>>>> Elena Asarina wrote:
>>>>>
>>>>>> Hello Anisa,
>>>>>>
>>>>>> I've tried to add/delete JVM options that have ":", for example:
>>>>>> -XX:MaxPermSize=192m. I've tried different formats, including the
>>>>>> format that you've used. Also I've tried "\" before ":" . I've
>>>>>> tried the format that works for Sailfin, i.e. for example:
>>>>>> \\-XX\\:MaxPermSize=192m. Nothing worked, finally I've gave up
>>>>>> and edited domain.xml manually.
>>>>>>
>>>>>> Thank you,
>>>>>> Elena
>>>>>>
>>>>>> Anissa Lam wrote:
>>>>>>
>>>>>>> Hi Elena,
>>>>>>>
>>>>>>> I don't have promoted build 40, so i didn't try that.
>>>>>>> However, I have tried b37 and the nightly build, jvm-options
>>>>>>> command works fine for me on my Mac.
>>>>>>>
>>>>>>> ~/Awork/V3/v3/glassfish/bin 178) *asadmin create-jvm-options
>>>>>>> "-Dhttp.proxyHost=myproxy.mydomain"*
>>>>>>> created 1 option(s)
>>>>>>>
>>>>>>> Command create-jvm-options executed successfully.
>>>>>>> ~/Awork/V3/v3/glassfish/bin 179) *asadmin create-jvm-options
>>>>>>> "-Dhttp.proxyPort=8080"*
>>>>>>> created 1 option(s)
>>>>>>>
>>>>>>> Command create-jvm-options executed successfully.
>>>>>>> ~/Awork/V3/v3/glassfish/bin 180) *asadmin list-jvm-options*
>>>>>>> -Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf
>>>>>>>
>>>>>>> -XX: LogVMOutput
>>>>>>> *-Dhttp.proxyPort=8080*
>>>>>>> -XX: UnlockDiagnosticVMOptions
>>>>>>> -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
>>>>>>>
>>>>>>> -Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks
>>>>>>>
>>>>>>> -XX:NewRatio=2
>>>>>>> *-Dhttp.proxyHost=myproxy.mydomain*
>>>>>>> -Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy
>>>>>>>
>>>>>>> -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
>>>>>>> -Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks
>>>>>>>
>>>>>>> -client
>>>>>>> -Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext${path.separator}${com.sun.aas.derbyRoot}/lib
>>>>>>>
>>>>>>> -Xmx512m
>>>>>>> -Dhtml.adaptor.port=4444
>>>>>>> -XX:MaxPermSize=192m
>>>>>>> -XX:LogFile=${com.sun.aas.instanceRoot}/logs/jvm.log
>>>>>>> -Djava.endorsed.dirs=${com.sun.aas.installRoot}/lib/endorsed
>>>>>>>
>>>>>>> Command list-jvm-options executed successfully.
>>>>>>>
>>>>>>>
>>>>>>> What format does Sailfin use ? I am surprise that Sailfin will
>>>>>>> have a different format than GF.
>>>>>>> You may want to file an issue against "doc" to give more
>>>>>>> useful hints.
>>>>>>>
>>>>>>> thanks
>>>>>>> Anissa.
>>>>>>>
>>>>>>> Elena Asarina wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> I just want to say that I've tried to add/remove JVM options,
>>>>>>>> using V3 b40. I've tried to use CLI, in Admin GUI JVM
>>>>>>>> options page was absent. But CLI commands failed. CLI help did
>>>>>>>> not give any useful hints, it is hard to understand in what
>>>>>>>> format JVM options have to be presented in the command (and,
>>>>>>>> for example, format that I've used for Sailfin - doesn't
>>>>>>>> work). When I've presented JVM options in the format that was
>>>>>>>> shown in the help example, the options were not created.
>>>>>>>> Finally I've just edited domain.xml.
>>>>>>>> Thank you,
>>>>>>>>
>>>>>>>> Elena
>>>>>>>> Judy Tang wrote:
>>>>>>>>
>>>>>>>>> Hi Survivant, Yes, as Anissa mentioned this issue is reported
>>>>>>>>> in bug# 7280 show up since promoted build 37. Sill want to
>>>>>>>>> appreciate your effort. Thanks !
>>>>>>>>>
>>>>>>>>> Hi Anissa and Kedar, Thanks for your help to provide the
>>>>>>>>> workaround in the weekend :-)
>>>>>>>>>
>>>>>>>>> Judy
>>>>>>>>>
>>>>>>>>> Survivant 00 wrote:
>>>>>>>>>
>>>>>>>>>> I just want to add that I try with b34 on Windows XP, and
>>>>>>>>>> when I click on JVM Settings/JVM Options the page is blank.
>>>>>>>>>> the problem occur before b37. if that can help you.
>>>>>>>>>>
>>>>>>>>>> 2009/3/14 Kedar Mhaswade <Kedar.Mhaswade_at_sun.com
>>>>>>>>>> <mailto:Kedar.Mhaswade_at_sun.com>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Anissa Lam wrote:
>>>>>>>>>>
>>>>>>>>>> Hi Survivant,
>>>>>>>>>>
>>>>>>>>>> To set the JVM options, you can select Application
>>>>>>>>>> Server tree
>>>>>>>>>> node, then on the right hand side, select JVM Options
>>>>>>>>>> under JVM
>>>>>>>>>> Settings.
>>>>>>>>>> However, as reported in bug# 7280 the JVM Options
>>>>>>>>>> page doesn't
>>>>>>>>>> show up since promoted build 37. We are looking
>>>>>>>>>> into that.
>>>>>>>>>> Sorry to say that for the time being, you may have
>>>>>>>>>> to modify
>>>>>>>>>> glassfish/domains/domain1/config/domain.xml
>>>>>>>>>> yourself in adding
>>>>>>>>>> this JVM options.
>>>>>>>>>> I tried to see if you can use the CLI command to set
>>>>>>>>>> that, but
>>>>>>>>>> i wasn't able to have asadmin to list/get/set any of
>>>>>>>>>> the jvm
>>>>>>>>>> options.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Use asadmin create/delete/list-jvm-options command. Let
>>>>>>>>>> me know if that
>>>>>>>>>> does not for you. It should.
>>>>>>>>>>
>>>>>>>>>> -Kedar
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> The issue only exists in v3, should be fine if you
>>>>>>>>>> are using
>>>>>>>>>> v3 prelude.
>>>>>>>>>>
>>>>>>>>>> thanks
>>>>>>>>>> Anissa
>>>>>>>>>>
>>>>>>>>>> Survivant 00 wrote:
>>>>>>>>>>
>>>>>>>>>> I didn't find the tab where to configure the
>>>>>>>>>> proxy. not for
>>>>>>>>>> the update tool.. but for GF itself.
>>>>>>>>>> I saw that we can configure proxy at the
>>>>>>>>>> installation with
>>>>>>>>>> the installer.. but after the installation is
>>>>>>>>>> completed or
>>>>>>>>>> with a zip file.. how can I do that ?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 2009/3/14 Jason Lee <jasondlee_at_sun.com
>>>>>>>>>> <mailto:jasondlee_at_sun.com> <mailto:jasondlee_at_sun.com
>>>>>>>>>> <mailto:jasondlee_at_sun.com>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Mar 14, 2009, at 2:26 PM, Survivant 00 wrote:
>>>>>>>>>>
>>>>>>>>>> is this is the solution ?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> http://blogs.sun.com/jimfaut/entry/portal_setting_the_jvm_proxy
>>>>>>>>>>
>>>>>>>>>> I want hoping something in the admin gui
>>>>>>>>>> to allow that.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> It looks like that's explaining how to do that
>>>>>>>>>> in the
>>>>>>>>>> GUI. Am I
>>>>>>>>>> missing something?
>>>>>>>>>>
>>>>>>>>>> <http://www.java.com> * Jason Lee *
>>>>>>>>>>
>>>>>>>>>> Senior Java Developer
>>>>>>>>>> GlassFish Administration Console
>>>>>>>>>>
>>>>>>>>>> *Sun Microsystems, Inc.*
>>>>>>>>>> Phone x31197/+1 405-343-1964
>>>>>>>>>> Email jasondlee_at_sun.com
>>>>>>>>>> <mailto:jasondlee_at_sun.com>
>>>>>>>>>> <mailto:jasondlee_at_sun.com
>>>>>>>>>> <mailto:jasondlee_at_sun.com>>
>>>>>>>>>>
>>>>>>>>>> Blog http://blogs.sun.com/jasondlee
>>>>>>>>>> Blog http://blogs.steeplesoft.com
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> To unsubscribe, e-mail:
>>>>>>>>>> quality-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>>> <mailto:quality-unsubscribe_at_glassfish.dev.java.net> For
>>>>>>>>>> additional commands, e-mail:
>>>>>>>>>> quality-help_at_glassfish.dev.java.net
>>>>>>>>>> <mailto:quality-help_at_glassfish.dev.java.net>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> To unsubscribe, e-mail:
>>>>>>>>>> quality-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>>> <mailto:quality-unsubscribe_at_glassfish.dev.java.net>
>>>>>>>>>> For additional commands, e-mail:
>>>>>>>>>> quality-help_at_glassfish.dev.java.net
>>>>>>>>>> <mailto:quality-help_at_glassfish.dev.java.net>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> To unsubscribe, e-mail:
>>>>>>>>> quality-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>> For additional commands, e-mail:
>>>>>>>>> quality-help_at_glassfish.dev.java.net
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>
>>>>>>>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>>>>>>>> For additional commands, e-mail:
>>>>>>>> quality-help_at_glassfish.dev.java.net
>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail:
>>>>>>> quality-unsubscribe_at_glassfish.dev.java.net For additional
>>>>>>> commands, e-mail: quality-help_at_glassfish.dev.java.net
>>>>>>
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>>>
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>