/jdk/src/share/sample/jmx/jmx-scandir/src/etc/management.properties

https://github.com/Morriar/ProxyJDK · Properties File · 273 lines · 5 code · 28 blank · 240 comment · 0 complexity · 2101b1825e1e35ee3ccc8d0138b1e127 MD5 · raw file

  1. #####################################################################
  2. # Default Configuration File for Java Platform Management
  3. #####################################################################
  4. #
  5. # The Management Configuration file (in java.util.Properties format)
  6. # will be read if one of the following system properties is set:
  7. # -Dcom.sun.management.jmxremote.port=<port-number>
  8. # or -Dcom.sun.management.snmp.port=<port-number>
  9. # or -Dcom.sun.management.config.file=<this-file>
  10. #
  11. # The default Management Configuration file is:
  12. #
  13. # $JRE/lib/management/management.properties
  14. #
  15. # Another location for the Management Configuration File can be specified
  16. # by the following property on the Java command line:
  17. #
  18. # -Dcom.sun.management.config.file=<this-file>
  19. #
  20. # If -Dcom.sun.management.config.file=<this-file> is set, the port
  21. # number for the management agent can be specified in the config file
  22. # using the following lines:
  23. #
  24. # ################ Management Agent Port #########################
  25. #
  26. # For setting the JMX RMI agent port use the following line
  27. com.sun.management.jmxremote.port=4545
  28. #
  29. # For setting the SNMP agent port use the following line
  30. # com.sun.management.snmp.port=<port-number>
  31. #####################################################################
  32. # Optional Instrumentation
  33. #####################################################################
  34. #
  35. # By default only the basic instrumentation with low overhead is on.
  36. # The following properties allow to selectively turn on optional
  37. # instrumentation which are off by default and may have some
  38. # additional overhead.
  39. #
  40. # com.sun.management.enableThreadContentionMonitoring
  41. #
  42. # This option enables thread contention monitoring if the
  43. # Java virtual machine supports such instrumentation.
  44. # Refer to the specification for the java.lang.management.ThreadMBean
  45. # interface - see isThreadContentionMonitoringSupported() method.
  46. #
  47. # To enable thread contention monitoring, uncomment the following line
  48. # com.sun.management.enableThreadContentionMonitoring
  49. #####################################################################
  50. # SNMP Management Properties
  51. #####################################################################
  52. #
  53. # If the system property -Dcom.sun.management.snmp.port=<port-number>
  54. # is set then
  55. # - The SNMP agent (with the Java virtual machine MIB) is started
  56. # that listens on the specified port for incoming SNMP requests.
  57. # - the following properties for read for SNMP management.
  58. #
  59. # The configuration can be specified only at startup time.
  60. # Later changes to the above system property (e.g. via setProperty method), this
  61. # config file, or the ACL file has no effect to the running SNMP agent.
  62. #
  63. #
  64. # ##################### SNMP Trap Port #########################
  65. #
  66. # com.sun.management.snmp.trap=<trap-destination-port-number>
  67. # Specifies the remote port number at which managers are expected
  68. # to listen for trap. For each host defined in the ACL file,
  69. # the SNMP agent will send traps at <host>:<trap-destination-port-number>
  70. # Default for this property is 162.
  71. #
  72. # To set port for sending traps to a different port use the following line
  73. # com.sun.management.snmp.trap=<trap-destination-port-number>
  74. #
  75. # ################ SNMP listen interface #########################
  76. #
  77. # com.sun.management.snmp.interface=<InetAddress>
  78. # Specifies the local interface on which the SNMP agent will bind.
  79. # This is usefull when running on machines which have several
  80. # interfaces defined. It makes it possible to listen to a specific
  81. # subnet accessible through that interface.
  82. # Default for this property is "localhost".
  83. #
  84. # The format of the value for that property is any string accepted
  85. # by java.net.InetAddress.getByName(String).
  86. #
  87. # For restricting the port on which SNMP agent listens use the following line
  88. # com.sun.management.snmp.interface=<InetAddress>
  89. #
  90. # #################### SNMP ACL file #########################
  91. #
  92. # com.sun.management.snmp.acl=true|false
  93. # Default for this property is true. (Case for true/false ignored)
  94. # If this property is specified as false then the ACL file
  95. # is not checked: all manager hosts are allowed all access.
  96. #
  97. # For SNMP without checking ACL file uncomment the following line
  98. # com.sun.management.snmp.acl=false
  99. #
  100. # com.sun.management.snmp.acl.file=filepath
  101. # Specifies location for ACL file
  102. # This is optional - default location is
  103. # $JRE/lib/management/snmp.acl
  104. #
  105. # If the property "com.sun.management.snmp.acl" is set to false,
  106. # then this property and the ACL file are ignored.
  107. # Otherwise the ACL file must exist and be in the valid format.
  108. # If the ACL file is empty or non existent then no access is allowed.
  109. #
  110. # The SNMP agent will read the ACL file at startup time.
  111. # Modification to the ACL file has no effect to any running SNMP
  112. # agents which read that ACL file at startup.
  113. #
  114. # For a non-default acl file location use the following line
  115. # com.sun.management.snmp.acl.file=filepath
  116. #####################################################################
  117. # RMI Management Properties
  118. #####################################################################
  119. #
  120. # If system property -Dcom.sun.management.jmxremote.port=<port-number>
  121. # is set then
  122. # - A MBean server is started
  123. # - JRE Platform MBeans are registered in the MBean server
  124. # - RMI connector is published in a private readonly registry at
  125. # specified port using a well known name, "jmxrmi"
  126. # - the following properties are read for JMX remote management.
  127. #
  128. # The configuration can be specified only at startup time.
  129. # Later changes to above system property (e.g. via setProperty method),
  130. # this config file, the password file, or the access file have no effect to the
  131. # running MBean server, the connector, or the registry.
  132. #
  133. #
  134. # ###################### RMI SSL #############################
  135. #
  136. # com.sun.management.jmxremote.ssl=true|false
  137. # Default for this property is true. (Case for true/false ignored)
  138. # If this property is specified as false then SSL is not used.
  139. #
  140. # For RMI monitoring without SSL use the following line
  141. # com.sun.management.jmxremote.ssl=false
  142. # com.sun.management.jmxremote.ssl.enabled.cipher.suites=<cipher-suites>
  143. # The value of this property is a string that is a comma-separated list
  144. # of SSL/TLS cipher suites to enable. This property can be specified in
  145. # conjunction with the previous property "com.sun.management.jmxremote.ssl"
  146. # in order to control which particular SSL/TLS cipher suites are enabled
  147. # for use by accepted connections. If this property is not specified then
  148. # the SSL/TLS RMI Server Socket Factory uses the SSL/TLS cipher suites that
  149. # are enabled by default.
  150. #
  151. # com.sun.management.jmxremote.ssl.enabled.protocols=<protocol-versions>
  152. # The value of this property is a string that is a comma-separated list
  153. # of SSL/TLS protocol versions to enable. This property can be specified in
  154. # conjunction with the previous property "com.sun.management.jmxremote.ssl"
  155. # in order to control which particular SSL/TLS protocol versions are
  156. # enabled for use by accepted connections. If this property is not
  157. # specified then the SSL/TLS RMI Server Socket Factory uses the SSL/TLS
  158. # protocol versions that are enabled by default.
  159. #
  160. # com.sun.management.jmxremote.ssl.need.client.auth=true|false
  161. # Default for this property is false. (Case for true/false ignored)
  162. # If this property is specified as true in conjunction with the previous
  163. # property "com.sun.management.jmxremote.ssl" then the SSL/TLS RMI Server
  164. # Socket Factory will require client authentication.
  165. #
  166. # For RMI monitoring with SSL client authentication use the following line
  167. com.sun.management.jmxremote.ssl.need.client.auth=true
  168. # com.sun.management.jmxremote.registry.ssl=true|false
  169. # Default for this property is false. (Case for true/false ignored)
  170. # If this property is specified as true then the RMI registry used
  171. # to bind the RMIServer remote object is protected with SSL/TLS
  172. # RMI Socket Factories that can be configured with the properties:
  173. # com.sun.management.jmxremote.ssl.enabled.cipher.suites
  174. # com.sun.management.jmxremote.ssl.enabled.protocols
  175. # com.sun.management.jmxremote.ssl.need.client.auth
  176. # If the two properties below are true at the same time, i.e.
  177. # com.sun.management.jmxremote.ssl=true
  178. # com.sun.management.jmxremote.registry.ssl=true
  179. # then the RMIServer remote object and the RMI registry are
  180. # both exported with the same SSL/TLS RMI Socket Factories.
  181. #
  182. # For using an SSL/TLS protected RMI registry use the following line
  183. com.sun.management.jmxremote.registry.ssl=true
  184. #
  185. # ################ RMI User authentication ################
  186. #
  187. # com.sun.management.jmxremote.authenticate=true|false
  188. # Default for this property is true. (Case for true/false ignored)
  189. # If this property is specified as false then no authentication is
  190. # performed and all users are allowed all access.
  191. #
  192. # For RMI monitoring without any checking use the following line
  193. # com.sun.management.jmxremote.authenticate=false
  194. #
  195. # ################ RMI Login configuration ###################
  196. #
  197. # com.sun.management.jmxremote.login.config=<config-name>
  198. # Specifies the name of a JAAS login configuration entry to use when
  199. # authenticating users of RMI monitoring.
  200. #
  201. # Setting this property is optional - the default login configuration
  202. # specifies a file-based authentication that uses the password file.
  203. #
  204. # When using this property to override the default login configuration
  205. # then the named configuration entry must be in a file that gets loaded
  206. # by JAAS. In addition, the login module(s) specified in the configuration
  207. # should use the name and/or password callbacks to acquire the user's
  208. # credentials. See the NameCallback and PasswordCallback classes in the
  209. # javax.security.auth.callback package for more details.
  210. #
  211. # If the property "com.sun.management.jmxremote.authenticate" is set to
  212. # false, then this property and the password & access files are ignored.
  213. #
  214. # For a non-default login configuration use the following line
  215. # com.sun.management.jmxremote.login.config=<config-name>
  216. #
  217. # ################ RMI Password file location ##################
  218. #
  219. # com.sun.management.jmxremote.password.file=filepath
  220. # Specifies location for password file
  221. # This is optional - default location is
  222. # $JRE/lib/management/jmxremote.password
  223. #
  224. # If the property "com.sun.management.jmxremote.authenticate" is set to
  225. # false, then this property and the password & access files are ignored.
  226. # Otherwise the password file must exist and be in the valid format.
  227. # If the password file is empty or non-existent then no access is allowed.
  228. #
  229. # For a non-default password file location use the following line
  230. com.sun.management.jmxremote.password.file=src/etc/password.properties
  231. #
  232. # ################ RMI Access file location #####################
  233. #
  234. # com.sun.management.jmxremote.access.file=filepath
  235. # Specifies location for access file
  236. # This is optional - default location is
  237. # $JRE/lib/management/jmxremote.access
  238. #
  239. # If the property "com.sun.management.jmxremote.authenticate" is set to
  240. # false, then this property and the password & access files are ignored.
  241. # Otherwise, the access file must exist and be in the valid format.
  242. # If the access file is empty or non-existent then no access is allowed.
  243. #
  244. # For a non-default password file location use the following line
  245. com.sun.management.jmxremote.access.file=src/etc/access.properties