install jprofiler for ubuntu

1.下载jprofiler,解压tar -zxvf jprofiler7.tar.gz,执行/opt/jprofiler7/bin/jprofiler

2.系统环境变量添加:

  JPROFILER_HOME=/opt/jprofiler7

  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JPROFILER_HOME/bin/linux-x64

3.resin.xml中配置:

<class-loader>
    ...
    <tree-loader path="/opt/jprofiler7/lib"/>
    <tree-loader path="/opt/jprofiler7/bin"/>
    ...
</class-loader>
...
<server-default>
  ...
  <!--<jvm-arg>-Xbootclasspath/a:/opt/jprofiler7/bin/agent.jar</jvm-arg>-->
  <jvm-arg>-agentpath:/opt/jprofiler7/bin/linux-x64/libjprofilerti.so=port=8849,nowait</jvm-arg>
  ...
</server-default>

  参考 :

license key :http://she.iteye.com/blog/1477992

http://www.ej-technologies.com/download/jprofiler/files.html

http://andrew.fritztech.com/blog/2008/04/09/resinjprofiler5linux-a-short-howto/

原文地址:https://www.cnblogs.com/wen12128/p/2646753.html