-
Sub-task
-
Resolution: Won't Fix
-
P4
-
None
-
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.
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
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.
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
- duplicates
-
JDK-8200170 Management Guide update : Add --start-management-agent flag as a syntactic alternative for -Dcom.sun.management.jmxremote.* properties
-
- Closed
-