JConsole connects to the platform MBean server using an RMI connector with authentication that uses the filesystem access permission. Connects to a Java virtual machine running on the local system using JConsole that is executed with the same user name. Jconsole can connect to a running JVM in 3 different ways: The Monitoring and Management Using JMX document provides detailed information on out-of-the-box remote management.Ī connection dialog box opens, whose Local tab lists any JVMs running on the local system started with the same user ID as JConsole, along with their process ID and class/argument information. Where JDK_HOME is the directory containing the JDK 5.0. For example, to enable the J2SE sample application Java2Demo for local monitoring, enter the following command: JDK_HOME/bin/java -jar JDK_HOME /demo/jfc/Java2D/Java2Demo.jar To start an application with the management agent for local monitoring, set the system property when you start the application. JConsole is a JMX-compliant GUI tool that connects to a running JVM, which started with the management agent. We will explore a few platform MBeans in the following sections. MBeans can also emit notifications when predefined events occur.Įach platform MBean has a rich set of attributes and operations such as memory usage, thread CPU usage, garbage collection statistics, and so on. The management interface of an MBean comprises a set of readable and/or writable attributes and a set of invokable operations. An MBean can represent a device, an application, or any resource that needs to be managed. Operating system on which the Java virtual machine is running.Īn MBean is a managed object that follows the design patterns conforming to the JMX specification. Runtime system of the Java virtual machine. Threading system of the Java virtual machine. Garbage collector in the Java virtual machine. Memory manager in the Java virtual machine. Memory system of the Java virtual machine. The Java platform provides a set of platform MBeans (Managed Beans) for monitoring and management of the Java virtual machine and the logging facility:Ĭlass loading system of the Java virtual machine.Ĭompilation system of the Java virtual machine. A JMX-compliant client, such as JConsole, can connect to the platform MBean server and manage the application (as well as the Java platform) using JMX technology.įigure 1: Architecture of J2SE 5.0 Monitoring and Management Support. Applications can also create their own MBeans and register them in the platform MBean server, which can serve as a single point for remote access. The instrumentation is accessible through the JMX managed bean (MBean) interfaces, which are registered in the platform MBean server. JMX provides a standard way to instrument the Java runtime environment and applications, and the JMX Remote API allows that instrumentation to be accessed remotely. The platform instrumentation provides information on performance, resource consumption, and the JVM and logging settings of applications running on the Java platform. In the 5.0 release, the Java virtual machine (JVM) is highly instrumented for monitoring and management. Manage an application's Managed Beans (MBeans)įigure 1 shows the architecture of J2SE 5.0 monitoring and management support.Control the log level of any loggers in an application.Enable or disable GC and class loading verbose tracing.It then describes how to use JConsole to access several core monitoring and management functionalities provided by the Java platform including: The article first gives an overview of the J2SE 5.0 monitoring and management architecture and how JConsole plugs into the architecture. The article describes how JConsole can be used to observe information about an application running on the Java platform. It uses the extensive instrumentation of the Java virtual machine to provide information on performance and resource consumption of applications running on the Java platform using Java Management Extension (JMX) technology. In addition, JDK 5.0 includes the Java Monitoring and Management Console ( JConsole) tool. It not only defines the management interfaces for the Java virtual machine, but also provides out-of-the-box remote monitoring and management on the Java platform and of applications that run on it. The Java 2 Platform, Standard Edition (J2SE) 5.0 release provides comprehensive monitoring and management support.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |