mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +00:00
Threading: print fewer warnings of excess closure buildup. We should really use a rate limiter here.
This commit is contained in:
@@ -116,7 +116,7 @@ public class Threading {
|
||||
@Override
|
||||
public void execute(Runnable command) {
|
||||
final int size = tasks.size();
|
||||
if (size > WARNING_THRESHOLD) {
|
||||
if (size == WARNING_THRESHOLD) {
|
||||
log.warn(
|
||||
"User thread has {} pending tasks, memory exhaustion may occur.\n" +
|
||||
"If you see this message, check your memory consumption and see if it's problematic or excessively spikey.\n" +
|
||||
|
Reference in New Issue
Block a user