test/jdk/sun/management/jmxremote/bootstrap/rmiregistry.properties
author asapre
Fri, 06 Apr 2018 17:27:24 +0530
changeset 49542 da62fa14a3fe
parent 47216 71c04702a3d5
permissions -rw-r--r--
8071367: JMX: Remove SNMP support Summary: Drop jdk.snmp module. Reviewed-by: alanb, mchung, dfuchs Contributed-by: amit.sapre@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#####################################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
#	Default Configuration File for Java Platform Management
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
#####################################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# The Management Configuration file (in java.util.Properties format)
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# will be read if one of the following system properties is set:
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
#    -Dcom.sun.management.jmxremote.port=<port-number>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# or -Dcom.sun.management.config.file=<this-file>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
# The default Management Configuration file is:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
#
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
    12
#       $JRE/conf/management/management.properties
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# Another location for the Management Configuration File can be specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# by the following property on the Java command line:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
#    -Dcom.sun.management.config.file=<this-file>
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
    18
#
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# If -Dcom.sun.management.config.file=<this-file> is set, the port
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
    20
# number for the management agent can be specified in the config file
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
# using the following lines:
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
    22
#
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
# ################ Management Agent Port #########################
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
    24
#
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
# For setting the JMX RMI agent port use the following line
23031
995cf5c2eb55 7195249: Some jtreg tests use hard coded ports
sla
parents: 2
diff changeset
    26
com.sun.management.jmxremote.port=${getFreePort}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#####################################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
#                   Optional Instrumentation
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#####################################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
# By default only the basic instrumentation with low overhead is on.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
# The following properties allow to selectively turn on optional
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
# instrumentation which are off by default and may have some
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
# additional overhead.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
# com.sun.management.enableThreadContentionMonitoring
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
#      This option enables thread contention monitoring if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
#      Java virtual machine supports such instrumentation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
#      Refer to the specification for the java.lang.management.ThreadMBean
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
#      interface - see isThreadContentionMonitoringSupported() method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
#
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
    45
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
# To enable thread contention monitoring, uncomment the following line
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
# com.sun.management.enableThreadContentionMonitoring
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
#####################################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
#			RMI Management Properties
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
#####################################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
# If system property -Dcom.sun.management.jmxremote.port=<port-number>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
# is set then
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
    55
#     - A MBean server is started
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
#     - JRE Platform MBeans are registered in the MBean server
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
#     - RMI connector is published  in a private readonly registry at
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
#       specified port using a well known name, "jmxrmi"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
#     - the following properties are read for JMX remote management.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
# The configuration can be specified only at startup time.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
# Later changes to above system property (e.g. via setProperty method),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
# this config file, the password file, or the access file have no effect to the
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
    64
# running MBean server, the connector, or the registry.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
# ###################### RMI SSL #############################
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
# com.sun.management.jmxremote.ssl=true|false
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
#      Default for this property is true. (Case for true/false ignored)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
#      If this property is specified as false then SSL is not used.
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
    73
#
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
# For RMI monitoring without SSL use the following line
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
# com.sun.management.jmxremote.ssl=false
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
# com.sun.management.jmxremote.ssl.enabled.cipher.suites=<cipher-suites>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
#      The value of this property is a string that is a comma-separated list
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
#      of SSL/TLS cipher suites to enable. This property can be specified in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
#      conjunction with the previous property "com.sun.management.jmxremote.ssl"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
#      in order to control which particular SSL/TLS cipher suites are enabled
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
#      for use by accepted connections. If this property is not specified then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
#      the SSL/TLS RMI Server Socket Factory uses the SSL/TLS cipher suites that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
#      are enabled by default.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
# com.sun.management.jmxremote.ssl.enabled.protocols=<protocol-versions>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
#      The value of this property is a string that is a comma-separated list
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
#      of SSL/TLS protocol versions to enable. This property can be specified in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
#      conjunction with the previous property "com.sun.management.jmxremote.ssl"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
#      in order to control which particular SSL/TLS protocol versions are
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
#      enabled for use by accepted connections. If this property is not
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
#      specified then the SSL/TLS RMI Server Socket Factory uses the SSL/TLS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
#      protocol versions that are enabled by default.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
# com.sun.management.jmxremote.ssl.need.client.auth=true|false
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
#      Default for this property is false. (Case for true/false ignored)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
#      If this property is specified as true in conjunction with the previous
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
#      property "com.sun.management.jmxremote.ssl" then the SSL/TLS RMI Server
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
#      Socket Factory will require client authentication.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
# For RMI monitoring with SSL client authentication use the following line
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
# com.sun.management.jmxremote.ssl.need.client.auth=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
# com.sun.management.jmxremote.registry.ssl=true|false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
#      Default for this property is false. (Case for true/false ignored)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
#      If this property is specified as true then the RMI registry used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
#      to bind the RMIServer remote object is protected with SSL/TLS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
#      RMI Socket Factories that can be configured with the properties:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
#          com.sun.management.jmxremote.ssl.enabled.cipher.suites
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
#          com.sun.management.jmxremote.ssl.enabled.protocols
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
#          com.sun.management.jmxremote.ssl.need.client.auth
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
#      If the two properties below are true at the same time, i.e.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
#          com.sun.management.jmxremote.ssl=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
#          com.sun.management.jmxremote.registry.ssl=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
#      then the RMIServer remote object and the RMI registry are
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
#      both exported with the same SSL/TLS RMI Socket Factories.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
# For using an SSL/TLS protected RMI registry use the following line
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
# com.sun.management.jmxremote.registry.ssl=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
# ################ RMI User authentication ################
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
# com.sun.management.jmxremote.authenticate=true|false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
#      Default for this property is true. (Case for true/false ignored)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
#      If this property is specified as false then no authentication is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
#      performed and all users are allowed all access.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
# For RMI monitoring without any checking use the following line
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
com.sun.management.jmxremote.authenticate=false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
# ################ RMI Login configuration ###################
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
# com.sun.management.jmxremote.login.config=<config-name>
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
   142
#      Specifies the name of a JAAS login configuration entry to use when
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
   143
#      authenticating users of RMI monitoring.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
#      Setting this property is optional - the default login configuration
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
#      specifies a file-based authentication that uses the password file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
#
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
   148
#      When using this property to override the default login configuration
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
   149
#      then the named configuration entry must be in a file that gets loaded
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
#      by JAAS. In addition, the login module(s) specified in the configuration
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
   151
#      should use the name and/or password callbacks to acquire the user's
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
   152
#      credentials. See the NameCallback and PasswordCallback classes in the
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
#      javax.security.auth.callback package for more details.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
#
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
   155
#      If the property "com.sun.management.jmxremote.authenticate" is set to
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
#      false, then this property and the password & access files are ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
# For a non-default login configuration use the following line
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
# com.sun.management.jmxremote.login.config=<config-name>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
# ################ RMI Password file location ##################
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
# com.sun.management.jmxremote.password.file=filepath
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
#      Specifies location for password file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
#      This is optional - default location is
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
   168
#      $JRE/conf/management/jmxremote.password
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
   169
#
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
   170
#      If the property "com.sun.management.jmxremote.authenticate" is set to
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
#      false, then this property and the password & access files are ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
#      Otherwise the password file must exist and be in the valid format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
#      If the password file is empty or non-existent then no access is allowed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
# For a non-default password file location use the following line
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
# com.sun.management.jmxremote.password.file=filepath
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
# ################ RMI Access file location #####################
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
# com.sun.management.jmxremote.access.file=filepath
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
#      Specifies location for access  file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
#      This is optional - default location is
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
   185
#      $JRE/conf/management/jmxremote.access
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
   186
#
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 23031
diff changeset
   187
#      If the property "com.sun.management.jmxremote.authenticate" is set to
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
#      false, then this property and the password & access files are ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
#      Otherwise, the access file must exist and be in the valid format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
#      If the access file is empty or non-existent then no access is allowed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
# For a non-default password file location use the following line
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
# com.sun.management.jmxremote.access.file=filepath