zoukankan      html  css  js  c++  java
  • 在linux環境下安裝jprofiler_linux_8_0_2.sh


    1.安装jprofiler_linux_8_0_2.sh

    chmod+x jprofiler_linux_8_0_2.sh


    ./jprofiler_linux_8_0_2.sh –c

    安装过程略。。差点儿Enter究竟(也可在图形界面下安装不加-c选项,则为图形安装)


    2.编辑/etc/profile

    exportLD_LIBRARY_PATH=/opt/jprofiler8/bin/linux-x64

    exportLD_LIBRARY_PATH

    source/etc/profile


    3编辑standalone.conf


    if[ "x$JAVA_OPTS" = "x" ]; then

    JAVA_OPTS="-Xms64m-Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true-Dorg.jboss.resolver.warning=true-Dsun.rmi.dgc.client.gcInterval=3600000-Dsun.rmi.dgc.server.gcInterval=3600000"

    JAVA_OPTS="$JAVA_OPTS-Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS-Djava.awt.headless=true"

    JAVA_OPTS="$JAVA_OPTS-Djboss.server.default.config=standalone.xml"


    JAVA_OPTS="$JAVA_OPTS-agentlib:jprofilerti=port=8849-Xbootclasspath/a:/opt/jprofiler8/bin/agent.jar"

    else

    echo"JAVA_OPTS already set in environment; overriding defaultsettings with values: $JAVA_OPTS"

    fi



    4.启动jboss


    [root@localhostbin]# ./standalone.sh

    =========================================================================


    JBossBootstrap Environment


    JBOSS_HOME:/home/pyh/jboss1


    JAVA:java


    JAVA_OPTS: -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m-Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true-Dorg.jboss.resolver.warning=true-Dsun.rmi.dgc.client.gcInterval=3600000-Dsun.rmi.dgc.server.gcInterval=3600000-Djboss.modules.system.pkgs=org.jboss.byteman-Djava.awt.headless=true -Djboss.server.default.config=standalone.xml-agentlib:jprofilerti=port=8849-Xbootclasspath/a:/opt/jprofiler8/bin/agent.jar


    =========================================================================


    JProfiler>Protocol version 38

    JProfiler>Using JVMTI

    JProfiler>JVMTI version 1.1 detected.

    JProfiler>64-bit library

    JProfiler>Listening on port: 8849.

    JProfiler>Instrumenting native methods.

    JProfiler>Can retransform classes.

    JProfiler>Can retransform any class.

    JProfiler>Native library initialized

    JProfiler>VM initialized

    JProfiler>Waiting for a connection from the JProfiler GUI ...

  • 相关阅读:
    led呼吸灯
    定时器中断
    npgsql
    中断
    PAT (Advanced Level) 1128~1131:1128N皇后 1129 模拟推荐系统(set<Node>优化) 1130 中缀表达式
    PAT (Advanced Level) 1132~1135:1132 模拟 1133模拟(易超时!) 1134图 1135红黑树
    PAT (Advanced Level) 1136~1139:1136模拟 1137模拟 1138 前序中序求后序 1139模拟
    PAT (Advanced Level) 1140~1143:1140模拟 1141模拟 1142暴力 1143 BST+LCA
    PAT (Advanced Level) 1144~1147:1145Hash二次探查 1146拓扑排序 1147堆
    python实现http接口测试
  • 原文地址:https://www.cnblogs.com/jhcelue/p/6933169.html
Copyright © 2011-2022 走看看