mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-18 01:06:03 +10:00
[강운덕] [PROFILER-31] concurrentMap 의 기본사이즈를 줄임. reader가 추가적으로 있는 상황이라. 동시성 레벨을 높일 필요가 없을것 같음.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@3913 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -15,7 +15,7 @@ public class DefaultResponseMetric implements ResponseMetric {
|
||||
|
||||
private final ServiceType serviceType;
|
||||
// TODO lru cache로 변경할것. lru로 변경할 경우 counting이 틀려질 가능성이 있으나, oom이 발생하는것을 막을수 있음.
|
||||
private final ConcurrentMap<String, Histogram> histogramMap = new ConcurrentHashMap<String, Histogram>(256, 0.75f, 128);
|
||||
private final ConcurrentMap<String, Histogram> histogramMap = new ConcurrentHashMap<String, Histogram>();
|
||||
|
||||
public DefaultResponseMetric(ServiceType serviceType) {
|
||||
if (serviceType == null) {
|
||||
|
||||
@@ -13,7 +13,7 @@ import java.util.concurrent.ConcurrentMap;
|
||||
*/
|
||||
public class MetricRegistry {
|
||||
|
||||
private final ConcurrentMap<Short, ResponseMetric> rpcCache = new ConcurrentHashMap<Short, ResponseMetric>(256, 0.75f, 128);
|
||||
private final ConcurrentMap<Short, ResponseMetric> rpcCache = new ConcurrentHashMap<Short, ResponseMetric>();
|
||||
|
||||
private final Histogram responseMetric;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user