Edgblog

November 21, 2007

Profiling a JBoss app. with Eclipse TPTP

Filed under: java — edgblog @ 12:44 pm

… in 10 easy steps (on Windows)

1- Download TPTP (Tests and Performance Tools Platform) from http://www.eclipse.org/tptp/home/downloads/

2- Unzip it

3- Ensure the piAgent.dll library used by the profiler is in your path
(found under \tptp\tptpdc\win_ia32\bin)

4- Configure the agentController
> C:\eclipse\tptp\tptpdc\win_ia32\bin\setConfig.bat

5- Start the AgentController
> C:\eclipse\tptp\tptpdc\win_ia32\bin\acserver.exe

6- Specify the -XrunpiAgent:server=enabled JVM parameter onto the java command used to start JBoss

7- Restart JBoss

8- In Eclipse: Select menu Run->Profile from the “profiling and logging” perspective

9- Create a new profiling configuration to be attached to a Java Process: select the default host (localhost:10002), pickup the java profiling agent, apply changes

10- Click “Profile” and the profiler starts collecting statical data related to memory usage and execution times.

Go get that memory leak now :]

6 Comments »

  1. Any pointers on Linux ?

    Comment by Jigar Shah — December 7, 2007 @ 8:45 am | Reply

  2. just for tracking

    Comment by Jigar Shah — December 7, 2007 @ 8:55 am | Reply

  3. thanks, its simple and helpful

    Comment by ran — October 2, 2008 @ 11:07 am | Reply

  4. Hi,i am getting some problem in step-6. Can you help me. Also in step-3, i have added the location of piAgent.dll in my path. Is it fine?

    Comment by Swetadri — January 28, 2010 @ 5:40 am | Reply

    • what sort of problem are you encountering in step 6 ? Also please keep in my mind this post is now more than 2 years old so it’s not guaranteed to work for newer versions of TPTP/Eclipse.

      Comment by edgblog — February 1, 2010 @ 7:30 pm | Reply

      • With newer version of TPTP, you need to use -JPIBootLoader instead of -XrunpiAgent.

        Comment by Asticouette — April 21, 2010 @ 5:34 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.