JDK-8312625 : Test serviceability/dcmd/vm/TrimLibcHeapTest.java failed: RSS use increased
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17,21,22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2023-07-24
  • Updated: 2023-09-11
  • Resolved: 2023-07-26
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 21 JDK 22
21.0.1Fixed 22 b08Fixed
Related Reports
Blocks :  
Description
----------System.out:(47/2726)*----------
Running DCMD 'System.trim_native_heap' through 'JMXExecutor'
---------------- stdout ----------------
Trim native heap: RSS+Swap: 125M->125M (+112K)

---------------- stderr ----------------

----------------------------------------

test TrimLibcHeapTest.jmx(): failure
java.lang.RuntimeException: 'Trim native heap: RSS\\+Swap: \\d+[BKMG]->\\d+[BKMG] \\(-\\d+[BKMG]\\)' missing from stdout/stderr

The test expects to see a final negative amount, but in this case RSS has increased by 112K
Comments
Fix Request (17u) Same as for 21u, improves test stability. Test passes in SAP's nightlies.
04-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1718 Date: 2023-09-01 12:18:59 +0000
01-09-2023

Fix Request (21u) Improves test stability. Applies cleanly. Test passes.
11-08-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u/pull/53 Date: 2023-08-11 10:05:21 +0000
11-08-2023

Backporter note: This issue is not connected to the native autotrim feature added with JDK-8293114. This is just a test for the (much older) manual trimming via jcmd.
26-07-2023

Changeset: 117f42db Author: Thomas Stuefe <stuefe@openjdk.org> Date: 2023-07-26 05:46:13 +0000 URL: https://git.openjdk.org/jdk/commit/117f42dbe9a78bcf43bdf3873d5d86a19a9092d3
26-07-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15009 Date: 2023-07-25 06:28:16 +0000
25-07-2023