|Re: attach failed error [message #136681 is a reply to message #136669]
||Thu, 02 October 2008 19:10
| Eugene Chan
Registered: July 2009
You will have to setup the system PATH for the profiling agent to load.
Please refer to the documentation link here
http://dev.eclipse.org/viewcvs/index.cgi/platform/org.eclips e.tptp.platform.agentcontroller/src-native-new/packaging_md/ windows/getting_started.html?root=TPTP_Project&view=co#J ava_15
and you will need the following variables before you start the server
process, as stated in the link.
To run the Java Profiling Agent in standalone mode on Windows, perform the
1.. Set TPTP_AC_HOME=<<Agent Controller Home>>
3.. Set PATH=%JAVA_PROFILER_HOME%;%PATH%;%TPTP_AC_HOME%\bin
4.. Set PATH=%PATH%;%JAVA_HOME%\bin
5.. Execute the Java application with the -agentlib parameter as described
"yc" <email@example.com> wrote in message
> Hello, Eugene,
> thanks for replying.
> I tried some the following: (b is a simple java program)
> C:\Temp>java -agentlib:JPIBootLoader=JPIAgent:server=enabled;HeapProf b
> I don't see any error or AC_home/config/servicelog.log generated.
> Here is my path:
> C:\Temp>set path
> Path=C:\dev\Java\jdk1.5.0_11\bin;C:\Perl\bin\;c:\oracle\ora8 1\bin;C:\Program
> Files\Oracle\jre\1.1.7\bin;C:\WINDOWS\system32;C:\WINDOWS;C: \WINDOWS\System32\Wbem;
> C:\Program Files\PuTTY;C:\Program Files\Perforce;c:\Program
> Files\Microsoft SQL
> Server\90\Tools\binn\;C:\tptpAC\plugins\org.eclipse.tptp.jav aprofiler;C:\tptpAC\
> would you take a look to see if anything wrong with my env?
> I will take a look at WTP and try to set it up.
> Eugene Chan wrote:
>> Have you tried run with
>> Do you see anything suspicious in the agent controller log file (under
>> Alternatively, you can use the profile on server option available in
>> WTP-TPTP integration, it enables you to select your web application or
>> simply select a server instance and right-click and 'profile' the
>> selection on a target server. Profile on Server dialog shows and you can
>> select the profiling option you prefer (HeapProf is one of the options
>> "yc" <firstname.lastname@example.org> wrote in message
>>> I am new user for tptp. So pardon me if something is totally wrong here.
>>> I am using the following env.
>>> OS: windows XP
>>> jdk: 1.5.11
>>> eclipse: 3.4.1
>>> tomcat 5.5.23 (using sysdeo plugin in eclipse to invoke it.)
>>> I got tptp through eclipse update. Here are some info:
>>> TPTP platform project is 4.5.1
>>> TPTP Tracing and profiling tools project is 4.3.2
>>> I installed the tptp agent controller 4.5.1. (also set the path
>>> environment variable etc.)
>>> I am trying to profiling my tomcat app. I just started tomcat app then
>>> attach the tptp profiler to the app. I am able to do that using the
>>> following jvm option:
>>> But if I am trying to use the following option, which I should since I
>>> am using jdk 1.5:
>>> -agentlib:JPIBootLoader=JPIAgent:server=enabled;HeapProf:all ocsites=true
>>> Once I choose the agent and click profile button. It will bring me to
>>> the profile perspective. It seems it tried to profiling then get
>>> terminated. It also print out error:
>>> [Error: Attach failed]
>>> I have no clue where and why the attach failed. And I don't see any
>>> servicelog.log in my agent_install_dir/conf.
>>> Would you some experts point me to the right direction?
Powered by FUDForum
. Page generated in 0.03281 seconds