glassfish
  1. glassfish
  2. GLASSFISH-15517

"Restart Required" when no changes are made to JVM options

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1_dev
    • Fix Version/s: None
    • Component/s: admin_gui
    • Labels:
      None

      Description

      • click: server-config - JVM setting - JVM options - Save
      • Note that no changes are made to any of the parameters.
      • Every time "Save" is clicked - "restart required" is displayed, and following is logged in the server log.

      ===============
      [#|2011-01-04T15:49:12.877-0800|WARNING|oracle-glassfish3.1|null|_ThreadID=29;_ThreadName=Thread-1;|Unprocessed event : UnprocessedChangeEvent{PropertyName=jvm-options, OldValue = [-Djava.security.policy=$

      {com.sun.aas.instanceRoot}/config/server.policy, -Dosgi.shell.telnet.maxconn=1, -XX:NewRatio=2, -Dfelix.fileinstall.poll=5000, -Djava.endorsed.dirs=${com.sun.aas.installRoot}/modules/endorsed${path.separator}${com.sun.aas.installRoot}/lib/endorsed, -Dosgi.shell.telnet.port=6666, -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory, -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, Dgosh.args=-noshutdown -c noop=true, -Djavax.management.builder.initial=com.sun.enterprise.v3.admin.AppServerMBeanServerBuilder, -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as, -XX:MaxPermSize=200m, -XX:+UnlockDiagnosticVMOptions, -Dfelix.fileinstall.bundles.startTransient=true, -Dfelix.fileinstall.dir=$

      {com.sun.aas.installRoot}/modules/autostart/, -Dfelix.fileinstall.bundles.new.start=true, -Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf, -Dosgi.shell.telnet.ip=127.0.0.1, -Dfelix.fileinstall.log.level=2, -client, -Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks, -Xmx512m, -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver, -Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks, -DANTLR_USE_DIRECT_CLASS_LOADING=true], NewValue = [], Source = GlassFishConfigBean.com.sun.enterprise.config.serverbeans.JavaConfig}, reason = Removal of: -Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf cannot take effect without server restart, Removal of: -XX:NewRatio=2 cannot take effect without server restart, Removal of: -Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy cannot take effect without server restart, Removal of: -XX:+UnlockDiagnosticVMOptions cannot take effect without server restart, Removal of: -Djavax.management.builder.initial=com.sun.enterprise.v3.admin.AppServerMBeanServerBuilder cannot take effect without server restart, Removal of: -Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks cannot take effect without server restart, Removal of: -Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks cannot take effect without server restart, Removal of: -XX:MaxPermSize=200m cannot take effect without server restart, Removal of: -client cannot take effect without server restart, Removal of: -Djava.endorsed.dirs=${com.sun.aas.installRoot}

      /modules/endorsed$

      {path.separator}${com.sun.aas.installRoot}/lib/endorsed cannot take effect without server restart, Removal of: -Xmx512m cannot take effect without server restart, Removal of: -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 cannot take effect without server restart, when = 1294184952877|#]

      [#|2011-01-04T15:49:12.950-0800|WARNING|oracle-glassfish3.1|null|_ThreadID=30;_ThreadName=Thread-1;|Unprocessed event : UnprocessedChangeEvent{PropertyName=jvm-options, OldValue = [], NewValue = [-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy, -Dosgi.shell.telnet.maxconn=1, -Dfelix.fileinstall.poll=5000, -XX:NewRatio=2, -Djava.endorsed.dirs=${com.sun.aas.installRoot}/modules/endorsed${path.separator}${com.sun.aas.installRoot}/lib/endorsed, -Dosgi.shell.telnet.port=6666, -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory, -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, Dgosh.args=-noshutdown -c noop=true, -Djavax.management.builder.initial=com.sun.enterprise.v3.admin.AppServerMBeanServerBuilder, -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as, -XX:MaxPermSize=200m, -XX:+UnlockDiagnosticVMOptions, -Dfelix.fileinstall.bundles.startTransient=true, -Dfelix.fileinstall.dir=${com.sun.aas.installRoot}/modules/autostart/, -Dfelix.fileinstall.bundles.new.start=true, -Djava.security.auth.login.config=${com.sun.aas.instanceRoot}

      /config/login.conf, -Dosgi.shell.telnet.ip=127.0.0.1, -Dfelix.fileinstall.log.level=2, -client, -Djavax.net.ssl.keyStore=$

      {com.sun.aas.instanceRoot}/config/keystore.jks, -Xmx512m, -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver, -Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}

      /config/cacerts.jks, -DANTLR_USE_DIRECT_CLASS_LOADING=true], Source = GlassFishConfigBean.com.sun.enterprise.config.serverbeans.JavaConfig}, reason = Addition of: '-Djava.security.auth.login.config=$

      {com.sun.aas.instanceRoot}/config/login.conf' cannot take effect without server restart, Addition of: '-XX:NewRatio=2' cannot take effect without server restart, Addition of: '-Djava.security.policy=${com.sun.aas.instanceRoot}

      /config/server.policy' cannot take effect without server restart, Addition of: '-XX:+UnlockDiagnosticVMOptions' cannot take effect without server restart, Addition of: '-Djavax.management.builder.initial=com.sun.enterprise.v3.admin.AppServerMBeanServerBuilder' cannot take effect without server restart, Addition of: '-Djavax.net.ssl.keyStore=$

      {com.sun.aas.instanceRoot}/config/keystore.jks' cannot take effect without server restart, Addition of: '-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}

      /config/cacerts.jks' cannot take effect without server restart, Addition of: '-XX:MaxPermSize=200m' cannot take effect without server restart, Addition of: '-client' cannot take effect without server restart, Addition of: '-Djava.endorsed.dirs=$

      {com.sun.aas.installRoot}/modules/endorsed${path.separator}${com.sun.aas.installRoot}

      /lib/endorsed' cannot take effect without server restart, Addition of: '-Xmx512m' cannot take effect without server restart, Addition of: '-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' cannot take effect without server restart, when = 1294184952949|#]
      =======================================

      • Suggestion: Optimize. Perhaps - gray out "Save" button until some config changes are made ?

      This issue may be considered as a request for enhancement / improvement.

        Activity

          People

          • Assignee:
            srinik76
            Reporter:
            Harshad Vilekar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: