Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy to use performance and memory .NET profiler for Windows and Linux.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

Remote Profiling without ssh tunneling?

Moderators: Vladimir Kondratyev, Anton Katilin

Remote Profiling without ssh tunneling?

Postby doperj » Mon Dec 16, 2019 1:40 pm


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.
Posts: 1
Joined: Mon Dec 16, 2019 1:27 pm

Re: Remote Profiling without ssh tunneling?

Postby Anton Katilin » Tue Dec 17, 2019 9:15 am

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
Anton Katilin
Posts: 6028
Joined: Wed Aug 11, 2004 8:37 am

Re: Remote Profiling without ssh tunneling?

Postby Vladimir Kondratyev » Tue Dec 17, 2019 9:18 am

- 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
"Don't get lost in data, get information!"
Vladimir Kondratyev
Posts: 1527
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Return to Java Profiler

Who is online

Users browsing this forum: Google [Bot] and 1 guest

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.