Hi,
I'm trying to connect from a Win GUI to a Linux agent.
On Win the build is 14104
On Linux build is 14106
I guess they are compatible.
On linux I run Tomcat server with parameters: "-agentpath:/tmp/yjp-2014-build-14106/bin/linux-x86-32/libyjpagent.so=listen=0.0.0.0:10002"
When I run "/tmp/yjp-2014-build-14106/bin/yjp.sh -attach" I get:
Name | PID| Status
-------------------------------- |------|--------------------------------
Main | 25398| Agent already loaded, agent port is 10002
This confirms that agent is connected to the Tomcat. Right?
Then I try connecting remotely: "[email protected]:22 :10002"
(and set the password) I get an error message:
There is no application running at 127.0.0.1 with an agent configured to listen on port 53302 or profiler agent is incompatible with current version of profiler.
Detail:
null
Running on Linux: netstat -lnp | grep 10002
I get: tcp 0 0 0.0.0.0:10002 0.0.0.0:* LISTEN 25398/java
What do I do wrong here?
Why does it try connecting on port 53302?
Why does it look for ip 127.0.0.1 and not 0.0.0.0 (even when I set parameters 0.0.0.0:10002)?
Note: this is an evaluation license.
Thanks!
Fail to remotely connect to agent
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Fail to remotely connect to agent
Hi kfirc
http://www.yourkit.com/docs/java/help/c ... jsp#remote
If it's supposed to be a direct connection, i.e. 172.23.41.69:22 :10002 is directly visible from your local machine, don't add the "admin@" part. Let it be simply "172.23.41.69:22:10002"
Best regards,
Anton
Yes, they should be. However, it is always recommended to use the latest available build (14110 at the moment), or at least the same version for client and agent. It seems there are no issues with mixing these two particular builds, but it is not so in a general case.On Win the build is 14104
On Linux build is 14106
I guess they are compatible.
Yes.This confirms that agent is connected to the Tomcat. Right?
Because you're using SSH tunneling by using its syntax - by adding "admin@":Why does it try connecting on port 53302?
http://www.yourkit.com/docs/java/help/c ... jsp#remote
If it's supposed to be a direct connection, i.e. 172.23.41.69:22 :10002 is directly visible from your local machine, don't add the "admin@" part. Let it be simply "172.23.41.69:22:10002"
Best regards,
Anton
-
- Posts: 3
- Joined: Mon Nov 03, 2014 9:04 am
Re: Fail to remotely connect to agent
Thanks Anton for your help!
I have tried without the user name, but then I get the error "User must be specified"...
I have installed same build on both machines.
I have verified that the port is open from my machine:
nc 172.23.41.69 10002 < /dev/null ; echo $?
I tried connecting with:
"172.23.41.69 :10002 " - missing user
"172.23.41.69:22 :10002 " missing user
"[email protected]:22 :10002 " -There is no application running at 127.0.0.1 with an agent configured to listen on port 53302 or profiler agent is incompatible with current version of profiler.
Thanks!
I have tried without the user name, but then I get the error "User must be specified"...
I have installed same build on both machines.
I have verified that the port is open from my machine:
nc 172.23.41.69 10002 < /dev/null ; echo $?
I tried connecting with:
"172.23.41.69 :10002 " - missing user
"172.23.41.69:22 :10002 " missing user
"[email protected]:22 :10002 " -There is no application running at 127.0.0.1 with an agent configured to listen on port 53302 or profiler agent is incompatible with current version of profiler.
Thanks!
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Fail to remotely connect to agent
There must be no space character before ":"
Just make it "172.23.41.69:10002", without a single space character.
Just make it "172.23.41.69:10002", without a single space character.
-
- Posts: 3
- Joined: Mon Nov 03, 2014 9:04 am
Re: Fail to remotely connect to agent
That did the trick!
Thanks!
Thanks!