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

Including pyroscope java agent cause app to not run.

Open kadaan opened this issue 3 years ago • 1 comments

My app is running on Java 17, and when I include the pyroscope java agent it fails to start with only the following logs:

2022-09-03 22:03:39.792 [WARN] PYROSCOPE_SERVER_ADDRESS is not defined, using http://localhost:4040
2022-09-03 22:03:40.328 [DEBUG] Uploading started
2022-09-03 22:03:40.330 [DEBUG] Config Config{applicationName='gobblin.new', profilingInterval=PT0.01S, profilingEvent=ITIMER, profilingAlloc='', profilingLock='', uploadInterval=PT10S, logLevel=DEBUG, serverAddress='http://localhost:4040', authToken='null', timeseriesName='gobblin.new.itimer', format=COLLAPSED, pushQueueCapacity=32}
2022-09-03 22:03:40.334 [INFO] Profiling started

Then the app ends.

kadaan avatar Sep 04 '22 05:09 kadaan

Which jvm do you use specifically? Docker? Does it happen with hello-world? What does your app does? What dependencies do you have? How can I reproduce? Did you try to start agent like this https://pyroscope.io/docs/java/#start-pyroscope-from-apps-java-code?

I've just tried to profile corretto-17.0.4 and temurin-17.0.4 and everything seem to work

I'd appreciate any bits to help me reproduce the issue.

korniltsev avatar Sep 14 '22 12:09 korniltsev