Connection to your kit keep crashing

Questions about YourKit Java Profiler
Post Reply
avi
Posts: 7
Joined: Sun Nov 19, 2017 10:32 am

Connection to your kit keep crashing

Post by avi »

Hi,
I am using yourkit 1.8.0.112 (64). I am trying to connect to remote machine .
I am running the project with

Code: Select all

-XX:+StartAttachListener
option and then attaching to the process

Code: Select all

sudo bin/yjp.sh -attach 17130
. it seems that it connectected and even shows data and after couple of minutes the connection crashed Image: https://drive.google.com/open?id=1IRKFl ... mQtG4SBN7r . Worth to mention that there are two attached processes on that machine - is that a problem? please advise
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Connection to your kit keep crashing

Post by Anton Katilin »

Could you please provide the profiler agent log file <user home>/.yjp/log/<session name>-<log>.log

Please note that instead of attaching the agent to a running JVM you may start the JVM with the agent: https://www.yourkit.com/docs/java/help/attach_agent.jsp
avi
Posts: 7
Joined: Sun Nov 19, 2017 10:32 am

Re: Connection to your kit keep crashing

Post by avi »

actually I do not see any log files as described.
avi
Posts: 7
Joined: Sun Nov 19, 2017 10:32 am

Re: Connection to your kit keep crashing

Post by avi »

Anton Katilin wrote:Could you please provide the profiler agent log file <user home>/.yjp/log/<session name>-<log>.log

Please note that instead of attaching the agent to a running JVM you may start the JVM with the agent: https://www.yourkit.com/docs/java/help/attach_agent.jsp
@Anthon
My bad found the file, you can find it here: https://drive.google.com/open?id=1oLxx0 ... UKvAyv8_SD

Regarding starting the jvm with agent is relevant to local environment isn't it ? I am running the profiler on remote
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Connection to your kit keep crashing

Post by Anton Katilin »

Hello,
My bad found the file, you can find it here: https://drive.google.com/open?id=1oLxx0 ... UKvAyv8_SD
It's likely a user mismatch problem. Under which user do you run the process which you want to profile?

Please try attaching without "sudo".
Regarding starting the jvm with agent is relevant to local environment isn't it ? I am running the profiler on remote
You can start an application with the profiler agent on a remote host as well:
https://www.yourkit.com/docs/java/help/ ... remote.jsp

Best regards,
Anton
Post Reply