zoukankan      html  css  js  c++  java
  • jconsole、java VisualVM、jprofiler

    tomcat启动文件

    vim /usr/local/TC7_A/bin/catalina.sh

    while [ -h "$PRG" ]; do
    ls=`ls -ld "$PRG"`
    link=`expr "$ls" : '.*-> (.*)$'`
    if expr "$link" : '/.*' > /dev/null; then
    PRG="$link"
    else
    PRG=`dirname "$PRG"`/"$link"
    fi
    done

    下面加入:

    CATALINA_OPTS="$JAVA_OPTS -Djava.rmi.server.hostname=192.168.1.101 -Dcom.sun.management.jmxremote.port=9526 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -agentpath:/opt/jprofiler7/bin/linux-x86/libjprofilerti.so=port=8849"

    蓝色部分为 jprofiler配置,libjprofilerti.so路径为 opt/jprofiler7/bin/linux-x86/libjprofilerti.so

    连接端口号为8849。

    sh startup.sh && tail -f ../logs/catalina.out

    1.jconsole使用

    image image

    image image

    2.java VisualVM

    image image

    image image

    image

    2.jprofiler使用

    linux和window安装jprofiler。

    linux下解压。

    [root@centos1 opt]# tar -zxvf jprofiler_linux_7_2_3.tar.gz

    解压后文件夹为 jprofiler7

    window下按照安装步骤安装,输入注册码后使用。

    远程连接jvm

    image  image

    image image

    image

    打开远程连接

    image image

    image image

    image

  • 相关阅读:
    简单多线程创建
    ajax 实现局部页面更新
    基础分页查询解题思路
    cookie实现登录时间记录
    servlet过滤器
    jstl标签 URL智能寻找路径
    taglib遍历foreach循环list集合
    python之内置高阶函数
    python之lambda的使用
    python中的函数
  • 原文地址:https://www.cnblogs.com/stay-sober/p/4249819.html
Copyright © 2011-2022 走看看