Skip to content

Commit

Permalink
limit client datasize report
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosfu committed May 16, 2016
1 parent 4e55227 commit e49837c
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -42,7 +42,11 @@ public void save(ClientReportBean clientReportBean) {
int valueMapSize = MapUtils.getInteger(otherInfo, ClientReportConstant.VALUE_MAP_SIZE, 0);
int exceptionMapSize = MapUtils.getInteger(otherInfo, ClientReportConstant.EXCEPTION_MAP_SIZE, 0);
int collectMapSize = MapUtils.getInteger(otherInfo, ClientReportConstant.COLLECTION_MAP_SIZE, 0);

// 只记录大于minSize
int minSize = 100;
if (costMapSize < minSize && valueMapSize < minSize && exceptionMapSize < minSize && collectMapSize < minSize) {
return;
}
// 设置实体
AppClientDataSizeStat appClientDataSizeStat = new AppClientDataSizeStat();
appClientDataSizeStat.setClientIp(clientIp);
Expand Down

0 comments on commit e49837c

Please sign in to comment.