TPTP Eclipse setup
Disclaimer-: I am no expert in TPTP, and you cannot take me to a court of law if things go haywire.
I decided to write this blog because most of the information around is bit scattered and time consuming to figure out.
This blog *may* help you in setting up your TPTP environment on eclipse.
Install JDK 1.5. ; JDK 1.6 will _NOT_ work
First of all download version 3.2.2 of eclipse.
Using your software update manager, install WTP(1.5.3) and its pre-requisites like GEF EMF etc.
Download Agent controller from
http://archive.eclipse.org/tptp/4.2.0/TPTP-4.2.0-200606190100A/agntctrl.win_ia32-TPTP-4.2.0.zip
Unzip and put it in a folder of your choice
Go into the bin directory within the agent controller
Run the file SetConfig.bat from a command prompt/shell.
Next copy the path to this (bin) folder, and add it to your PATH variable.(doubt if this is really needed)
Start the application called RAServer.exe
Run eclipse.
Create a new JBOSS runtime if it does not exist,
In the VM arguments for the server add this to the end of the existing argument list
-XrunpiAgent:server=enabled
Apply the changes
Start the server
Go to Run > profile > Attach -Java process
Double click it to create a new configuration
Select localhost:10002 (and test the connection, make sure you get a success).
Go to the agents tab(If you dont find, make sure RAServer.exe is running and you have JBoss also working)
There should be one agent on the left side.
Add it to the list of selected agents.
Go to the monitor tab and select the ones you need.(I use Memory & Execution time)
Click Apply , Profile
This should open the profile perspective
Right click on the node that says
Now you can access your application and see how things are going.
Dont forget to change the filters to monitor classes relevant to your environment

4 Comments:
Thanks! Worked great!
Great!
Thanks =)
Have you tried running Profiling JBoss with TPTP version 4.4?
Thanks
Great cookbookie, working quiet well.
Don't doubt to copy the agents bin directory to the system path entry. The jboss server would refuse to start as it needs the dll's location.
Post a Comment
Subscribe to Post Comments [Atom]
Links to this post:
Create a Link
<< Home