1. Installing jprofiler_linux_8_0_2.sh
Chmod+x jprofiler_linux_8_0_2.sh
./jprofiler_linux_8_0_2.sh–c
The installation process is slightly: Almost Enter to the end (can also be installed in the graphical interface without the- C option, the graphic installation)
2. edit /etc/profile
Exportld_library_path=/opt/jprofiler8/bin/linux-x64
Exportld_library_path
Source/etc/profile
3 Edit 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. start 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 ...