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
What is thre reason here to use synchronized method? registered is alread ConcurrentHashMap.
You can use registered.computeIfAbsent(BaseCollectorConfig key, Function<BaseCollectorConfig, Collector> mappingFunction)
And threads will not be blocked on each method call after first key creation.
The text was updated successfully, but these errors were encountered:
Hi! Thanks for the issue and the potential fix. I however, don't actively maintain this much anymore so am unlikely to do the work. Happy to evaluate and potentially merge a pull request though!
During load test with about 2k threads about 30% of all threads are blocked at:
com.github.johrstrom.collector.JMeterCollectorRegistry#getOrCreateAndRegister(BaseCollectorConfig cfg)
What is thre reason here to use synchronized method?
registered is alread ConcurrentHashMap.
You can use
registered.computeIfAbsent(BaseCollectorConfig key, Function<BaseCollectorConfig, Collector> mappingFunction)
And threads will not be blocked on each method call after first key creation.
The text was updated successfully, but these errors were encountered: