Re: Question about managedLedgerCacheEvictionFrequency

2021-03-30 Thread Michael Marshall
+1 I would like to better understand these trade offs as well. Thanks, Michael Marshall On Fri, Mar 26, 2021 at 3:09 PM Lari Hotari wrote: > Hi all, > > A broker with a lot of topics (10k+) consumes a considerable amount of CPU > even while idling (no messages being processed). > > In profiling

Question about managedLedgerCacheEvictionFrequency

2021-03-26 Thread Lari Hotari
Hi all, A broker with a lot of topics (10k+) consumes a considerable amount of CPU even while idling (no messages being processed). In profiling, I can see that most CPU is spent in ManagedLedgerFactorImpl.doCacheEviction. It's also a major source of object allocations (when a broker is idling).