Object recording not working

Questions about YourKit Java Profiler
Post Reply
jvyas
Posts: 1
Joined: Wed Sep 23, 2015 12:31 am

Object recording not working

Post by jvyas »

Hi,

I am using yourkit to attach to a remote process in production and using ssh port forwarding to debug a excess garbage collection issue.

But when I click on "Record Object Allocation", the client show a pop up, "Loading classes to instrument..." and gets stuck there. I tried increasing the minimum size to record allocation, and increase sampling rate, but that doesn't help.

Has anyone else seen this issue? I am using YourKit Java Profiler 2015 build 15074.

Thanks,
Jayesh
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Object recording not working

Post by Anton Katilin »

Hi Jayesh

The message "Loading classes to instrument..." means you're using the attach mode:
https://www.yourkit.com/docs/java/help/attach_agent.jsp

As a workaround please run the profiled application with the profiler agent instead:
https://www.yourkit.com/docs/java/help/ ... remote.jsp

To investigate why it works that slowly in attaching for you, we need the profiler agent log file ~/.yjp/log/<session name>-<pid>.log from the remote machine.

Best regards,
Anton
Post Reply