mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 12:46:05 +01:00
Allow using properties to change leak detection level.
This commit is contained in:
parent
d76c8d4f33
commit
fa828eba31
@ -227,7 +227,10 @@ public class BungeeCord extends ProxyServer
|
||||
{
|
||||
System.setProperty( "java.net.preferIPv4Stack", "true" ); // Minecraft does not support IPv6
|
||||
System.setProperty( "io.netty.selectorAutoRebuildThreshold", "0" ); // Seems to cause Bungee to stop accepting connections
|
||||
ResourceLeakDetector.setEnabled( false ); // Eats performance
|
||||
if ( System.getProperty( "io.netty.leakDetectionLevel" ) == null )
|
||||
{
|
||||
ResourceLeakDetector.setLevel( ResourceLeakDetector.Level.DISABLED ); // Eats performance
|
||||
}
|
||||
|
||||
eventLoops = PipelineUtils.newEventLoopGroup( 0, new ThreadFactoryBuilder().setNameFormat( "Netty IO Thread #%1$d" ).build() );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user