YourKit cause thread handle leak on Windows server

Questions about YourKit Java Profiler
Post Reply
bdarwin
Posts: 4
Joined: Thu Sep 12, 2024 4:15 pm

YourKit cause thread handle leak on Windows server

Post by bdarwin »

Hi,
I have Java services running on Windows Server 2016 build 14393, ProLiant BL460c Gen10.
I noticed that when profiler is connected remotely, even without any profiling, I noticed YJP agent keeps creating threads on the service, though threads are destroyed, windows thread handles are not closed. These handles keep increasing forever even after YourKit is closed, and stops only after the service is restarted.
These handles are shown on process explorer.
Is there any known issue around this?
Vladimir Kondratyev
Posts: 1654
Joined: Tue Aug 10, 2004 7:52 pm

Re: YourKit cause thread handle leak on Windows server

Post by Vladimir Kondratyev »

Thank you for reporting this issue.

1) What is the exact version of YourKit Java Profiler agent you are using?

2) How did you determine that the open thread handles belong to the YourKit agent? What tool did you use?

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
bdarwin
Posts: 4
Joined: Thu Sep 12, 2024 4:15 pm

Re: YourKit cause thread handle leak on Windows server

Post by bdarwin »

Yourkit 2023.5-b225
Jdk runtime Azul17
Windows 10
Vladimir Kondratyev
Posts: 1654
Joined: Tue Aug 10, 2004 7:52 pm

Re: YourKit cause thread handle leak on Windows server

Post by Vladimir Kondratyev »

1) YourKit Java Profiler 2023.5 has reached end-of-life, and its support is discontinued. Does the problem reproducible with the latest version 2024.3?

2) How did you determine that the open thread handles belong to the YourKit agent? What tool did you use?

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
bdarwin
Posts: 4
Joined: Thu Sep 12, 2024 4:15 pm

Re: YourKit cause thread handle leak on Windows server

Post by bdarwin »

I understand it reached end of life but i am trying to understand if there is a known issue.

We used ProcMon, ProcExplorer and thread dumps tried to math tids and thread creations belong to YJP agents.
Vladimir Kondratyev
Posts: 1654
Joined: Tue Aug 10, 2004 7:52 pm

Re: YourKit cause thread handle leak on Windows server

Post by Vladimir Kondratyev »

I understand it reached end of life but i am trying to understand if there is a known issue.
We are not aware of this issue in version 2024.3. Therefore, we ask that you test the latest version to confirm whether the problem has been fixed or still exists.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
bdarwin
Posts: 4
Joined: Thu Sep 12, 2024 4:15 pm

Re: YourKit cause thread handle leak on Windows server

Post by bdarwin »

As much as i would love to upgrade, i don't have 2024 license thus issue is only in Prod it’s extremely difficult to experiment with other versions. If you confirm if there is an issue with 2023 we will raise necessary requests to purchase renewal. If not we may have to switch to JFR. :(
Vladimir Kondratyev
Posts: 1654
Joined: Tue Aug 10, 2004 7:52 pm

Re: YourKit cause thread handle leak on Windows server

Post by Vladimir Kondratyev »

We are not aware of any leak of thread handles in version 2024.3. Please download version 2024.3 (there is a 15-day free trial period) and check whether the problem is reproducible for you with the bundled demo app. If the problem exists in 2024.3, we will be happy to perform further investigation.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
utkini
Posts: 1
Joined: Tue Sep 17, 2024 3:44 am

Re: YourKit cause thread handle leak on Windows server

Post by utkini »

Vladimir Kondratyev wrote: Tue Sep 17, 2024 9:36 am We are not aware of any leak of thread handles in version 2024.3. Please download version 2024.3 (there is a 15-day free trial period) and check whether the problem is reproducible for you with the bundled demo app. If the problem exists in 2024.3, we will be happy to perform further investigation.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Is it expected that you have dedicated testers rather than relying on paying customers to do your job, especially when the test case is straightforward.
Additionally, limiting support to just one year is not client-friendly. In large companies, upgrading versions can be complex and time-consuming. But it seems that customer care is not a priority, particularly when the significance of YK is diminished due to native JDK profiling offering nearly similar benefits.
Vladimir Kondratyev
Posts: 1654
Joined: Tue Aug 10, 2004 7:52 pm

Re: YourKit cause thread handle leak on Windows server

Post by Vladimir Kondratyev »

The case is not "straightforward" because we cannot reproduce it internally, and nobody else has reported similar issues. However, we will be happy to investigate it further if you can reproduce the problem in your environment. In that case, we will need some assistance from your side.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Vladimir Kondratyev
Posts: 1654
Joined: Tue Aug 10, 2004 7:52 pm

Re: YourKit cause thread handle leak on Windows server

Post by Vladimir Kondratyev »

We have found and fixed an issue in the Windows version of the profiler agent that could cause thread handle leak. The fix will be released this month, but end-of-life version 2023.5 will not receive it.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Post Reply