hawtio: Unable to download Flight Recorder recordings

I running a Spring Boot 2.3 application inside Docker container. I using Azul Java 11.

Inside, I using group: 'io.hawt', name: 'hawtio-springboot', version: '2.14.1' dependency with the following configuration:

spring.jmx.enabled=true
management.endpoint.health.probes.enabled=true
management.endpoints.web.exposure.include=health,jolokia,hawtio
management.endpoint.health.show-details=always
management.endpoint.health.group.readiness.include=*
management.endpoint.health.group.liveness.include=ping
hawtio.authenticationEnabled=false

I able to access “Diagnostics” tab and to start recording. After I stop recording, new recording row added to the list of the recordings with download button in the “File/Download” column.

When I clicking download button, a file downloaded always with the same content:

{"request":{"mbean":"jdk.management.jfr:type=FlightRecorder","arguments":["6"],"type":"exec","operation":"downloadRecording(long)"},"error_type":"java.lang.IllegalArgumentException","error":"java.lang.IllegalArgumentException : No operation downloadRecording found on MBean jdk.management.jfr:type=FlightRecorder","status":400}

If I looking into exposed operations of the FlightRecorderMXBean, indeed there is no such operation such as “downloadRecording”.

What do I missing? How I can download / export recorded recordings? Where they are expected to be stored on the file system?

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 1
  • Comments: 33 (25 by maintainers)

Commits related to this issue

Most upvoted comments

@asterioproba Yes, I don’t think the link works on Hawtio Online. We should disable the link if the plugin detects it’s on Hawtio Online.

@asterioproba : That link appears to go straight to Jolokia. The downloadrecording is kind of an illusion and is only supported when you go via the hawtio proxy.

Okay thanks @illidan80 . Will look into that.

Thanks. I think I was onto something last night, but had to leave it there. I am leaving for a few days on a short winter break today though. To cabin without water, electricity or network 😃 So the fix will be on hold for a bit still.

@skarsaune please note it doesn’t play well with tomcat as well (tested with 9.0.56)

@skarsaune What I normally do is as follows:

mvn clean install
mvn spring-boot:run -pl examples/springboot

If you have problems with springboot itests then you can try mvn clean install -DskipTests.

Once you’ve launched the spring boot example you can access the console at http://localhost:10001/actuator/hawtio/

@tadayosi : Hmm need to investigate a bit. Will try to have a look later.

@illidan80 Thanks for your investigation. I see what’s the problem now. No it’s not your responsibility it’s indeed a bug in hawtio-springboot. I’ll fix it soon. Thanks for reporting.

Well, on my environment I getting the error I described…