eclipse-mat / mat

The Eclipse Memory Analyzer is a fast and feature-rich Java heap dump analyzer that helps you find memory leaks and reduce memory consumption.
https://eclipse.dev/mat/
Eclipse Public License 2.0
57 stars 10 forks source link

Check if dump is truncated if possible #44

Open eclipsewebmaster opened 4 months ago

eclipsewebmaster commented 4 months ago

| --- | --- | | Bugzilla Link | 582791 | | Status | ASSIGNED | | Importance | P3 normal | | Reported | Dec 18, 2023 15:05 EDT | | Modified | Jan 06, 2024 06:02 EDT | | Reporter | Kevin Grigorenko |

Description

Core dump truncation is a common issue when loading dumps for IBM Java and IBM Semeru Runtimes. The most common manifestation of this is the error, "Unable to find Java runtime [...]". Recent versions of DTFJ have the Image.isTruncated method that checks for this condition: https://eclipse.dev/openj9/docs/api/jdk8/platform/dtfj/com/ibm/dtfj/image/Image.html#isTruncated--

It would be nice if MAT performed this check, if available, and gave the user a more detailed error message along with common causes of truncation.

eclipsewebmaster commented 4 months ago

By Kevin Grigorenko on Dec 29, 2023 10:55

https://git.eclipse.org/c/mat/org.eclipse.mat.git/commit/?id=0f522dfba36f39b05a1d2cfd2d973e17a05b2547

https://git.eclipse.org/r/c/mat/org.eclipse.mat/+/205881