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 阅读(1) 评论(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 阅读(2) 评论(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 阅读(1) 评论(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 阅读(1) 评论(0) 推荐(0) 编辑

tomcat类加载器

摘要: https://blog.csdn.net/MeBieber/article/details/105114645?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1 阅读全文
posted @ 2024-03-19 14:07 silyvin 阅读(3) 评论(0) 推荐(0) 编辑

tomcat白名单(八)SNI侵入2

摘要: 继tomcat白名单(五)其他 0 先看一下sni的作用 四层 七层 浏览器(客户端) dns解析 connect ip 在clientHello中用浏览器地址栏host塞入sni 在http头中塞入Host头 网关(服务端) 根据SNI路由 根据Host头路由 openshift根据SNI路由pa 阅读全文
posted @ 2024-03-01 17:29 silyvin 阅读(4) 评论(0) 推荐(0) 编辑

U盾

摘要: ssl搞那么复杂,都是为了阻止对称密钥在通信过程被拦截,那么就不用通信,直接物理上给你 U盾中可以存一个对称密钥,避免对称密钥在网络上传输被拦截 假如在一个网吧,用U盾,网吧老板能用自己的U盾篡改吗? 只用u盾是个性化的,跟账户绑定就行 如果您没插U盾,这是必然得结果。 SSL server req 阅读全文
posted @ 2024-02-23 17:19 silyvin 阅读(3) 评论(0) 推荐(0) 编辑

mongo 隔离级别

摘要: readConcern: snapshot 阅读全文
posted @ 2023-11-29 13:44 silyvin 阅读(7) 评论(0) 推荐(0) 编辑

泛型反射

摘要: https://blog.csdn.net/lwzhang1101/article/details/102498307 在上篇中,我们简单给大家讲解了如何利用反射来获取普通类型的类的使用,今天给大家讲解下,有关如何使用反射来获取泛型中的信息。提前提个醒,本篇文章内容稍难,大家可能需要多看几篇。这篇文 阅读全文
posted @ 2023-11-21 14:45 silyvin 阅读(17) 评论(0) 推荐(0) 编辑

mongo ssl

摘要: 0 mongo 5.0.19 安装 https://zhuanlan.zhihu.com/p/621643976?utm_id=0 启动cmd控制台,并到达mongodb中的bin文件目录下,输入如下指令回车即可。 mongod --dbpath=../data/db 或者配置文件的方式启动 mon 阅读全文
posted @ 2023-11-20 17:33 silyvin 阅读(13) 评论(0) 推荐(0) 编辑