Remote Profiling without ssh tunneling?

Questions about YourKit Java Profiler
Post Reply
doperj
Posts: 1
Joined: Mon Dec 16, 2019 1:27 pm

Remote Profiling without ssh tunneling?

Post by doperj »

Hi,

We have been using yourkit for 2 years to profile java applications hosted on cloud platform.

We used to connect to the application by attaching the yourkit agent to application, then creating an ssh tunnel and using that information in yourkit to connect to that application.

Now for security reasons, the ssh tunneling to the cloud platform is not enabled anymore. So is there any way we can achieve connection without ssh tunneling?

I couldn't find similar topic anywhere so asking the same here.

Appreciate your help.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Remote Profiling without ssh tunneling?

Post by Anton Katilin »

If you are able to open port(s) on the remote system, you can remotely connect to it via "Application discovery method - Simple". Please see the startup option "port" for detail on the port range:
https://www.yourkit.com/docs/java/help/ ... s.jsp#port

You should start the profiled application with the profiler agent:
https://www.yourkit.com/docs/java/help/ ... remote.jsp

Important: you must use the option "listen=all" - choose "Easy access" on step 7.

Alternatively, you can use the attach mode too (don't forget to specify "listen=all" in additional options):
https://www.yourkit.com/docs/java/help/ ... wizard.jsp
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: Remote Profiling without ssh tunneling?

Post by Vladimir Kondratyev »

- You can open port on firewall and use direct connection. But I suppose that it is not an option for the same security reasons.

- I would offer to control profiling by using CLI https://www.yourkit.com/docs/java/help/ ... e_tool.jsp
When the snapshot is captured, you can transfer it somehow to your development machine for analyzes.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Post Reply