jprofiler远程分析操作

王大爷 2022年04月23日 376次浏览

使用JProfiler工具远程对服务器上的 Java 应用进行分析

简介

通过使用JProfiler工具,可以轻松对运行在服务器上的应用进行堆栈的分析

材料准备

  1. jprofiler_linux_11_1_4.tar.gz 【下载地址:https://download-gcdn.ej-technologies.com/jprofiler/jprofiler_linux_11_1_4.tar.gz】
  2. jprofiler_windows-x64_11_1_4.exe【下载地址:https://download-gcdn.ej-technologies.com/jprofiler/jprofiler_windows-x64_11_1_4.exe】
  3. 运行在服务器上的 应用A
温馨提示:
	1. jprofiler官方地址:https://www.ej-technologies.com/download/jprofiler/version_62
  • 1
  • 2

操作步骤

  1. 首先需要在自己电脑上安装 JProfiler 应用。

  2. 下载 jprofiler_linux_6_2_4.tar.gz 并上传到 应用A 运行所在的服务器上,并解压;(注意需要与上面的版本一致)

  3. 进入解压目录的bin目录下

    在这里插入图片描述

  4. 执行文件

    ./jpenable
    
    • 1

在这里插入图片描述

  1. 根据提示选择需要远程分析的应用

在这里插入图片描述

  1. 到这里服务器上的jpenable客户端已经运行好,接下来就是远程查看该客户端监控的数据

  2. 在自己电脑打开 刚才安装的 jprofiler_windows-x64_11_1_4.exe 应用

  3. 选择 StartCenter

在这里插入图片描述

  1. 选择 New Session --> New Session

在这里插入图片描述

  1. 选择 Profiled JVM --> Attach --> Attach to remote JVM

在这里插入图片描述

  1. 输入 远程服务器的 IP ,以及监听端口

在这里插入图片描述

  1. 最后点击OK 即可

在这里插入图片描述