Skip to content

Commit f3f22b0

Browse files
committed
set the maximumSize to 300_000
1 parent 3e41f54 commit f3f22b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/src/main/java/org/tron/core/services/jsonrpc/TronJsonRpcImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public enum RequestSource {
113113
private static final String FILTER_NOT_FOUND = "filter not found";
114114
public static final int EXPIRE_SECONDS = 5 * 60;
115115
private static final Cache<Integer, LogFilterElement> logElementCache = CacheBuilder.newBuilder()
116-
.maximumSize(100_000L)
116+
.maximumSize(300_000L) // 300s * tps(1000) * 1 log/tx ≈ 300_000
117117
.expireAfterWrite(EXPIRE_SECONDS, TimeUnit.SECONDS)
118118
.recordStats().build(); //LRU cache
119119
/**

0 commit comments

Comments
 (0)