zoukankan      html  css  js  c++  java
  • 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~大功告成

  • 相关阅读:
    AJAX局部刷新
    jquery 调用数据
    java 节点流(字符流,字节流)和包装流(缓冲流,转换流)
    java File类的使用以及一些函数
    java 自定义泛型
    java 注解
    jdbc baseDAO 以及 每个类的继承
    jdbc 事物 commit 和rollback方法
    jdbc 可处理数据库事物的通用增删查改函数
    jdbc 数据库批处理insert操作
  • 原文地址:https://www.cnblogs.com/miraclespace/p/3712395.html
Copyright © 2011-2022 走看看