Make sure that this file remains protected. Login information relevant to admin user name įor this domain stored at No domain initializers found, bypassing customization stepĭomain gerardnico_domain admin port is 4848.ĭomain gerardnico_domain admin user is "admin". Using default port 9009 for JAVA_DEBUGGER.ĭistinguished Name of the self-signed X.509 Server Certificate is: Oracle GlassFish Server 3.0.F:\glassfish3\glassfish\bin\asadmin.bat -user admin -passwordfile - create-domain -savelogin -checkports=false.Oracle GlassFish Server 3.0.1 Administration Guide - To Delete JVM Options.I can't reproduce that, maybe it helps to set only one value at a time or to wrap param and value in quotation marks. They aren't, the GlassFish administration and asadmin are 99,9% equal in GlassFish 3 and 4. I'm referring to GF 4.0, so links to the 3.0.1 admin guide are Try for yourself to see the different messages. It outputs human-readable messages like this: deleted 1 option(s)Ĭommand delete-jvm-options executed successfully.Ĭommand create-jvm-options executed successfully. How does asadmin tell me this (return code, output. You could also write a script which tries to delete the value by increasing the parameter ( 192m, 193m, 194m and so on), but that would take a long time to complete. Why should it have the value 193m if you didn't set that before (and then you probably know it)? And if it has this value, yes you are right, you would have to parse the output of list-jvm-options to find it out. Therefore I would have to parse the output of asadmin In order to delete option I have to know both key and value (what do Iĭo if the option set is -XX:MaxPermSize=193m -> it won't be deleted,īut asadmin will produce a second option (the order is unclear), If you try to delete an option which doesn't exist, asadmin will tell you that no option was deleted because it didn't exist. The asadmin command tells you if it has successfully added or deleted an option. List-jvm-options before and after adding options, do I? Really have to parse and evaluate the output of asadmin Whether I have to restart the domain? Same question here: I don't How do I find out whether the options have been added or not, i.e. I guess this problem is obsolete if you follow the above instructions. I don't really have to parseĪnd evaluate the output of asadmin list-jvm-options, do I? Option is already present, the another value is specified, the valuesĪre both present (-> which one is used?). With the same value, asadmin create-jvm-options complains that the How to overwrite existing options? If the option name is specified Then add the option again with the new value: asadmin create-jvm-options '-XX\:MaxPermSize=1024m'Ī restart of the server is always required after changing JVM options. You have to delete the JVM option with asadmin delete-jvm-options: asadmin delete-jvm-options '-XX\:MaxPermSize=192m' whether I have to restart the domain? Same question here: I don't really have to parse and evaluate the output of asadmin list-jvm-options before and after adding options, do I? I don't really have to parse and evaluate the output of asadmin list-jvm-options, do I? How to overwrite existing options? If the option name is specified with the same value, asadmin create-jvm-options complains that the option is already present, the another value is specified, the values are both present (-> which one is used?). Invoking asadmin create-jvm-options -XX\:MaxPermSize=1024m:-Xmx4096 adds the two options without removing \ which (correctly) prevents the (wrong) option to be recognized. It is explained to escape : with \, though. Of course the examples don't include the interesting and pedagogical important case of adding options containing : and options starting with -XX instead of -D. The glassfish administation guide states that JVM options ought to be added with asadmin create-jvm-options -Dkey=value:-Dkey=value (, S.
0 Comments
Leave a Reply. |