Install jprofiler_linux_8_0_2.sh in the Linux environment

Source: Internet
Author: User
Tags jboss jprofiler


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 ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.