netty 服务端启动日志
所属分类 netty
浏览量 1399
08:08:00,729 DEBUG main io.netty.util.internal.logging.InternalLoggerFactory io.netty.util.internal.logging.InternalLoggerFactory.newDefaultFactory(InternalLoggerFactory.java:47) - Using Log4J as the default logging framework
日志框架检测 , 依次检测 Slf4J Log4J Log4J2 JdkLogger
事件循环 boss线程组 和 IO线程组初始化
08:08:00,735 DEBUG main io.netty.channel.MultithreadEventLoopGroup io.netty.channel.MultithreadEventLoopGroup.(MultithreadEventLoopGroup.java:44) - -Dio.netty.eventLoopThreads: 8
08:08:00,769 DEBUG main io.netty.channel.nio.NioEventLoop io.netty.channel.nio.NioEventLoop.(NioEventLoop.java:104) - -Dio.netty.noKeySetOptimization: false
08:08:00,772 DEBUG main io.netty.channel.nio.NioEventLoop io.netty.channel.nio.NioEventLoop.(NioEventLoop.java:105) - -Dio.netty.selectorAutoRebuildThreshold: 512
平台信息检测 PlatformDependent 使用 PlatformDependent0
08:08:00,796 DEBUG main io.netty.util.internal.PlatformDependent io.netty.util.internal.PlatformDependent.isOsx0(PlatformDependent.java:966) - Platform: MacOS
08:08:00,799 DEBUG main io.netty.util.internal.PlatformDependent0 io.netty.util.internal.PlatformDependent0.explicitNoUnsafeCause0(PlatformDependent0.java:395) - -Dio.netty.noUnsafe: false
08:08:00,800 DEBUG main io.netty.util.internal.PlatformDependent0 io.netty.util.internal.PlatformDependent0.javaVersion0(PlatformDependent0.java:871) - Java version: 8
08:08:00,803 DEBUG main io.netty.util.internal.PlatformDependent0 io.netty.util.internal.PlatformDependent0.(PlatformDependent0.java:120) - sun.misc.Unsafe.theUnsafe: available
08:08:00,804 DEBUG main io.netty.util.internal.PlatformDependent0 io.netty.util.internal.PlatformDependent0.(PlatformDependent0.java:144) - sun.misc.Unsafe.copyMemory: available
08:08:00,805 DEBUG main io.netty.util.internal.PlatformDependent0 io.netty.util.internal.PlatformDependent0.(PlatformDependent0.java:182) - java.nio.Buffer.address: available
08:08:00,806 DEBUG main io.netty.util.internal.PlatformDependent0 io.netty.util.internal.PlatformDependent0.(PlatformDependent0.java:243) - direct buffer constructor: available
08:08:00,808 DEBUG main io.netty.util.internal.PlatformDependent0 io.netty.util.internal.PlatformDependent0.(PlatformDependent0.java:313) - java.nio.Bits.unaligned: available, true
08:08:00,808 DEBUG main io.netty.util.internal.PlatformDependent0 io.netty.util.internal.PlatformDependent0.(PlatformDependent0.java:378) - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable prior to Java9
08:08:00,808 DEBUG main io.netty.util.internal.PlatformDependent0 io.netty.util.internal.PlatformDependent0.(PlatformDependent0.java:385) - java.nio.DirectByteBuffer.(long, int): available
08:08:00,809 DEBUG main io.netty.util.internal.PlatformDependent io.netty.util.internal.PlatformDependent.unsafeUnavailabilityCause0(PlatformDependent.java:992) - sun.misc.Unsafe: available
08:08:00,810 DEBUG main io.netty.util.internal.PlatformDependent io.netty.util.internal.PlatformDependent.tmpdir0(PlatformDependent.java:1086) - -Dio.netty.tmpdir: /var/folders/w6/2wzjcqzn4njd5z_df4whdzzr0000gn/T (java.io.tmpdir)
08:08:00,813 DEBUG main io.netty.util.internal.PlatformDependent io.netty.util.internal.PlatformDependent.bitMode0(PlatformDependent.java:1165) - -Dio.netty.bitMode: 64 (sun.arch.data.model)
08:08:00,816 DEBUG main io.netty.util.internal.PlatformDependent io.netty.util.internal.PlatformDependent.(PlatformDependent.java:158) - -Dio.netty.maxDirectMemory: 1908932608 bytes
08:08:00,816 DEBUG main io.netty.util.internal.PlatformDependent io.netty.util.internal.PlatformDependent.(PlatformDependent.java:164) - -Dio.netty.uninitializedArrayAllocationThreshold: -1
08:08:00,818 DEBUG main io.netty.util.internal.CleanerJava6 io.netty.util.internal.CleanerJava6.(CleanerJava6.java:92) - java.nio.ByteBuffer.cleaner(): available
08:08:00,819 DEBUG main io.netty.util.internal.PlatformDependent io.netty.util.internal.PlatformDependent.(PlatformDependent.java:184) - -Dio.netty.noPreferDirect: false
08:08:00,829 DEBUG main io.netty.util.internal.PlatformDependent io.netty.util.internal.PlatformDependent$Mpsc.(PlatformDependent.java:860) - org.jctools-core.MpscChunkedArrayQueue: available
08:08:00,898 DEBUG main io.netty.channel.DefaultChannelId io.netty.channel.DefaultChannelId.(DefaultChannelId.java:79) - -Dio.netty.processId: 38222 (auto-detected)
08:08:00,901 DEBUG main io.netty.util.NetUtil io.netty.util.NetUtil.(NetUtil.java:139) - -Djava.net.preferIPv4Stack: false
08:08:00,901 DEBUG main io.netty.util.NetUtil io.netty.util.NetUtil.(NetUtil.java:140) - -Djava.net.preferIPv6Addresses: false
08:08:00,908 DEBUG main io.netty.util.NetUtil io.netty.util.NetUtil.(NetUtil.java:224) - Loopback interface: lo0 (lo0, 0:0:0:0:0:0:0:1)
08:08:00,910 DEBUG main io.netty.util.NetUtil io.netty.util.NetUtil$1.run(NetUtil.java:289) - Failed to get SOMAXCONN from sysctl and file /proc/sys/net/core/somaxconn. Default: 128
08:08:00,915 DEBUG main io.netty.channel.DefaultChannelId io.netty.channel.DefaultChannelId.(DefaultChannelId.java:101) - -Dio.netty.machineId: 98:01:a7:ff:fe:e3:21:83 (auto-detected)
08:08:00,926 DEBUG main io.netty.util.internal.InternalThreadLocalMap io.netty.util.internal.InternalThreadLocalMap.(InternalThreadLocalMap.java:54) - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
08:08:00,926 DEBUG main io.netty.util.internal.InternalThreadLocalMap io.netty.util.internal.InternalThreadLocalMap.(InternalThreadLocalMap.java:57) - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
08:08:00,940 DEBUG main io.netty.util.ResourceLeakDetector io.netty.util.ResourceLeakDetector.(ResourceLeakDetector.java:121) - -Dio.netty.leakDetection.level: paranoid
08:08:00,941 DEBUG main io.netty.util.ResourceLeakDetector io.netty.util.ResourceLeakDetector.(ResourceLeakDetector.java:122) - -Dio.netty.leakDetection.targetRecords: 4
08:08:01,001 DEBUG main io.netty.buffer.PooledByteBufAllocator io.netty.buffer.PooledByteBufAllocator.(PooledByteBufAllocator.java:120) - -Dio.netty.allocator.numHeapArenas: 8
08:08:01,002 DEBUG main io.netty.buffer.PooledByteBufAllocator io.netty.buffer.PooledByteBufAllocator.(PooledByteBufAllocator.java:121) - -Dio.netty.allocator.numDirectArenas: 8
08:08:01,002 DEBUG main io.netty.buffer.PooledByteBufAllocator io.netty.buffer.PooledByteBufAllocator.(PooledByteBufAllocator.java:123) - -Dio.netty.allocator.pageSize: 8192
08:08:01,002 DEBUG main io.netty.buffer.PooledByteBufAllocator io.netty.buffer.PooledByteBufAllocator.(PooledByteBufAllocator.java:128) - -Dio.netty.allocator.maxOrder: 11
08:08:01,003 DEBUG main io.netty.buffer.PooledByteBufAllocator io.netty.buffer.PooledByteBufAllocator.(PooledByteBufAllocator.java:132) - -Dio.netty.allocator.chunkSize: 16777216
08:08:01,003 DEBUG main io.netty.buffer.PooledByteBufAllocator io.netty.buffer.PooledByteBufAllocator.(PooledByteBufAllocator.java:133) - -Dio.netty.allocator.tinyCacheSize: 512
08:08:01,003 DEBUG main io.netty.buffer.PooledByteBufAllocator io.netty.buffer.PooledByteBufAllocator.(PooledByteBufAllocator.java:134) - -Dio.netty.allocator.smallCacheSize: 256
08:08:01,004 DEBUG main io.netty.buffer.PooledByteBufAllocator io.netty.buffer.PooledByteBufAllocator.(PooledByteBufAllocator.java:135) - -Dio.netty.allocator.normalCacheSize: 64
08:08:01,004 DEBUG main io.netty.buffer.PooledByteBufAllocator io.netty.buffer.PooledByteBufAllocator.(PooledByteBufAllocator.java:136) - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
08:08:01,004 DEBUG main io.netty.buffer.PooledByteBufAllocator io.netty.buffer.PooledByteBufAllocator.(PooledByteBufAllocator.java:137) - -Dio.netty.allocator.cacheTrimInterval: 8192
08:08:01,005 DEBUG main io.netty.buffer.PooledByteBufAllocator io.netty.buffer.PooledByteBufAllocator.(PooledByteBufAllocator.java:138) - -Dio.netty.allocator.useCacheForAllThreads: true
08:08:01,025 DEBUG main io.netty.buffer.ByteBufUtil io.netty.buffer.ByteBufUtil.(ByteBufUtil.java:83) - -Dio.netty.allocator.type: pooled
08:08:01,026 DEBUG main io.netty.buffer.ByteBufUtil io.netty.buffer.ByteBufUtil.(ByteBufUtil.java:92) - -Dio.netty.threadLocalDirectBufferSize: 0
08:08:01,026 DEBUG main io.netty.buffer.ByteBufUtil io.netty.buffer.ByteBufUtil.(ByteBufUtil.java:95) - -Dio.netty.maxThreadLocalCharBufferSize: 16384
08:08:01,048 WARN main io.netty.bootstrap.ServerBootstrap io.netty.bootstrap.AbstractBootstrap.setChannelOption(AbstractBootstrap.java:460) - Unknown channel option 'TCP_NODELAY' for channel '[id: 0xc601de16]'
08:08:01,077 INFO bossGroup-1-1 io.netty.handler.logging.LoggingHandler io.netty.util.internal.logging.AbstractInternalLogger.log(AbstractInternalLogger.java:150) - [id: 0xc601de16] REGISTERED
08:08:01,080 INFO bossGroup-1-1 io.netty.handler.logging.LoggingHandler io.netty.util.internal.logging.AbstractInternalLogger.log(AbstractInternalLogger.java:150) - [id: 0xc601de16] BIND: 0.0.0.0/0.0.0.0:6789
系统参数
-Dio.netty.eventLoopThreads
-Dio.netty.tmpdir
-Dio.netty.maxDirectMemory
-Dio.netty.noPreferDirect
-Dio.netty.maxDirectMemory
-Dio.netty.allocator.type: pooled
-Dio.netty.threadLocalDirectBufferSize
-Dio.netty.maxThreadLocalCharBufferSize
-Dio.netty.allocator.numHeapArenas
-Dio.netty.allocator.numDirectArenas
-Dio.netty.allocator.pageSize
-Dio.netty.allocator.chunkSize
-Dio.netty.leakDetection.level
public static final PooledByteBufAllocator DEFAULT =
new PooledByteBufAllocator(PlatformDependent.directBufferPreferred());
private final PoolArena[] heapArenas;
private final PoolArena[] directArenas;
private final int tinyCacheSize;
private final int smallCacheSize;
private final int normalCacheSize;
private final List heapArenaMetrics;
private final List directArenaMetrics;
private final PoolThreadLocalCache threadCache;
private final int chunkSize;
private final PooledByteBufAllocatorMetric metric;
上一篇
下一篇
基于netty实例演示NIO BIO 异步和同步
netty读写流量统计实例
netty空闲连接检测
springboot应用安全防护
netty ChannelFuture 实例
netty异常处理机制