JDK-8261297 : NMT: Final report should use scale 1
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-02-08
  • Updated: 2021-09-21
  • Resolved: 2021-02-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17
11.0.14Fixed 17 b10Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
If PrintNMTStatistics is specified, we write a NMT report to stdout before exiting the VM. This is useful for leak analysis.

However, the report uses the standard "K" scale, which is shouldn't, since this omits small leaks < 1K. Hence it should use scale=1. This would provide us with a precise exit report. Note that for this to work JDK-8261238 has to be fixed too, which is a separate issue.
Comments
Fix Request: I'd like to downport this change since it helps with analyzing memory leaks. The fix has been tested extensively in our SAP nightlies. It applies cleanly to 11u-dev. It carries a minimal risk.
15-09-2021

Changeset: 1740de2a Author: Thomas Stuefe <stuefe@openjdk.org> Date: 2021-02-11 14:58:57 +0000 URL: https://git.openjdk.java.net/jdk/commit/1740de2a
11-02-2021