在linux環境下安裝jprofiler_linux_8_0_2.sh
2017-06-02 14:26
85 查看
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 ...
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 ...
相关文章推荐
- 在linux環境下安裝jprofiler_linux_8_0_2.sh
- Linux/Unix環境下的make和makefile詳解(二)
- 在linux上建jsp環境
- 在 Linux的命令行下,像在 Windows環境下 一樣操作管理文件和目錄命令_Linux 在 Linux的命令行下,像在 Windows環境下 一樣操作管理文件和目錄 命令用法详解:
- 在linux上建jsp環境
- eclipse在linux環境下安裝注意事项
- LAMP 搭建linux+apache+mysql+php7環境
- 在linux上建jsp環境
- linux下中英文環境的切換
- (教學)VC 建立 arm - linux 編譯環境。
- 營造 Linux 學習環境的好用工具 VirtualBox(转)
- 作業系統之前的程式 for stm32f4discovery (0) - 打造 linux 開發環境
- Linux/Unix環境下的make和makefile詳解
- jprofiler_linux_9_2.sh
- linux環境下掃描文件
- (原創) 如何在安裝SELinux的環境執行Quartus II? (SOC) (Quartus II) (Linux) (RedHat)
- 在linux安裝nodejs環境
- linux 用户行为审计
- Linux 传奇
- 硬件全攻略--MODEM linux内猫配置 驱动软猫