Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Remote monitoring: unable to use not standard TPTP port(Client always try to connect to port 10006 to retrive Agent list)
Remote monitoring: unable to use not standard TPTP port [message #516894] Thu, 25 February 2010 08:37 Go to next message
joel is currently offline joel
Messages: 17
Registered: July 2009
Junior Member
Hi all,

I have an issue using TPTP in order to remote profile a Spring based application.
ACServer and tptpProcessController are running well, client connection is working ("Test Connection" in Eclipse return a success code) but I am unable to retrieve the Agents from the server side. GUI error is: "Error retrieving running agents"

If I don't try to change ACServer ports, everything goes well in the same environment. But as soon as I change ports as follow, I am not anymore able to get the Agents list.
<TransportLayer loadlib="tptpCCTL" type="TPTP_CCTL">
                        <Configuration>
                                <Port>64000</Port>
                                <SecuredPort>10003</SecuredPort>
                                <FilePort>63001</FilePort>
                                <IsDataMultiplexed>false</IsDataMultiplexed>
                                <ProcessPolling>true</ProcessPolling>
                                <Version>4.4.1</Version>
                                <SecurityEnabled>false</SecurityEnabled>
                                <Hosts configuration="default">
                                        <Allow host="ALL"/>
                                </Hosts>
                        </Configuration>
                        <CommandExtractor>tptpCmdExtr</CommandExtractor>
 </TransportLayer>

And also here:
 
<TransportLayer loadlib="socketTL" type="TPTP_SOCKET">
                        <Configuration>
                                <Port>64001</Port>
                                <SecurityEnabled>false</SecurityEnabled>
                        </Configuration>
                        <CommandExtractor>tptpCmdExtr</CommandExtractor>
 </TransportLayer>


After a network analysis (using Wireshark), it seems that the monitoring protocol look like RMI (where the server tells the client where to connect -> dynamic port). But even with the above configuration, the server tells the client to connect on port 10006 in order to retrive the Agents list. Here is what the client get from the server side (extracted from a network dump):
<Cmd src="1" dest="0" ctxt="0"><portRequest iid="org.eclipse.tptp.client"><port>10006</port></portRequest></Cmd>


Any idea in order to avoid this behaviour (there is no port 10006 statement in my config) ? should I configure something else ?

Thank you in advance for your help.

Joel

[Updated on: Thu, 25 February 2010 09:10]

Report message to a moderator

Re: Remote monitoring: unable to use none standard TPTP port [message #516979 is a reply to message #516894] Thu, 25 February 2010 11:40 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene Chan
Messages: 287
Registered: July 2009
Senior Member
Hi Joel,

When you change the port number in the Agent Controller, you will have to
also update the port number of the host on the Eclipse client side, It is
under the Preferences>Agent Controller>Host, update the Port Number of the
target host there. It should be the same as the port number in
<Port>64000</Port> of the AC config file. Same thing apply when you profile
with the Host and Port selection under the Host tab of the launch
configuration, if applicable.

Eugene



"joel" <joel.winteregg@gmail.com> wrote in message
news:hm5uej$1oi$1@build.eclipse.org...
> Hi all,
>
> I have an issue using TPTP in order to remote profile a Spring based
> application.
> ACServer and tptpProcessController are running well, client connection is
> working ("Test Connection" in Eclipse return a success code) but I am
> unable to retrieve the Agents from the server side. GUI error is: "Error
> retrieving running agents"
>
> If I don't try to change ACServer ports, everything goes well in the same
> environment. But as soon as I change ports as follow, I am not anymore
> able to get the Agents list.
>
> <TransportLayer loadlib="tptpCCTL" type="TPTP_CCTL">
> <Configuration>
> <Port>64000</Port>
> <SecuredPort>10003</SecuredPort>
> <FilePort>63001</FilePort>
>
> <IsDataMultiplexed>false</IsDataMultiplexed>
> <ProcessPolling>true</ProcessPolling>
> <Version>4.4.1</Version>
> <SecurityEnabled>false</SecurityEnabled>
> <Hosts configuration="default">
> <Allow host="ALL"/>
> </Hosts>
> </Configuration>
> <CommandExtractor>tptpCmdExtr</CommandExtractor>
> </TransportLayer>
>
> And also here:
>
> <TransportLayer loadlib="socketTL" type="TPTP_SOCKET">
> <Configuration>
> <Port>64001</Port>
> <SecurityEnabled>false</SecurityEnabled>
> </Configuration>
> <CommandExtractor>tptpCmdExtr</CommandExtractor>
> </TransportLayer>
>
>
> After a network analysis (using Wireshark), it seems that the monitoring
> protocol look like RMI (where the server tells the client where to
> connect -> dynamic port). But even with the above configuration, the
> server tells the client to connect on port 10006 in order to retrive the
> Agents list.
> Any idea in order to avoid this behaviour (there is no port 10006
> statement in my config) ? should I configure something else ?
>
> Thank you in advance for your help.
>
> Joel
>
Re: Remote monitoring: unable to use none standard TPTP port [message #516988 is a reply to message #516979] Thu, 25 February 2010 11:59 Go to previous message
joel is currently offline joel
Messages: 17
Registered: July 2009
Junior Member
Eugene,

Thank you for your answer.

The port number was the right one under the Preferences>Agent Controller>Host config. But after restarting the Java application I wanted to monitor, putting back other ports in TPTP_CCTL configuration (see below) and restarting the agent server, I was able to connect to the server through port 64001 (defined in TPTP_SOCKET).
<TransportLayer loadlib="tptpCCTL" type="TPTP_CCTL">
                        <Configuration>
                                <Port>10003</Port>
                                <SecuredPort>10004</SecuredPort>
                                <FilePort>10005</FilePort>
                                <IsDataMultiplexed>false</IsDataMultiplexed>
                                <ProcessPolling>true</ProcessPolling>
                                <Version>4.4.1</Version>
                                <SecurityEnabled>false</SecurityEnabled>
                                <Hosts configuration="default">
                                        <Allow host="ALL"/>
                                </Hosts>
                        </Configuration>
                        <CommandExtractor>tptpCmdExtr</CommandExtractor>
 </TransportLayer>


Thank you for your help anyway !

Joel
Previous Topic:Multiple user using TPTP
Next Topic:DatapoolSuggestedType with "valueOjbectExtension" and "valueObjectValidatorExtension&
Goto Forum:
  


Current Time: Fri Aug 01 06:05:30 EDT 2014

Powered by FUDForum. Page generated in 0.03235 seconds