Skip to content

Additional JSON optimization mode #564

Closed

Description

@grgrzybek

Jolokia being the fundamental part of https://github.com/hawtio/hawtio/ is roughly mapping Java objects from JMX beans into hashmaps translated into JSON.

Hawtio over time was presenting more and more complex graphs of objects, including Camel routes and ActiveMQ brokers/queues/topics. In particular, when presenting thousands of ActiveMQ queues, we've found that a lot of JSON data is duplicated across similar objects.
Hawtio did some internal optimization and moved identical fragments into kind of shared pool and then hundreds and thousands of objects were simply referring (by unique ID) to the common part.

For Hawtio and ActiveMQ, in some scenario, it allowed us to trim the JSON size from ~40MB to ~300kB and processing time on browser side from ~1 minute to <2 seconds.

The original issue is: https://issues.redhat.com/browse/ENTESB-4055

This is JSON equivalent of (un)famous SOAP Encoding

Activity

  1. added this to the 2.0.0 milestone on Jul 31, 2023
  2. self-assigned this
    on Jul 31, 2023
  3. tadayosi commented on Jul 31, 2023

    @tadayosi
    Member

    Thanks! FYI, this is how Hawtio implements the optimised Jolokia LIST operation:

    https://github.com/hawtio/hawtio/blob/cbfc5bc9113e8cce2ffbe1522f163ce50f6aed48/hawtio-system/src/main/java/io/hawt/jmx/RBACRegistry.java#L84-L112

    This optimisation should be done per domain (e.g. org.apache.camel, org.apache.activemq, etc.) but once implemented at Jolokia we can expand the supported list incrementally.

  4. modified the milestones: 2.0.0, 2.1.0 on Dec 18, 2023
  5. added 5 commits that reference this issue on Aug 1, 2024
  6. added a commit that references this issue on Nov 5, 2024
  7. added a commit that references this issue on Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions