Java虚拟机性能管理神器 - VisualVM 插件安装与更新路径配置

Posted sunshine_kaka

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Java虚拟机性能管理神器 - VisualVM 插件安装与更新路径配置相关的知识,希望对你有一定的参考价值。

Java虚拟机性能管理神器 - VisualVM(3)  插件安装与更新路径配置

    

    插件路径地址配置方法:

VisualVM打开后,会发现功能比较单一,只有概述、监视、线程、抽样器、Profiler五个选项卡,只能对JVM进行内存和线程的基础监控和分析。

技术分享

 

VisualVM为了能对JVM进行全面的分析和监控,我们打开【工具】菜单【插件】选项,VisualVM本来提供很多插件,而这些插件却下载不了,打开插件功能,提示可用插件为0.

技术分享

 

如果新下载的VisualVM【插件】功能中提示可用插件没有数字,问题是出在插件中心地址域名失效,因为VisualVM默认地址是无效的,或者说在国内是错误的,所以,这里需要进行配置。在【插件】功能中,进入【设置】选项卡,选中【VisualVM 1.x.x 插件中心】点击【编辑】,然后根据下面表格中的版本和地址对应表,输入对应的插件地址。

打开Java VisualVM检查更新插件时,默认的连接连不上,通过浏览器访问之后发现默认的服务器已经404,新地址已经迁移到github,下面这个地址里面有不同版本jdk对应的插件中心地址。
https://visualvm.github.io/pluginscenters.html

 

Java VisualVM                                

 JDK 8 Update 131                                                                                                

https://visualvm.github.io/uc/8u131/updates.xml.gz                                            

JDK 8 Update 40 - 121       JDK 7 Update 79 - 80                                                                                                

https://visualvm.github.io/archive/uc/8u40/updates.xml.gz                                            

JDK 8 Update 20 - 25                                                                                                

https://visualvm.github.io/archive/uc/8u20/updates.xml.gz                                            

JDK 8 - Update 11         JDK 7 Update 60 - 76                                                                                                

https://visualvm.github.io/archive/uc/7u60/updates.xml.gz                                            

JDK 7 Update 40 - 55                                                                                                

https://visualvm.github.io/archive/uc/7u14/updates.xml.gz                                            

 JDK 7 Update 6 - 25                                                                                                

https://visualvm.github.io/archive/uc/7u6/updates.xml.gz                                            

JDK 7 Update 4 - 5                                                                                                

https://visualvm.github.io/archive/uc/7/updates.xml.gz                                            

 JDK 7 - Update 3       JDK 6 Update 30 - 45                                                                                                

https://visualvm.github.io/archive/uc/7/updates.xml.gz                                            

JDK 6 Update 23 - 29                                                                                                

https://visualvm.github.io/archive/uc/6u23/updates.xml.gz                                            

JDK 6 Update 21 - 22                                                                                                

https://visualvm.github.io/archive/uc/6u20/updates.xml.gz                                            

 JDK 6 Update 18 - 20                                                                                                

https://visualvm.github.io/archive/uc/6u18/updates.xml.gz                                            

 JDK 6 Update 14 - 17                                                                                                

https://visualvm.github.io/archive/uc/6u14/updates.xml.gz                                            

JDK 6 Update 11 - 13                                                                                                

https://visualvm.github.io/archive/uc/6u11/updates.xml.gz                                            

JDK 6 Update 7 - 10                                                                                                

https://visualvm.github.io/archive/uc/6u7/updates.xml.gz

 

VisualVM                                

                                            VisualVM 1.3.9                                        

https://visualvm.github.io/uc/release139/updates.xml.gz                                        

                                            VisualVM 1.3.8                                        

https://visualvm.github.io/archive/uc/release138/updates.xml.gz                                        

                                            VisualVM 1.3.7                                        

https://visualvm.github.io/archive/uc/release137/updates.xml.gz                                        

                                            VisualVM 1.3.6                                        

https://visualvm.github.io/archive/uc/release136/updates.xml.gz                                        

                                            VisualVM 1.3.5                                        

https://visualvm.github.io/archive/uc/release135/updates.xml.gz                                        

                                            VisualVM 1.3.4                                        

https://visualvm.github.io/archive/uc/release134/updates.xml.gz                                        

                                            VisualVM 1.3.3                                        

https://visualvm.github.io/archive/uc/release133/updates.xml.gz                                        

                                            VisualVM 1.3.2                                        

https://visualvm.github.io/archive/uc/release132/updates.xml.gz                                        

                                            VisualVM 1.3.1                                        

https://visualvm.github.io/archive/uc/release131/updates.xml.gz                                        

                                            VisualVM 1.3                                        

https://visualvm.github.io/archive/uc/release13/updates.xml.gz                                        

                                            VisualVM 1.2.2                                        

https://visualvm.github.io/archive/uc/release122/updates.xml.gz                                        

                                            VisualVM 1.2.1                                        

https://visualvm.github.io/archive/uc/release12/updates.xml.gz                                        

                                            VisualVM 1.2                                        

https://visualvm.github.io/archive/uc/release12/updates.xml.gz                                        

                                            VisualVM 1.1.1                                        

https://visualvm.github.io/archive/uc/release111/updates.xml.gz                                        

                                            VisualVM 1.1                                        

https://visualvm.github.io/archive/uc/release11/updates.xml.gz                                        

                                            VisualVM 1.0.1                                        

https://visualvm.github.io/archive/uc/release101/updates.xml.gz                                        

                                            VisualVM 1.0                                        

https://visualvm.github.io/archive/uc/release10/updates.xml.gz

确定。我们会看到【可用插件(16)】出现了(16)字样,说明能够安装的插件有16个,然后选中对应插件,点击【安装】,一路下去,就完成了。

技术分享

 

安装完成后,需要关闭VisualVM ,然后重新打开,选择一个JAVA程序,就会看到刚刚安装的插件了。

技术分享

 

 

插件信息英文地址:http://visualvm.java.net/pluginscenters.html 

 

 

其他文章:

 

Java虚拟机性能管理神器  - VisualVM(1) 简介 - JVM轻量级监控分析神器
Java虚拟机性能管理神器  - VisualVM(2) 入门
Java虚拟机性能管理神器  - VisualVM(3) 插件安装与更新路径配置
Java虚拟机性能管理神器  - VisualVM(4) - JDK版本与VisualVM版本对应关系
Java虚拟机性能管理神器  - VisualVM(5) 监控远程主机上的JAVA应用程序
Java虚拟机性能管理神器  - VisualVM(6) 排查JAVA应用程序内存泄漏
Java虚拟机性能管理神器  - VisualVM(7) 排查JAVA应用程序线程泄漏
Java虚拟机性能管理神器  - VisualVM(8) 查找JAVA应用程序耗时的方法函数
Java虚拟机性能管理神器  - VisualVM(9) 排查JAVA应用程序线程死锁

以上是关于Java虚拟机性能管理神器 - VisualVM 插件安装与更新路径配置的主要内容,如果未能解决你的问题,请参考以下文章

深入理解JVM虚拟机12:JVM性能管理神器VisualVM介绍与实战

深入理解Java虚拟机-如何利用VisualVM对高并发项目进行性能分析

深入理解java虚拟机---虚拟机工具VisualVM(十九)

深入理解java虚拟机VisualVM:多合-故障处理工具

深入理解java虚拟机VisualVM:多合-故障处理工具

使用VisualVM分析性能