… 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 :]
Any pointers on Linux ?
Comment by Jigar Shah — December 7, 2007 @ 8:45 am |
just for tracking
Comment by Jigar Shah — December 7, 2007 @ 8:55 am |
thanks, its simple and helpful
Comment by ran — October 2, 2008 @ 11:07 am |
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 |
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 |
With newer version of TPTP, you need to use -JPIBootLoader instead of -XrunpiAgent.
Comment by Asticouette — April 21, 2010 @ 5:34 pm