The Java Tutorials have been written for JDK 8.Java教程是为JDK 8编写的。Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.本页中描述的示例和实践没有利用后续版本中引入的改进,并且可能使用不再可用的技术。See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.有关Java SE 9及其后续版本中更新的语言特性的摘要,请参阅Java语言更改。
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.有关所有JDK版本的新功能、增强功能以及已删除或不推荐的选项的信息,请参阅JDK发行说明。
The JMX API enables you to perform remote management of your resources by using JMX technology-based connectors (JMX connectors). A JMX connector makes an MBean server accessible to remote Java technology-based clients. The client end of a connector exports essentially the same interface as the MBean server.JMX API使您能够通过使用基于JMX技术的连接器(JMX连接器)来执行资源的远程管理。JMX连接器使基于Java技术的远程客户端可以访问MBean服务器。连接器的客户端导出与MBean服务器基本相同的接口。
A JMX connector consists of a connector client and a connector server. JMX连接器由连接器客户端和连接器服务器组成。A connector server is attached to an MBean server and listens for connection requests from clients. A connector client is responsible for establishing a connection with the connector server. 连接器服务器连接到MBean服务器,并侦听来自客户端的连接请求。连接器客户端负责建立与连接器服务器的连接。A connector client is usually in a different Java Virtual Machine (Java VM) from the connector server and is often running on a different machine. The JMX API defines a standard connection protocol based on Remote Method Invocation (RMI). 连接器客户端通常位于与连接器服务器不同的Java虚拟机(Java VM)中,并且通常在不同的机器上运行。JMX API定义了一个基于远程方法调用(RMI)的标准连接协议。This protocol enables you to connect a JMX client to an MBean in an MBean server from a remote location and perform operations on the MBean, exactly as if the operations were being performed locally.该协议使您能够从远程位置将JMX客户端连接到MBean服务器中的MBean,并在MBean上执行操作,就像在本地执行操作一样。
The Java SE platform provides an out-of-the-box means to monitor applications remotely by using the JMX API's standard RMI connector. The out-of-the-box RMI connector automatically exposes applications for remote management, without requiring you to create a dedicated remote connector server yourself. Java SE平台通过使用JMX API的标准RMI连接器,提供了一种独一无二的方法来远程监控应用程序。开箱即用的RMI连接器自动公开用于远程管理的应用程序,而不需要您自己创建专用的远程连接器服务器。The out-of-the-box remote management agent is activated by starting your Java application with the correct properties. Monitoring and management applications that are compatible with the JMX technology can then connect to these applications and monitor them remotely.通过使用正确的属性启动Java应用程序,即可激活开箱即用的远程管理代理。然后,与JMX技术兼容的监控和管理应用程序可以连接到这些应用程序并远程监控它们。