JDK-8286198 : [linux] Fix process-memory information
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 16,17,18,19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-05-05
  • Updated: 2022-05-19
  • Resolved: 2022-05-10
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 JDK 18 JDK 19
11.0.16Fixed 17.0.4Fixed 18.0.2Fixed 19 b22Fixed
Related Reports
Relates :  
Description
We use mallinfo/mallinfo2 to obtain information about the glibc used memory, but there is an error which causes it to be correct only for fine granular malloc allocations. glibc puts larger allocations in mmap-allocated areas, which were missing from the old calculation.
Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/1078 Date: 2022-05-10 14:16:13 +0000
10-05-2022

Fix Request (11): I'd like this fix downported, since it helps with analysing native oom situations. Fix is low risk and applies cleanly.
10-05-2022

Fix Request (18): I'd like this fix downported, since it helps with analysing native oom situations. Fix is low risk and applies cleanly.
10-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk18u/pull/126 Date: 2022-05-10 14:04:35 +0000
10-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/391 Date: 2022-05-10 13:33:14 +0000
10-05-2022

Fix Request (17): I'd like this fix downported, since it helps with analysing native oom situations. Fix is low risk and applies cleanly.
10-05-2022

Changeset: 9e320d9a Author: Thomas Stuefe <stuefe@openjdk.org> Date: 2022-05-10 13:28:40 +0000 URL: https://git.openjdk.java.net/jdk/commit/9e320d9ab1813eda705d7318ef964092c50d1ade
10-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8553 Date: 2022-05-05 14:55:01 +0000
05-05-2022