sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

JVM Profiling Windows support

Open adinauer opened this issue 3 months ago • 1 comments

Description

Our Java SDK currently does not support Windows.

There is no open source version of async-profiler for Windows. Your best bet on Windows is probably JDK Flight Recorder. It comes with a number of flaws, but given the limitations of the platform, it is hard to achieve the same level of Java profiling quality as on Linux or macOS anyway.

See https://github.com/getsentry/sentry-java/issues/2635#issuecomment-1588345999

async-profiler is not planning to add Windows support directly: https://github.com/async-profiler/async-profiler/issues/188.

This means we'd have to look into other ways of capturing profiles for Windows as suggested in the comment quoted and linked above. We'd have to check with legal whether we could use this: https://docs.oracle.com/javacomponents/jmc-5-4/jfr-runtime-guide/about.htm#JFRUH170 Seems like it requires a commercial license. Assuming each customer would have to have that license.

adinauer avatar Oct 03 '25 12:10 adinauer

JAVA-195

linear[bot] avatar Oct 03 '25 12:10 linear[bot]