Attach with PID using Profile API

Questions about YourKit Java Profiler
Post Reply
iamjat
Posts: 1
Joined: Mon Jul 10, 2017 9:50 am

Attach with PID using Profile API

Post by iamjat »

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

Re: Attach with PID using Profile API

Post by Anton Katilin »

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
Post Reply