在linux環境下安裝jprofiler_linux_8_0_2.sh

來源:互聯網
上載者:User

標籤:c   style   class   java   a   color   


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


[[email protected]]# ./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 ...

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.