Hi Marina, Thanks for your interested in TPTP.
To profile in standalone mode, you need to setup the system path in order for the JVM to load the necessary libraries. Please see the following link for details. http://www.eclipse.org/tptp/platform/documents/tutorials/jvmti/Java_Application_Profiling_using_TPTP-v2.0.html#3.3 Since you are starting your Tomcat server in Run mode, the Integrated Agent Controller(IAC) is not started automatically. You can however profile Web Application on Tomcat using the Profile on Server function, which will automatically starts the IAC on demand, and note that with this approach you won't have to manually add the JVM argument ( -agentlib:JPIBootLoader=JPIAgent:server=enabled;HeapProf:allocsites=true) It will be done by the profile launch configuration. Detail of the feature is available in the following link http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.tptp.platform.profile.server.doc.user/tasks/prfserver.xhtml Please continue the discussion offline if you have further question. I hope this helps. ------------------------------------------------------------------------------ Eugene Chan IBM Toronto Laboratory, Canada Marina <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 10/03/2007 03:01 PM Please respond to TPTP Tracing and Profiling Tools Project developer discussions <tptp-tracing-profiling-tools-dev@eclipse.org> To TPTP mailing list <tptp-tracing-profiling-tools-dev@eclipse.org> cc Subject [tptp-tracing-profiling-tools-dev] cannot connect to Tomcat Hello, Sorry for writing to the dev list - but I could not find any user list. If it exists - please let me know and I will move my question over there. I want to profile a web app on a Tomcat server. Here is my configuration: JDK1.5.0_13 Eclipse3.3.0 Tomcat4.1.36 (yes, it is old, but unfortunately I have to use this version right now) I have installed TPTP 4.4 using the Eclipse Update manager, along with all dependencies (as far as I know - at least it did not complain about anything) After that, I have added the following option to the catalina.bat script: set CATALINA_OPTS=%CATALINA_OPTS% -agentlib:JPIBootLoader=JPIAgent:server=enabled;HeapProf:allocsites=true When I start Tomcat, I get the following error: Error occurred during initialization of VM Could not find agent library on the library path or in the local directory: JPIBootLoader I searched online and one of the reasons people were getting this error was because they did not configure/install Agent Controller correctly. I did not install Agent Controller at all, because according to the latest TPTP docs in Eclipse the agent is bundled with the TPTP plugin and if I plan to profile applications locally (which I am) then I don't need to install/configure anything other than the Eclipse plugin. If this is true - what else am I missing? Also, I could not find any documentation on how to profile web apps running in Tomcat on JDK1.5 with Eclipse3.3 - I saw one or two how-to blogs/posts for the older versions, where you need to do all that extra setup of the Agent Controller and stuff, but not the newer one. thanks, Marina _______________________________________________ tptp-tracing-profiling-tools-dev mailing list tptp-tracing-profiling-tools-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev
_______________________________________________ tptp-tracing-profiling-tools-dev mailing list tptp-tracing-profiling-tools-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev