没有合适的资源?快使用搜索试试~ 我知道了~
JDK17-java-se-monitoring-and-management-guide.pdf
需积分: 5 0 下载量 78 浏览量
2023-08-08
07:19:47
上传
评论
收藏 1.27MB PDF 举报
温馨提示
试读
69页
JDK17-java-se-monitoring-and-management-guide
资源推荐
资源详情
资源评论
Java Platform, Standard Edition
Monitoring and Management Guide
Release 17
F43246-02
April 2023
Java Platform, Standard Edition Monitoring and Management Guide, Release 17
F43246-02
Copyright © 2006, 2023, Oracle and/or its affiliates.
This software and related documentation are provided under a license agreement containing restrictions on
use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your
license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license,
transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse
engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is
prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If
you find any errors, please report them to us in writing.
If this is software, software documentation, data (as defined in the Federal Acquisition Regulation), or related
documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S.
Government, then the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software,
any programs embedded, installed, or activated on delivered hardware, and modifications of such programs)
and Oracle computer documentation or other Oracle data delivered to or accessed by U.S. Government end
users are "commercial computer software," "commercial computer software documentation," or "limited rights
data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental
regulations. As such, the use, reproduction, duplication, release, display, disclosure, modification, preparation
of derivative works, and/or adaptation of i) Oracle programs (including any operating system, integrated
software, any programs embedded, installed, or activated on delivered hardware, and modifications of such
programs), ii) Oracle computer documentation and/or iii) other Oracle data, is subject to the rights and
limitations specified in the license contained in the applicable contract. The terms governing the U.S.
Government's use of Oracle cloud services are defined by the applicable contract for such services. No other
rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications.
It is not developed or intended for use in any inherently dangerous applications, including applications that
may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you
shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its
safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this
software or hardware in dangerous applications.
Oracle®, Java, and MySQL are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.
Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are
used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Epyc,
and the AMD logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered
trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content, products,
and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly
disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise
set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be
responsible for any loss, costs, or damages incurred due to your access to or use of third-party content,
products, or services, except as set forth in an applicable agreement between you and Oracle.
Contents
Preface
Audience vi
Documentation Accessibility vi
Diversity and Inclusion vi
Related Documents vi
Conventions vii
1
Overview of Java SE Monitoring and Management
Key Monitoring and Management Features 1-1
Java Virtual Machine Instrumentation 1-1
Monitoring and Management API 1-1
Monitoring and Management Tools 1-2
Java Management Extensions Technology 1-2
What Are MBeans? 1-3
MBean Server 1-3
Creating and Registering MBeans 1-3
Instrumenting Applications 1-4
Platform MXBeans 1-4
Platform MBean Server 1-5
2
Monitoring and Management Using JMX Technology
Setting System Properties 2-1
Enabling the Ready-to-Use Management 2-1
Local Monitoring and Management 2-2
Local Monitoring and Management Using JConsole 2-2
Remote Monitoring and Management 2-3
Using Password Authentication 2-4
Disabling Password Authentication 2-6
Using SSL 2-6
Enabling RMI Registry Authentication 2-7
Enabling SSL Client Authentication 2-7
iii
Disabling SSL 2-8
Disabling Security 2-8
Remote Monitoring with JConsole 2-8
Remote Monitoring with JConsole with SSL Enabled 2-8
Using Password and Access Files 2-9
Password Files 2-9
Access Files 2-10
Remote Monitoring with JConsole with SSL Disabled 2-10
Ready-to-Use Monitoring and Management Properties 2-11
Configuration Errors 2-13
Connecting to the JMX Agent Programmatically 2-13
Setting Up Monitoring and Management Programmatically 2-14
Mimicking Ready-to-Use Management Using the JMX Remote API 2-15
Example of Mimicking Ready-to-Use Management 2-15
Monitoring Applications Through a Firewall 2-18
Using an Agent Class to Instrument an Application 2-18
Creating an Agent Class to Instrument an Application 2-19
3
Using JConsole
Starting JConsole 3-1
Command Syntax 3-1
Setting Up Local Monitoring 3-1
Setting Up Remote Monitoring 3-2
Setting Up Secure Remote Monitoring 3-2
Connecting to a JMX Agent 3-3
Connecting JConsole to a Local Process 3-3
Connecting JConsole to a Remote Process 3-5
Connecting Using a JMX Service URL 3-6
Presenting the JConsole Tabs 3-7
Viewing Overview Information 3-8
Saving Chart Data 3-8
Monitoring Memory Consumption 3-8
Monitoring Class Loading 3-13
Viewing VM Information 3-14
Monitoring and Managing MBeans 3-16
Creating Custom Tabs 3-25
4
Using the Platform MBean Server and Platform MXBeans
Using the Platform MBean Server 4-1
iv
Accessing Platform MXBeans 4-1
Accessing Platform MXBeans Using the ManagementFactory Class 4-1
Accessing Platform MXBeans Using an MXBean Proxy 4-2
Accessing Platform MXBeans Using the MBeanServerConnection Class 4-2
Using Oracle JDK's Platform Extension 4-3
Accessing MXBean Attributes Directly 4-3
Accessing MXBean Attributes Using MBeanServerConnection 4-3
Monitoring Thread Contention and CPU Time 4-4
Managing the Operating System 4-4
Logging Management 4-5
Detecting Low Memory 4-5
Memory Thresholds 4-5
Usage Threshold 4-6
Collection Usage Threshold 4-6
Memory MXBean 4-6
Memory Pool MXBean 4-7
Polling 4-7
Threshold Notifications 4-8
5
Java Discovery Protocol (JDP)
v
剩余68页未读,继续阅读
资源评论
weixin_40191861_zj
- 粉丝: 64
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功