We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2666f98 commit 2f2e11aCopy full SHA for 2f2e11a
1 file changed
framework/src/main/java/org/tron/core/services/jsonrpc/TronJsonRpcImpl.java
@@ -169,7 +169,12 @@ public enum RequestSource {
169
170
private static final String ERROR_SELECTOR = "08c379a0"; // Function selector for Error(string)
171
private final int filterParallelThreshold = 10000;
172
- private final ForkJoinPool logsFilterPool = new ForkJoinPool(2);
+ /**
173
+ * Using the default maxLogFilterNum of 20,000, a 3-thread pool can keep up with log event
174
+ * processing for each block within the 3-second BLOCK_PRODUCED_INTERVAL. Increasing the thread
175
+ * pool size too much may affect the performance of the main block processing thread.
176
+ */
177
+ private final ForkJoinPool logsFilterPool = new ForkJoinPool(3);
178
/**
179
* thread pool of query section bloom store
180
*/
0 commit comments