NO-JIRA: change netty leak detection override to only disable if not specified on command line
This commit is contained in:
parent
53b00e1dd5
commit
127ce3a84a
|
@ -87,9 +87,11 @@ import org.jboss.logging.Logger;
|
||||||
public class NettyAcceptor extends AbstractAcceptor {
|
public class NettyAcceptor extends AbstractAcceptor {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
// Disable resource leak detection for performance reasons by default
|
// Disable default Netty leak detection if the Netty leak detection level system properties are not in use
|
||||||
|
if ( System.getProperty("io.netty.leakDetectionLevel") == null && System.getProperty("io.netty.leakDetection.level") == null) {
|
||||||
ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.DISABLED);
|
ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.DISABLED);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//just for debug
|
//just for debug
|
||||||
private final String protocolsString;
|
private final String protocolsString;
|
||||||
|
|
Loading…
Reference in New Issue