Hi Marina, Are you using the latest TPTP 4.4 version (4.4.0.3)? If not, please upgrade, as there are some issues with the dynamic attach feature in 4.4.0. Please make sure to upgrade both the TPTP Eclipse plugin and the standalone Agent controller. Also, make sure there are no "old" versions of Agent Controller lurking around (search for RAServer.exe).
HTH, Asaf -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marina Sent: Monday, October 08, 2007 5:43 PM To: TPTP Tracing and Profiling Tools Project developer discussions Subject: RE: [tptp-tracing-profiling-tools-dev] cannot connect to Tomcat Alex, I have done the following: -- started ACServer.exe -- verified it is started (ran the SampleClient ) on port 10006 -- started Tomcat with the -agentlib:JPIBootLoader=JPIAgent:server=enabled;HeapProf:allocsites=true param -- went to the Profile window in Eclipse -> Attach to Agent -> New Configuration -> Host tab -- created a new default host localhost:10006 -- tested it with "Test Connection" button - it worked Ok -- went to the Agents tab - clicked "Refresh" - still no agents are shown Anything else I could try? Thanks! Marina --- "Alexeev, Alexander N" <[EMAIL PROTECTED]> wrote: > Maria, > > Please check that AC (agent controller) is executed. > > Press "Test Connection" on host tab at "Attach to > Agent" or look for > "ACServer.exe" process in Windows Task Manager. > > Also you can try stand alone AC. It can be > downloaded from the same page > > as TPTP. > Unpack it and configure AC (run SetConfig.bat from > bin). > Run ACServer.exe and while it is running execute > Tomcat. > For more information: > http://help.eclipse.org/help33/topic/org.eclipse.tptp.platform.doc.user/ > tasks/teprofsa.htm > > Alex. > > >-----Original Message----- > >From: > [EMAIL PROTECTED] > [mailto:tptp- > >[EMAIL PROTECTED] On > Behalf Of Marina > >Sent: Monday, October 08, 2007 5:01 PM > >To: TPTP Tracing and Profiling Tools Project > developer discussions > >Subject: RE: [tptp-tracing-profiling-tools-dev] > cannot connect to > Tomcat > > > >Hi, Asaf, > >thank you for the tip! > >I have enabled the logging and immediately saw what > >the problem was - I did not set the > JAVA_PROFILER_HOME > >env variable. I just added the correct path to the > >PATH env var and thought that was enough. I was > wrong. > > > >So, after I set all env vars, I was able to start > >Tomcat just fine. Next, I tried attaching to the > >Tomcat from the Eclipse Workbench. > > > >I went to the Profile Dialog -> Attach to Agent -> > New > >configuration -> Agents tab - and there were no > >available agents listed. > > > >Should I try to connect to Tomcat in some other > way? > > > >Thank you! > >Marina > > > > > >--- "Yaffe, Asaf" <[EMAIL PROTECTED]> wrote: > > > >> Hi Marina, > >> > >> Please enable the JVMTI Profiler logging and post > >> the log file to this > >> mailing list. > >> > >> To enable logging: > >> 1. set MARTINI_LOGGER_DIRECTORY=<an existing > >> directory of your choice> > >> 2. set MARTINI_LOGGER_LOG_LEVEL=5 > >> 3. Launch Tomcat. > >> > >> A log file named MLog<process_id>.log will be > >> generated in > >> MARTINI_LOGGER_DIRECTORY > >> > >> Thanks, > >> Asaf > >> > >> -- > >> Asaf Yaffe, Eclipse TPTP Committer, JVMTI > Profiler > >> > >> > >> -----Original Message----- > >> From: > >> > [EMAIL PROTECTED] > >> > >[mailto:[EMAIL PROTECTED] > >> On Behalf > >> Of Marina > >> Sent: Thursday, October 04, 2007 4:16 PM > >> To: TPTP mailing list > >> Subject: Re: [tptp-tracing-profiling-tools-dev] > >> cannot connect to Tomcat > >> > >> Hi, Eugene, > >> > >> thank you for your response. > >> First, I did not use the "Profile on Server" > >> functionality because it requires my project to > be > >> in > >> the WTP web app format. Right now, I'm using > >> MyEclipse > >> and its own web application format, and changing > >> that > >> to WTP is not an option at this time (unless it > >> would > >> be the last resort one...) > >> > >> So, I have done the following to install and > >> configure > >> the Agent Controller: > >> -- installed Agent Controller in > >> C:\Marina\Tools\tptp4.4 > >> -- ran SetConfig.bat > >> -- added C:\Marina\Tools\tptp4.4\bin and > >> > >C:\Marina\Tools\tptp4.4\plugins\org.eclipse.tptp.javaprofiler > >> to the system PATH env var > >> -- started ACServer (tested it with the > SampleClient > >> - > >> OK) > >> -- started Tomcat with the same parameters > >> (-agentlib:...) > >> > >> -- got a different error this time (actually, I > am > >> not > >> seeing any errors when I start Tomcat - the start > >> window just flashes by and disappears, but when I > >> stop > >> Tomcat - I do see the errors): > >> [Error: EC JPIAgent received message (FATAL > ERROR): > >> Internal error (see log file).] > >> > >> Here is the content from the servicelog.log of > the > >> ACServer: > >> > >> <CommonBaseEvent > >> creationTime="2007-10-04T13:34:15.440000Z" > >> > globalInstanceId="A02308B756B14EE5A5165C5EC07D0450" > >> msg="Received command for unrecognized interface: > >> iid=org.eclipse.tptp.eventProvider, > >> cmd=listenerAccepted" severity="50" > version="1.0.1"> > >> <sourceComponentId component="AgentController" > >> componentIdType="TPTPComponent" > >> > >executionEnvironment="D:\cygwin\home\build\TPTP\4.4.0\TPTP-4.4.0-200706 > 1 > >> > >40100C\agntctrl\src\transport\TPTPClientCompTL\Connect2AC.c, > >> line 2238" instanceId="1004" > >> location="mpopova-xeon.Burlington.Emptoris.com" > >> locationType="IPV4" processId="968" > >> subComponent="Client Compatibility TL" > >> threadId="2092" > >> componentType="Eclipse_TPTP"/> > >> <situation categoryName="ReportSituation"> > >> <situationType > >> > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >> xsi:type="ReportSituation" > reasoningScope="INTERNAL" > >> reportCategory="LOG"/> > >> </situation> > >> </CommonBaseEvent> > >> <CommonBaseEvent > >> creationTime="2007-10-04T13:34:16.128000Z" > >> > globalInstanceId="A0D2B1B3E50D4141856A149C02A8FB03" > >> msg="File server started listening on port 10005" > >> severity="10" version="1.0.1"> > >> <sourceComponentId component="AgentController" > >> componentIdType="TPTPComponent" > >> > >executionEnvironment="D:\cygwin\home\build\TPTP\4.4.0\TPTP-4.4.0-200706 > 1 > >> > >40100C\agntctrl\src\transport\TPTPClientCompTL\fileServer.c, > >> line 177" instanceId="1004" > >> location="mpopova-xeon.Burlington.Emptoris.com" > >> locationType="IPV4" processId="968" > >> subComponent="Client Compatibility TL" > >> threadId="2328" > >> componentType="Eclipse_TPTP"/> > >> <situation categoryName="ReportSituation"> > >> <situationType > >> > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >> xsi:type="ReportSituation" > reasoningScope="INTERNAL" > === message truncated === _______________________________________________ tptp-tracing-profiling-tools-dev mailing list tptp-tracing-profiling-tools-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-de v --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. _______________________________________________ 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