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

removing profiler agent through command line

Moderators: Vladimir Kondratyev, Anton Katilin

removing profiler agent through command line

Postby VARTIKA » Thu Sep 05, 2019 3:55 pm

Hi there,

I have a requirement where in I have to attach a profiler to running jvm. I can see the command to attach a profiler but can not find a way to remove the agent without restarting the jvm. Is there any way to remove it once I am done with my analysis.

Best Regards,
Vartika
VARTIKA
 
Posts: 3
Joined: Thu Sep 05, 2019 3:44 pm

Re: removing profiler agent through command line

Postby Anton Katilin » Thu Sep 05, 2019 8:01 pm

Hello Vartika,

There is no way to unload the agent from the JVM. The overhead of having the agent loaded is negligible unless you explicitly run heavy weight profiling activities.

Best regards,
Anton
Anton Katilin
 
Posts: 5825
Joined: Wed Aug 11, 2004 8:37 am

Re: removing profiler agent through command line

Postby VARTIKA » Fri Sep 06, 2019 1:32 pm

Thanks for a quick reply Anton. Is there any option to ssh to remote jvm without restarting the jvm with agent through command line ? I can see ssh connection option in UI but couldn't find anything similar for command line.

Thanks,
Vartika
VARTIKA
 
Posts: 3
Joined: Thu Sep 05, 2019 3:44 pm

Re: removing profiler agent through command line

Postby Anton Katilin » Fri Sep 06, 2019 1:45 pm

Hello Vartika,

You can manually ssh to the remote host and use the console attach wizard:
https://www.yourkit.com/docs/java/help/ ... wizard.jsp

Best regards,
Anton
Anton Katilin
 
Posts: 5825
Joined: Wed Aug 11, 2004 8:37 am

Re: removing profiler agent through command line

Postby VARTIKA » Fri Sep 06, 2019 4:11 pm

Yes but for that Your kit has to be installed on remote serve . I was wondering if I can use the listen startup option to attach a agent from local as I was able to do via ui using ssh tunnel option. But I don't see any option to specify user name, password , java path via command line while using the listen option.
VARTIKA
 
Posts: 3
Joined: Thu Sep 05, 2019 3:44 pm

Re: removing profiler agent through command line

Postby Anton Katilin » Mon Sep 09, 2019 7:51 am

Yes but for that Your kit has to be installed on remote serve .
No. You just need to download and unpack corresponding archive file. Please follow the instructions.
I was wondering if I can use the listen startup option to attach a agent from local as I was able to do via ui using ssh tunnel option.

The attach wizard allows to specify startup options. There is a dedicated step for that.
But I don't see any option to specify user name, password , java path via command line while using the listen option.
There is no user name or password among agent options. In the UI you were asked to provide them in order to let the profiler UI connect via SSH. If you want to do that without the profiler, you should SSH yourself via ssh command or any other tool you use for that purpose.
Anton Katilin
 
Posts: 5825
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 18 guests

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.