Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy to use performance and memory .NET profiler for Windows and Linux.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

Problem restarting applications that use YourKit

Moderators: Vladimir Kondratyev, Anton Katilin

Problem restarting applications that use YourKit

Postby IsaacHirt » Fri Jul 23, 2021 4:50 pm

I have various applications that are running in a Kubernetes cluster, and are configured to allow YourKit to connect and profile the running application. My problem is if Kubernetes terminates and subsequently restart the application, YourKit seems to fail to properly initialize and prevents the application from successfully initializing. The entirety of the log files regarding this are:

[YourKit Java Profiler 2020.9-b419] Log file: /root/.yjp/log/Tomcat-1.log
20.9-419 0.282: error: agentInit: Core.init() returned false

If the -agentpath JVM arguements which enable yourkit are removed, then the application is able to be restarted correctly.

What can be done to resolve this issue?
IsaacHirt
 
Posts: 2
Joined: Fri Jul 23, 2021 4:33 pm

Re: Problem restarting applications that use YourKit

Postby Anton Katilin » Mon Jul 26, 2021 6:57 am

Is the problem reproducible with the latest version YourKit Java Profiler 2021.3? The version you use is no longer supported.

Please try the agent startup option "skip_advanced_port_check":
https://www.yourkit.com/docs/java/help/ ... port_check
Anton Katilin
 
Posts: 6053
Joined: Wed Aug 11, 2004 8:37 am

Re: Problem restarting applications that use YourKit

Postby IsaacHirt » Tue Jul 27, 2021 5:55 pm

Both of these options fixed the problem for me. Thanks!
IsaacHirt
 
Posts: 2
Joined: Fri Jul 23, 2021 4:33 pm

Re: Problem restarting applications that use YourKit

Postby Anton Katilin » Tue Jul 27, 2021 6:55 pm

Since YourKit Java Profiler 2021.3 the option "skip_advanced_port_check" is implied when the agent detects it runs under Kubernetes.
Anton Katilin
 
Posts: 6053
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 1 guest

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.