Code: Select all
-agentpath:/usr/local/YourKit-JavaProfiler-2020.9/bin/linux-x86-64/libyjpagent.so=port=10002,listen=all -jar ...
When I try and connect from the GUI I provide the node name in the k8s cluster where the app is running as the hostname and the profiler agent port is the port that is provided by my service. I see that the connection is green so when I click on it I see it says remote application is being profiled. After a couple of seconds it terminates and says the application was terminated or connection is lost. My app hasn't restarted at all so I don't know why the connection terminated. In the logs in k8s for the Yourkit I see the following:
Code: Select all
error: Exception in dispatchRequest(): java.io.EOFException
at java.base/java.io.DataInputStream.readFully(DataInputStream.java:202)
at java.base/java.io.DataInputStream.readLong(DataInputStream.java:421)
at com.yourkit.f.au.a(a:50)
at com.yourkit.runtime.RequestProcessing.dispatchRequest(a:30)
at com.yourkit.runtime.Core$5.run(a:646)
at java.base/java.lang.Thread.run(Unknown Source)