学历代表过去、能力代表现在、学习力代表未来

Jprofiler服务端在Linux上的安装注意事项--tomcat

上一篇 / 下一篇  2012-04-17 08:46:36 / 个人分类:性能监控

注意:安装前先用rpm -q jprofiler查询linux上是否已安装jprofiler
 
1.到官网下载linux安装包,如:jprofiler_linux_7_1_1.rpm
2.上传该安装包到linxu服务器上/opt目录下,重命名: mv jprofiler_linux_7_1_1.rpm jprofiler7.rmp
  (重命名步骤为可选操作,是为了安装时能生成简单的文件目录 jprofiler7)
3.安装: rpm -ivh jprofiler_linux_7_1_1.rpm
4.安装完毕后,在etc/profile中添加:
  #Jprofiler Conf
  JPROFILER_HOME=/opt/jprofiler7/bin/linux-x64
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JPROFILER_HOME
5.以tomcat服务为例,在catalina.sh中添加:
  #Jprofiler Conf
  JAVA_OPTS="$JAVA_OPTS -agentlib:jprofilerti=port=8849-Xbootclasspath/a:/opt/jprofiler7/bin/agent.jar"
6.在startup.sh中添加:
  #Jprofiler Conf
  CATALINA_OPTS="-agentpath:/opt/jprofiler7/bin/linux-x64/libjprofilerti.so=port=8849,nowait$CATALINA_OPTS"
export CATALINA_OPTS

TAG:

BBnight的个人空间 引用 删除 BBnight   /   2012-04-17 11:48:22
1.Jprofiler服务端和客户端的版本要完全一致
2.windows客户端安装:Start Center-New Session-Intergration Wizards-New Remote Intergration,后续按窗口提示逐步安装
BBnight的个人空间 引用 删除 BBnight   /   2012-04-17 08:56:02
linux-x64 linux-86的选择取决于Linux的版本
 

评分:0

我来说两句

Open Toolbar