Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Unable to connect to an agent remotely
Unable to connect to an agent remotely [message #141345] Wed, 25 March 2009 14:02 Go to next message
Rahuldeb Barman is currently offline Rahuldeb Barman
Messages: 2
Registered: July 2009
Junior Member
I was trying to attach an agent remotely using RSA 7.5.0 but was getting
an error
I am giving the all step followeds in details

The initial installation setup ::

I put a java process whose performance I want to monitor in this location
-> C:\D\workspace_tptp\testtptp\com.test.ibm.CarModel.java say
$applicationHome
I also downloded RSA 7.5.0
I have installed the AgentController from this location ->
http://www.eclipse.org/tptp/home/downloads/#agentController
and installed it in this location -> C:\performance\tptp\AgentController
say $TPTP_AC_HOME


The process followed::

step 1.
I configured the AgentController by running the SetConfig.bat from the
$TPTP_AC_HOME\bin
I have given all these data as part of the AgentController configuration

Specify the fully qualified path of "java.exe" (e.g.
c:\jdk1.4\jre\bin\java.exe):
Default>"C:\Program Files\IBM\Java50\jre\bin\java.exe" (Press <ENTER>
to accept the default value)
New value>
Network access mode (ALL=allow any host, LOCAL=allow only this host,
CUSTOM=list of hosts):
Default>"LOCAL" (Press <ENTER> to accept the default value)
New value>ALL
Security enabled. (true/false):
Default>"FALSE" (Press <ENTER> to accept the default value)
New value>

step 2.
Configuring the Enironment variables

# Set TPTP_AC_HOME=<<Agent Controller Home>> -------> in environment
var
# Set
JAVA_PROFILER_HOME=%TPTP_AC_HOME%\plugins\org.eclipse.tptp.j avaprofiler
---->in environment var
# Set LD_LIBRARY_PATH=%JAVA_PROFILER_HOME%;%TPTP_AC_HOME%\lib ---->in
environment var


step 3.

Running the Agent Controller

Then I started the ACServer.exe from the $TPTP_AC_HOME\bin
It has started listening in the 10005 port
This is logged in the servicelog.log file which resides in the
$TPTP_AC_HOME\config location.

Running the agent

3.1. Go to the $applicationHome in command prompt
3.2. # Set PATH=%JAVA_PROFILER_HOME%;%PATH%;%TPTP_AC_HOME%\bin
# Set PATH=%LD_LIBRARY_PATH%;%PATH%
3.3. Running the application locally by running this command
java
-agentlib:JPIBootLoader=JPIAgent:server=standalone,filters=m yFilter.txt;HeapProf:allocsites=true
com.test.ibm.CarModel

step 4.

Trying to atttach the agent from remote machine where the RSA 7.5.0 is
installed
4.1 open RSA 7.5.0
4.2 click on run->profile configurations->AttachToAgent
4.3 i selected the default port (i.e. 10005) the connection was
successful
4.4 But if I try to see the running agent locally by clicking the agent
tab it is throwing an error

The error is ::

Exception stack trace

org.eclipse.tptp.platform.execution.exceptions.AgentControll erUnavailableException:
Error: Unable to connect to the Agent Controller.Connection reset
at
org.eclipse.tptp.platform.execution.client.core.internal.Nod eImpl.connect(NodeImpl.java:128)
at
org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerFactory$EstablishConnection.run(AgentControllerFactory. java:126)
at java.lang.Thread.run(Thread.java:801)
Re: Unable to connect to an agent remotely [message #141466 is a reply to message #141345] Mon, 30 March 2009 15:28 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene Chan
Messages: 287
Registered: July 2009
Senior Member
Hi Rahuldeb,

The defect port for connection is 10002 and not 10005. 10005 is the file
port, not the default port.
Also the command on Linux should be 'export' for environment variables.

Eugene

"Rahuldeb Barman" <barman.rahuldeb@gmail.com> wrote in message
news:4c110b32691a61a901b7d918136c319d$1@www.eclipse.org...
>I was trying to attach an agent remotely using RSA 7.5.0 but was getting an
>error
> I am giving the all step followeds in details
> The initial installation setup ::
>
> I put a java process whose performance I want to monitor in this
> location -> C:\D\workspace_tptp\testtptp\com.test.ibm.CarModel.java say
> $applicationHome
> I also downloded RSA 7.5.0
> I have installed the AgentController from this location ->
> http://www.eclipse.org/tptp/home/downloads/#agentController
> and installed it in this location -> C:\performance\tptp\AgentController
> say $TPTP_AC_HOME
>
>
> The process followed::
>
> step 1. I configured the AgentController by running the SetConfig.bat from
> the $TPTP_AC_HOME\bin
> I have given all these data as part of the AgentController configuration
>
> Specify the fully qualified path of "java.exe" (e.g.
> c:\jdk1.4\jre\bin\java.exe):
> Default>"C:\Program Files\IBM\Java50\jre\bin\java.exe" (Press <ENTER> to
> accept the default value)
> New value>
> Network access mode (ALL=allow any host, LOCAL=allow only this host,
> CUSTOM=list of hosts):
> Default>"LOCAL" (Press <ENTER> to accept the default value)
> New value>ALL
> Security enabled. (true/false):
> Default>"FALSE" (Press <ENTER> to accept the default value)
> New value>
> step 2. Configuring the Enironment variables
>
> # Set TPTP_AC_HOME=<<Agent Controller Home>> -------> in environment var
> # Set
> JAVA_PROFILER_HOME=%TPTP_AC_HOME%\plugins\org.eclipse.tptp.j avaprofiler ---->in
> environment var
> # Set LD_LIBRARY_PATH=%JAVA_PROFILER_HOME%;%TPTP_AC_HOME%\lib ---->in
> environment var
>
>
> step 3.
>
> Running the Agent Controller
>
> Then I started the ACServer.exe from the $TPTP_AC_HOME\bin It has started
> listening in the 10005 port
> This is logged in the servicelog.log file which resides in the
> $TPTP_AC_HOME\config location.
>
> Running the agent
> 3.1. Go to the $applicationHome in command prompt
> 3.2. # Set PATH=%JAVA_PROFILER_HOME%;%PATH%;%TPTP_AC_HOME%\bin # Set
> PATH=%LD_LIBRARY_PATH%;%PATH%
> 3.3. Running the application locally by running this command
> java -agentlib:JPIBootLoader=JPIAgent:server=standalone,filters=m yFilter.txt;HeapProf:allocsites=true
> com.test.ibm.CarModel
> step 4.
>
> Trying to atttach the agent from remote machine where the RSA 7.5.0 is
> installed
> 4.1 open RSA 7.5.0
> 4.2 click on run->profile configurations->AttachToAgent
> 4.3 i selected the default port (i.e. 10005) the connection was successful
> 4.4 But if I try to see the running agent locally by clicking the agent
> tab it is throwing an error
>
> The error is ::
>
> Exception stack trace
>
> org.eclipse.tptp.platform.execution.exceptions.AgentControll erUnavailableException:
> Error: Unable to connect to the Agent Controller.Connection reset
> at
> org.eclipse.tptp.platform.execution.client.core.internal.Nod eImpl.connect(NodeImpl.java:128)
> at
> org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerFactory$EstablishConnection.run(AgentControllerFactory. java:126)
> at java.lang.Thread.run(Thread.java:801)
>
>
>
>
>
Re: Unable to connect to an agent remotely [message #141646 is a reply to message #141345] Wed, 01 April 2009 15:54 Go to previous message
Joel Cayne is currently offline Joel Cayne
Messages: 13
Registered: July 2009
Junior Member
This is a multipart message in MIME format.
--=_alternative 0057698B8525758B_=
Content-Type: text/plain; charset="US-ASCII"

Do you have a firewall running and the port open?

Are there any additional messages listed in the workspace .log file or
servicelog.log in %TPTP_AC_HOME%\config?
--=_alternative 0057698B8525758B_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">Do you have a firewall running and the
port open?</font>
<br>
<br><font size=2 face="sans-serif">Are there any additional messages listed
in the workspace .log file or servicelog.log in %TPTP_AC_HOME%\config?</font>
--=_alternative 0057698B8525758B_=--
Previous Topic:Can't profile geronimo 2.1.3 in eclipse
Next Topic:Generating XMI profiling files to be analyzed with TPTP
Goto Forum:
  


Current Time: Sat Sep 20 22:06:13 GMT 2014

Powered by FUDForum. Page generated in 0.08065 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software