- This topic has 8 replies, 4 voices, and was last updated 16 years, 6 months ago by Loyal Water.
-
AuthorPosts
-
Steve OlsonMemberIs there a howto someplace that shows how to use TPTP profiling that comes with the new 3.3. stuff, to profile a Tomcat instance started using the Myeclipse tomcat start mechanism. Config isTC 6.0.13, JRE 1.6_01, Eclipse 3.3 and MyEclipse 6.0M1.
I’m thinking I don’t need the remote agent from TPTP since I’m running and profiling locally, but am not having luck getting a configuration set up where profiling can see the running tomcat process.
Thanks in advance for any tips/help.
Loyal WaterMemberThere is no document that shows how to use TPTP with MyEclipse. But are you getting any errors in the logs after setting up TPTP with MyEclipse ?
Steve OlsonMemberI’m still trying to work it thru as I’m not familiar with TPTP. TPTP 4.4 is installed, and I have added this option to the JDK arguments for my Tomcat 6.0 preferences in the MyEclipse config: -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf. I have also added this directory to the library path for Tomcat 6.0 in the Paths tab of the same prefs (this is where tptp put the agent): C:\eclipse\eclipse\plugins\org.eclipse.tptp.platform.ac.win_ia32_4.4.0.v200706020100\agent_controller\bin
I have to use JVMTI since I’m on JRE 1.6 and JVMPI is not an option.
With these settings, trying to start Tomcat under Eclipse with the normal MyEclipse start button fails because it can’t find “JPIBootLoader” on the path. I’m looking now to find out what that is – there is no JPIBootLoader dll in the agent’s bin directory, so this must come from elsewhere.
I’ll post again if I get farther. Thanks!
Steve OlsonMemberFound one more needed lib path for the TPTP 4.4 JVMTI runtime stuff based on searching, but it isn’t sufficient – still looking for more:
C:\eclipse\eclipse\plugins\org.eclipse.tptp.platform.jvmti.runtime_4.4.0.v200706070100\agent_files\win_ia32
Steve OlsonMemberOops – I may need to switch gears, based on this post:
http://dev.eclipse.org/newslists/news.eclipse.tptp/msg03942.html
If true that means that I can’t yet do the “enabled” functionality, which will prevent me from using the MyEclipse startup for Tomcat I think. The post basically says I’ll have to start Tomcat as a standalone java application and work up a profile runtime config that will make Tomcat happy doing this. Still looking…
Loyal WaterMemberHi skolson,
Thanks for keeping me posted on the progress. I would be trying to set TPTP up myself. Ill keep you updated on my findings as well.
Matt BucknamParticipantThis message has not been recovered.
benjwarnerMemberJust thought I’d report on how I went using TPTP.
Hope this helps anyone trying to setup TPTP in MyEclipse running tomcat.
-
–Running MyEclipse 6.0.1 GA, using the Eclipse version that it came with.
–Installed TPTP eclipse feature from the “Europa Discovery Site”
–Downloaded the TPTP Agent Controller from: http://www.eclipsecon.com/tptp/home/downloads/drops/TPTP-4.1.0.1.html#rac
–And followed the installation and run instructions at: http://www.eclipse.org/tptp/home/downloads/installguide/agentcontroller_41/win_ia32/getting_started.html#cfgstart
(Be sure to add the bin directory to your windows path!)
–Started the agent using RAServer.exe.
–Started tomcat with the -XrunpiAgent:server=enabled vm arg.
–Then connected to the agent from the profiling tools which came with the plugin.Worked well. Very slow (slower than any other profiling tool I’ve used), but managed to get some profiling data.
Loyal WaterMemberbenjwarner,
Thank you for this information. Im sure this will be very helpful to users trying to setup TPTP with MyEclipse. -
AuthorPosts