0 Replies Latest reply on Feb 13, 2014 4:46 AM by Alfie Kirkpatrick

    Instrumenting AsyncCacheWriter

    Alfie Kirkpatrick Newbie

      Hi, for our application the state of the modification queue and threadpool for async writes are critical metrics. We are using this feature to deal with bursts in load, but obviously if the load is sustained the queue will eventually be exhausted and writes will block the main caller thread.

       

      There doesn't appear to be any JMX instrumentation for this class at the moment. I'd like to understand if this is something that's been considered -- perhaps it's already planned to add.

       

      Failing that, are there any suggestions on how to add instrumentation given the current codebase. The key fields: 'executor' and 'state' are private without getters so without either copying the whole class or resorting to reflection hacks I'm a bit stuck!

       

      Many thanks,

      Alfie.