|
@@ -132,7 +132,6 @@ public class MemcachedMonitorImpl { |
|
@@ -132,7 +132,6 @@ public class MemcachedMonitorImpl { |
132
|
long oldSet = MemConstants.MEMCACHED_INFO_MAP.get(url).getOldSet();
|
132
|
long oldSet = MemConstants.MEMCACHED_INFO_MAP.get(url).getOldSet();
|
133
|
info.setCmdSet((cmdSet - oldSet) / 120.0);
|
133
|
info.setCmdSet((cmdSet - oldSet) / 120.0);
|
134
|
}
|
134
|
}
|
135
|
-
|
|
|
136
|
info.setCurConnections(Integer.parseInt(value.get("curr_connections")));
|
135
|
info.setCurConnections(Integer.parseInt(value.get("curr_connections")));
|
137
|
info.setCurItems(Integer.parseInt(value.get("curr_items")));
|
136
|
info.setCurItems(Integer.parseInt(value.get("curr_items")));
|
138
|
long get_hit = Long.parseLong(value.get("get_hits"));
|
137
|
long get_hit = Long.parseLong(value.get("get_hits"));
|
|
@@ -140,7 +139,7 @@ public class MemcachedMonitorImpl { |
|
@@ -140,7 +139,7 @@ public class MemcachedMonitorImpl { |
140
|
long limit_maxbytes = Long.parseLong(value.get("limit_maxbytes"));
|
139
|
long limit_maxbytes = Long.parseLong(value.get("limit_maxbytes"));
|
141
|
long bytes = Long.parseLong(value.get("bytes"));
|
140
|
long bytes = Long.parseLong(value.get("bytes"));
|
142
|
long uptime = Long.parseLong(value.get("uptime"));
|
141
|
long uptime = Long.parseLong(value.get("uptime"));
|
143
|
- LOGGER.debug(url + " monitor info: com_get is {},cmd_set is {},get_hit is {},get_misses is {},limit_maxbytes is {},bytes is {},uptime is {}", cmdGet, cmdSet, get_hit, get_misses, limit_maxbytes, bytes, uptime);
|
142
|
+ LOGGER.info(url + " monitor info: com_get is {},cmd_set is {},get_hit is {},get_misses is {},limit_maxbytes is {},bytes is {},uptime is {}", cmdGet, cmdSet, get_hit, get_misses, limit_maxbytes, bytes, uptime);
|
144
|
if ((get_hit + get_misses) == 0) {
|
143
|
if ((get_hit + get_misses) == 0) {
|
145
|
info.setHitRate("100.0%");
|
144
|
info.setHitRate("100.0%");
|
146
|
} else {
|
145
|
} else {
|
|
@@ -150,6 +149,7 @@ public class MemcachedMonitorImpl { |
|
@@ -150,6 +149,7 @@ public class MemcachedMonitorImpl { |
150
|
info.setUpTime(uptime / (60 * 60 * 24) + " Days");
|
149
|
info.setUpTime(uptime / (60 * 60 * 24) + " Days");
|
151
|
info.setUseMemory(new DecimalFormat("0.00").format(bytes * 1.0 / 1024 / 1024 / 1024) + " G");
|
150
|
info.setUseMemory(new DecimalFormat("0.00").format(bytes * 1.0 / 1024 / 1024 / 1024) + " G");
|
152
|
MemConstants.MEMCACHED_INFO_MAP.put(url, info);
|
151
|
MemConstants.MEMCACHED_INFO_MAP.put(url, info);
|
|
|
152
|
+ LOGGER.info("MemConstants.MEMCACHED_INFO_MAP all key is {}",MemConstants.MEMCACHED_INFO_MAP.keySet());
|
153
|
}
|
153
|
}
|
154
|
}
|
154
|
}
|
155
|
}
|
155
|
}
|