The diagnostic heap dump endpoint /heapDump/ cannot be used to download heap dumps anymore because it does not meet the requirements of openjdk/jdk@fb87831: The temp file has a hprof suffix, not .hprof, so does not pass this check.
This was introduced in:
https://www.oracle.com/java/technologies/javase/7u151-relnotes.html
https://www.oracle.com/java/technologies/javase/8u141-relnotes.html
https://www.oracle.com/java/technologies/javase/9-relnotes.html
A workaround would be to set the system property jdk.management.heapdump.allowAnyFileSuffix, which can be done while Jenkins is running, via the script console.
Originally reported by
danielbeck, imported from: Jenkins cannot generate heap dumps on OpenJDK/HotSpot releases since 2017
- assignee:
balaji_sivasakthi
- status: Resolved
- priority: Minor
- component(s): core
- label(s): hacktoberfest, help-wanted, newbie-friendly
- resolution: Fixed
- resolved: 2024-01-24T21:39:44+00:00
- votes: 0
- watchers: 2
- imported: 2025-11-24
Raw content of original issue
The diagnostic heap dump endpoint /heapDump/ cannot be used to download heap dumps anymore because it does not meet the requirements of openjdk/jdk@fb87831: The temp file has a hprof suffix, not .hprof, so does not pass this check.
This was introduced in:
https://www.oracle.com/java/technologies/javase/7u151-relnotes.html
https://www.oracle.com/java/technologies/javase/8u141-relnotes.html
https://www.oracle.com/java/technologies/javase/9-relnotes.html
A workaround would be to set the system property jdk.management.heapdump.allowAnyFileSuffix, which can be done while Jenkins is running, via the script console.
The diagnostic heap dump endpoint /heapDump/ cannot be used to download heap dumps anymore because it does not meet the requirements of openjdk/jdk@fb87831: The temp file has a hprof suffix, not .hprof, so does not pass this check.
This was introduced in:
https://www.oracle.com/java/technologies/javase/7u151-relnotes.html
https://www.oracle.com/java/technologies/javase/8u141-relnotes.html
https://www.oracle.com/java/technologies/javase/9-relnotes.html
A workaround would be to set the system property jdk.management.heapdump.allowAnyFileSuffix, which can be done while Jenkins is running, via the script console.
Originally reported by
danielbeck, imported from: Jenkins cannot generate heap dumps on OpenJDK/HotSpot releases since 2017
Raw content of original issue