随笔分类 -  0拷贝nio直接内存

leak(四)监控
摘要:对(三)中1.1和1.2 进行监控,加上强制nopool配置 -Dio.netty.allocator.type=unpooled https://zhuanlan.zhihu.com/p/142028031 1 -XX:MaxDirectMemorySize=100k -Dio.netty.all 阅读全文

posted @ 2024-04-18 11:34 silyvin 阅读(9) 评论(0) 推荐(0) 编辑

leak(三)cleaner
摘要:0 0.1 https://www.cnblogs.com/exmyth/p/14205361.html java.nio提供的DirectByteBuffer提供了sun.misc.Cleaner类的clean()方法,进行系统调用释放堆外内存,触发clean()方法的情况有2种 (1) 应用程序 阅读全文

posted @ 2024-04-15 16:40 silyvin 阅读(53) 评论(0) 推荐(0) 编辑

leak(二)netty java 11与监控
摘要:0 为什么used不好用 PlatformDependent.usedDirectMemory始终返回-1 跟踪下来,io.netty.util.internal.PlatformDependent0#hasDirectBufferNoCleanerConstructor始终返回false 关于 m 阅读全文

posted @ 2024-04-15 15:37 silyvin 阅读(116) 评论(0) 推荐(0) 编辑

leak(一)
摘要:0 服务对外内存oom,但健康检测还能访问,因为健康检测走8081直接,走的jvm内存 1 使用netty自带的泄露参数 -Dio.netty.leakDetectionLevel=advanced https://zhuanlan.zhihu.com/p/624117573?utm_id=0 30 阅读全文

posted @ 2024-04-05 16:16 silyvin 阅读(17) 评论(0) 推荐(0) 编辑

FileInputStream RandomAccessFile FileChannel 与 MappedByteBuffer (yet)
摘要:-283-1 -6 0 文件26M 循环映射: 其它参考: MappedByteBuffer VS FileChannel 孰强孰弱? 阅读全文

posted @ 2019-09-24 16:23 silyvin 阅读(522) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示