RFR: 8299234: JMX Repository.query performance [v5]

Alexey Bakhtin abakhtin at openjdk.org
Thu Feb 2 13:42:51 UTC 2023


> 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.

Alexey Bakhtin has updated the pull request incrementally with one additional commit since the last revision:

  Optimize ObjectName.matchDomains

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/11758/files
  - new: https://git.openjdk.org/jdk/pull/11758/files/594dfa5b..0bdbbcb5

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11758&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11758&range=03-04

  Stats: 10 lines in 2 files changed: 9 ins; 0 del; 1 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


More information about the serviceability-dev mailing list