• Jprofiler配置



    客户端

    1、解压jprofiler_windows_6_2.zip
    2、输入sn
    3、选择 an application on remote computer
    4、根据远程计算机的配置next到最后一步会有一个界面如下:记住-agentpath那一行后面使用


    ————————————————————————
    Integration type: [Generic application]
    Selected JVM: Sun 1.6.0 (hotspot)
    Startup mode: Wait for a connection from the JProfiler GUI


    (1) Please insert


    -agentpath:/home/jprofiler6/bin/linux-x64/libjprofilerti.so=port=8849


    into the start command of your remote application right after the java command.


    A remote session named Remote application on 1231 will be created that connects to a running instance of the remote application that is started with the modified start command.
    ——————————————————————————


    服务器端
    下载了jprofiler_linux_6_2_4.sh
    1、因为linux下没有图形界面加了参数-c
      sh jprofiler_linux_6_2_4.sh -c
      安装成功后;
    2、修改tomcat/bin下的catalin.sh  增加下面这行:
      CATALINA_OPTS="$CATALINA_OPTS $JPDA_OPTS -agentpath:/home/jprofiler6/bin/linux-x64/libjprofilerti.so=port=8849"
    3、修改环境变量:
      export LD_LIBRARY_PATH=/home/jprofiler6/bin/linux-x86


    Ok配置完成。
    开始使用jprofiler了~
    1、linux机器启动tomcat
    2、在自己的机器上启动jprofiler。
    3、ok~大功告成

  • 相关阅读:
    泛型冒泡排序继承IComparable接口
    C#中枚举与位枚举的区别和使用
    C#中把二维数组转为一维数组
    一维数组的冒泡排序
    C#控制台的两个二维数组相加
    vs2019连接MySql的连接字符串
    Ajax方法请求WebService实现多级联动
    kafka-manager无法启动解决方法
    SQL优化————Insert
    读写锁
  • 原文地址:https://www.cnblogs.com/miraclespace/p/3712395.html
Copyright © 2020-2023  润新知