You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
tadayosi commentedon Jul 31, 2023
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.[#564] Turn DataUpdater into a discoverable service
[#564] Add documentation fragment about discoverable DataUpdaters
[#564] Add "listKeys" option to obtain ObjectName keys in list respose
[#564] Add "listKeys" option to obtain ObjectName keys in list response
[Fixes #564] Extensible implementation of "optimized list mode" + docs
[#564] Add missing "listCache" processing param to JS files
[jolokia#564] Add missing "listCache" processing param to JS files