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

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

Hi

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?

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


Return to Java Profiler

Who is online

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