---
title: "JProfiler远程监控配置"
author: "jacky2007"
date: "2013-03-28T19:49:13Z"
tags: []
categories: ["编程语言"]
slug: "jprofiler"
draft: false
lastmod: "2013-03-28T19:51:00Z"
id: 1838212
url: "https://jacky2007.iteye.com/blog/1838212"
---

1、下载与客户端版本一至的JProfiler服务器程序，如我正在使用的7.1.2,http://download.ej-technologies.com/jprofiler/jprofiler\_linux\_7\_1\_2.sh

2、直接安装jprofiler\_linux\_7\_1\_2.sh -c (-c表示在命令行下安装)

3、设置环境变量 LD\_LIBRARY\_PATH={JProfiler install directory}/bin/linux-x64

4、在JAVA程序启动参数中加上以下内容：

   -agentpath:{JProfiler install directory}/bin/linux-x64/libjprofilerti.so -Xbootclasspath/a:{JProfiler install directory}/bin/agent.jar

  如 java -agentpath:{JProfiler install directory}/bin/linux-x64/libjprofilerti.so -Xbootclasspath/a:{JProfiler install directory}/bin/agent.jar test.jar

 

其实JProfiler帮助文档-&gt;Reference-&gt;Manager sessions-&gt;Probe settings-&gt;Starting remote sessions中有详细说明