[英]How to exactly fix “You are creating too many HashedWheelTimer instances”?
我有一个Play应用程序,它创建了一些WSClient
因为我必须限制每个WSClient
的最大连接数量(因为它们用于不同的目的和限制是不同的),并且没有此功能的全局设置。 我在日志中得到这个:
ResourceLeakDetector - LEAK: You are creating too many HashedWheelTimer instances. HashedWheelTimer is a shared resource that must be reused across the JVM,so that only a few instances are created.
我试图找到一个解决方案,但不幸的是我不知道如何在客户端之间共享HashedWheelTimer
实例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.