How to install configuration linux from your Laptop.

Questions about YourKit Java Profiler
Post Reply
thanhvanchi
Posts: 2
Joined: Tue Dec 20, 2016 9:36 am

How to install configuration linux from your Laptop.

Post by thanhvanchi »

Hello everyone!

I have an application on a remote Linux server that I wish to profile from my laptop.

I have installed yjp on both server and laptop (same latest version)
I have started the server with the agent and specifying listen host:port:
java -agentpath:/home/tim/yjp-2015-build-15060/bin/linux-x86-64/libyjpagent.so=listen=<myhost>:10001
(where <myhost> is the actual public IP address)
I have disabled iptables on the linux server. There is no firewall on the client.
I can successfully connect to the agent over http to the see the status page:

http://<myhost>:10001/

So I know it's all up and running and no firewall issue.
I now try and connect using the profiler from the laptop:

1. connect to remote application
2. specify <myhost>:10001

It initially connects and the profiling page appears

but within a second the status bar says:

"Local application XYZ at port 10001 has terminated or connection lost"

There is nothing in the local yjp logs.
Thank's a lot!
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: How to install configuration linux from your Laptop.

Post by Anton Katilin »

Hi,

Please check the profiler agent log file ~/.yjp/log/<session name>-<pid>.log on the remote machine. Does it contain any errors? You can provide its content here in the forum so we'll check it.

By the way, why do you use "listen=<myhost>:10001"? Did you try "port=10001" instead?

Please note that version 2015 is no longer supported. Please use the latest release 2016.02 instead - it probably solves the problem.

Best regards,
Anton
Post Reply