[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-serviceability-dev
Subject: RFR: 8299234: JMX Repository.query performance
From: Alexey Bakhtin <abakhtin () openjdk ! org>
Date: 2022-12-21 18:58:50
Message-ID: EqRxlqWX3U3hkJ0j0jd5bGsNmSvHCwLGtri72WTbKKw=.dc750454-40ae-4ebe-ba7e-af9cbaa5f5e3 () github ! com
[Download RAW message or body]
Please find a patch to improve JMX Repository.query performance
Using ObjectName.apply() allows significantly decrease memory usage and the number of GC cycles:
Before:
$ java test 1000000 1000000
Test PASSED in 8943169791 ns.
GC: G1 Young Generation getCollectionCount()=177 getCollectionTime()=118
After:
$ java test 1000000 1000000
Test PASSED in 4808213917 ns.
GC: G1 Young Generation getCollectionCount()=88 getCollectionTime()=53
Private ObjectName.matchDomains() method is also updated to minimize unnecessary memory allocation.
All javax/management jtreg tests passed successfully.
-------------
Commit messages:
- 8299234: JMX Repository.query performance
Changes: https://git.openjdk.org/jdk/pull/11758/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11758&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8299234
Stats: 129 lines in 3 files changed: 2 ins; 115 del; 12 mod
Patch: https://git.openjdk.org/jdk/pull/11758.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11758/head:pull/11758
PR: https://git.openjdk.org/jdk/pull/11758
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic