How do I use jtracert to analyze an application running on Glassfish?

I would like to generate sequence diagrams of a running java ee application using jtracert . How to do it?

0


source to share


1 answer


There is a Quick Start chapter on the project home page: http://code.google.com/p/jtracert/

In a few words: 1. Install SDEdit (it's absolutely free) http://sdedit.sourceforge.net/  2. Open SDEdit 3. Select Start / Stop RT server from the Extras menu 4. Enter any port you like and click OK ... 5. Add the following parameters to your application: -DanalyzerOutput = sdEditRtClient -DsdEditHost = 127.0.0.1 -DsdEditPort = 60001 -javaagent: jTracert.jar

The place where you must specify these parameters depends on your application server.

A few examples are shown below. Please note that you must replace jTracert.jar with the real jar name, for example jTracert-0.0.3.jar!

WebLogic 9+

Window

File:% DOMAIN_HOME% \ bin \ startWeblogic.cmd. Add the following line:

set JAVA_OPTIONS = -DanalyzerOutput = sdEditRtClient -DsdEditHost = 127.0.0.1 -DsdEditPort = 60001 -javaagent: jTracert.jar% JAVA_OPTIONS%



Linux

File: $ DOMAIN_HOME \ bin \ startWeblogic.sh. Add the following line:

JAVA_OPTIONS = "- DanalyzerOutput = sdEditRtClient -DsdEditHost = 127.0.0.1 -DsdEditPort = 60001 -javaagent: jTracert.jar $ JAVA_OPTIONS"

GlassFish V2

Windows and Linux

File:% DOMAIN_HOME% \ config \ domain.xml

Find the jvm-options element and add the elements -DanalyzerOutput = sdEditRtClient -DsdEditHost = 127.0.0.1 -DsdEditPort = 60001 -javaagent: jTracert.jar Start the domain as usual.

+1


source







All Articles