Bob*_*Dem 6 multithreading scala netty playframework
我有一个Play应用程序,它创建了一些应用程序,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在客户端之间共享实例。