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帮助文档->Reference->Manager sessions->Probe settings->Starting remote sessions中有详细说明