Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8199584 JMX: Add --start-management-agent flag as a syntactic alternative for -Dcom.sun.management.jmxremote.* properties
  3. JDK-8200161

Java tool guide update : Add --start-management-agent flag as a syntactic alternative for -Dcom.sun.management.jmxremote.* properties

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Duplicate
    • Icon: P4 P4
    • 11
    • None
    • core-svc
    • None

      --start-management-agent option=value[:option=value:....]

      Starts the default management agent with semi-colon seperated list of options. Multiple values for an option should be separated by comma. The options above can also be specified as

      --start-management-agent=option=value[:option=value:....]

      Providing options above for management agent is equivalent to setting management system property via -Dproperty=value. See <link to management guide> for a list of management options.

      Below are the list of options for management agent and the equivalent -Dproperty=value flag

      | Management Option | -Dproperty=value equivalent | Allowed Values | Example |
      |--|--|--|--|
      | local | com.sun.management.jmxremote | true/false | local=true
      | configFile | com.sun.management.config.file | valid file path | configFile=/etc/config
      | port | com.sun.management.jmxremote.port | valid port | port=5567
      | host | com.sun.management.jmxremote.host | DNS name/IPaddress | host=127.0.0.1
      | rmiServerPort | com.sun.management.jmxremote.rmi.port| valid port | rmiServerPort=2356
      | rmiRegistrySsl| com.sun.management.jmxremote.registry.ssl | true/false | rmiRegistrySsl=false
      | ssl|com.sun.management.jmxremote.ssl | true/false | ssl=true
      | sslConfigFile | com.sun.management.jmxremote.ssl.config.file | valid file path | sslConfigFile=/etc/sslconfig
      | sslClientAuth | com.sun.management.jmxremote.ssl.need.client.auth | true/false | sslClientAuth=true
      | sslEnabledProtocols | com.sun.management.jmxremote.ssl.enabled.protocols | comma-separated SSL protocols | sslEnabledProtocols=SSLv2Hello,SSLv3
      | sslCipherSuites | com.sun.management.jmxremote.ssl.enabled.cipher.suites | comma-separated SSL cipher suites | sslCipherSuites=SSL_RSA_WITH_RC4_128_SHA,SSL_RSA_WITH_RC4_128_MD5
      | authenticate | com.sun.management.jmxremote.authenticate | true/false | authenticate=false
      | passwordFile | com.sun.management.jmxremote.password.file | valid file path | passowrdFile=/etc/jmxremote.password
      | accessFile | com.sun.management.jmxremote.access.file | valid file path | passowrdFile=/etc/jmxremote.access
      | loginConfig | com.sun.management.jmxremote.login.config | JAAS configuration | loginConfig=config_name
      | autodiscovery | com.sun.management.jmxremote.autodiscovery | true/false | autodiscovery=false
      | passwordToHashes | com.sun.management.jmxremote.password.toHashes | true/false | passwordToHashes=true
      | serialFilterPattern | com.sun.management.jmxremote.serial.filter.pattern | valid filter | serialFilterPattern=serial_filter_string

      Example: To start the management agent with SSL enabled and authentication disabled, the management options can be specified as,

          --start-management-agent ssl=true:authenticate=false
      or
          --start-management-agent=ssl=true:authenticate=false

            hb Harsha Wardhana B (Inactive)
            hb Harsha Wardhana B (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: