I'd like to generate sequence diagrams of a running java ee application using jtracert. How do I do this?
我想使用jtracert生成正在运行的java ee应用程序的序列图。我该怎么做呢?
1 个解决方案
#1
1
There's a "Quick Start" chapter on the project main page: http://code.google.com/p/jtracert/
项目主页上有一个“快速入门”章节: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. Choose Item Start/stop RT server in menu Extras 4. Enter any port you like and press ok 5. Add the following parameters to your application startup: -DanalyzerOutput=sdEditRtClient -DsdEditHost=127.0.0.1 -DsdEditPort=60001 -javaagent:jTracert.jar
简而言之:1。安装SDEdit(完全免费)http://sdedit.sourceforge.net/ 2.打开SDEdit 3.在菜单Extras中选择项目启动/停止RT服务器4.输入您喜欢的任何端口,然后按确定5.将以下参数添加到应用程序启动:-DanalyzerOutput = sdEditRtClient -DsdEditHost = 127.0.0.1 -DsdEditPort = 60001 -javaagent:jTracert.jar
The place where you should specify these parameters depends on your application server.
您应该指定这些参数的位置取决于您的应用程序服务器。
A few examples are stated below. Please note that you should replace jTracert.jar with real jar name, like jTracert-0.0.3.jar!
下面列举了一些例子。请注意,你应该用真正的jar名称替换jTracert.jar,比如jTracert-0.0.3.jar!
WebLogic 9+
Windows
File: %DOMAIN_HOME%\bin\startWeblogic.cmd. Add the following line:
文件:%DOMAIN_HOME%\ bin \ startWeblogic.cmd。添加以下行:
set JAVA_OPTIONS=-DanalyzerOutput=sdEditRtClient -DsdEditHost=127.0.0.1 -DsdEditPort=60001 -javaagent:jTracert.jar %JAVA_OPTIONS%
设置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:
文件:$ DOMAIN_HOME \ bin \ startWeblogic.sh。添加以下行:
JAVA_OPTIONS="-DanalyzerOutput=sdEditRtClient -DsdEditHost=127.0.0.1 -DsdEditPort=60001 -javaagent:jTracert.jar $JAVA_OPTIONS"
JAVA_OPTIONS =“ - DanalyzerOutput = sdEditRtClient -DsdEditHost = 127.0.0.1 -DsdEditPort = 60001 -javaagent:jTracert.jar $ JAVA_OPTIONS”
GlassFish V2
Windows & Linux
Windows和Linux
File: %DOMAIN_HOME%\config\domain.xml
Search for jvm-options element and add the elements -DanalyzerOutput=sdEditRtClient -DsdEditHost=127.0.0.1 -DsdEditPort=60001 -javaagent:jTracert.jar Start the domain as usual.
搜索jvm-options元素并添加元素-DanalyzerOutput = sdEditRtClient -DsdEditHost = 127.0.0.1 -DsdEditPort = 60001 -javaagent:jTracert.jar像往常一样启动域。
#1
1
There's a "Quick Start" chapter on the project main page: http://code.google.com/p/jtracert/
项目主页上有一个“快速入门”章节: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. Choose Item Start/stop RT server in menu Extras 4. Enter any port you like and press ok 5. Add the following parameters to your application startup: -DanalyzerOutput=sdEditRtClient -DsdEditHost=127.0.0.1 -DsdEditPort=60001 -javaagent:jTracert.jar
简而言之:1。安装SDEdit(完全免费)http://sdedit.sourceforge.net/ 2.打开SDEdit 3.在菜单Extras中选择项目启动/停止RT服务器4.输入您喜欢的任何端口,然后按确定5.将以下参数添加到应用程序启动:-DanalyzerOutput = sdEditRtClient -DsdEditHost = 127.0.0.1 -DsdEditPort = 60001 -javaagent:jTracert.jar
The place where you should specify these parameters depends on your application server.
您应该指定这些参数的位置取决于您的应用程序服务器。
A few examples are stated below. Please note that you should replace jTracert.jar with real jar name, like jTracert-0.0.3.jar!
下面列举了一些例子。请注意,你应该用真正的jar名称替换jTracert.jar,比如jTracert-0.0.3.jar!
WebLogic 9+
Windows
File: %DOMAIN_HOME%\bin\startWeblogic.cmd. Add the following line:
文件:%DOMAIN_HOME%\ bin \ startWeblogic.cmd。添加以下行:
set JAVA_OPTIONS=-DanalyzerOutput=sdEditRtClient -DsdEditHost=127.0.0.1 -DsdEditPort=60001 -javaagent:jTracert.jar %JAVA_OPTIONS%
设置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:
文件:$ DOMAIN_HOME \ bin \ startWeblogic.sh。添加以下行:
JAVA_OPTIONS="-DanalyzerOutput=sdEditRtClient -DsdEditHost=127.0.0.1 -DsdEditPort=60001 -javaagent:jTracert.jar $JAVA_OPTIONS"
JAVA_OPTIONS =“ - DanalyzerOutput = sdEditRtClient -DsdEditHost = 127.0.0.1 -DsdEditPort = 60001 -javaagent:jTracert.jar $ JAVA_OPTIONS”
GlassFish V2
Windows & Linux
Windows和Linux
File: %DOMAIN_HOME%\config\domain.xml
Search for jvm-options element and add the elements -DanalyzerOutput=sdEditRtClient -DsdEditHost=127.0.0.1 -DsdEditPort=60001 -javaagent:jTracert.jar Start the domain as usual.
搜索jvm-options元素并添加元素-DanalyzerOutput = sdEditRtClient -DsdEditHost = 127.0.0.1 -DsdEditPort = 60001 -javaagent:jTracert.jar像往常一样启动域。