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.

Attach with PID using Profile API

Moderators: Vladimir Kondratyev, Anton Katilin

Attach with PID using Profile API

Postby iamjat » Mon Jul 10, 2017 10:31 am


I have a need to attach profile using API and passing PID. In Controller API, i dont see a method to pass PID. Its only possible to pass the agent port number which means i need to run my process with agent. Is it possible to attach to a process using PID while using Controller API?

Posts: 1
Joined: Mon Jul 10, 2017 9:50 am

Re: Attach with PID using Profile API

Postby Anton Katilin » Mon Jul 10, 2017 12:42 pm

Hi Jatin

The profiler API implies that the agent has loaded, either on start or via attaching it to a running JVM.

You should first run the attach wizard command with the PID specified as described here:
https://www.yourkit.com/docs/java/help/ ... wizard.jsp

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

Return to Java Profiler

Who is online

Users browsing this forum: No registered users 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.