上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 79 下一页

21Why httpclient is recommended to go with a connection pool in server-to-server request?

摘要: Why httpclient is recommended to go with a connection pool in server-to-server request? Besides performance improvement with absence of connection and 阅读全文
posted @ 2019-12-20 11:02 silyvin 阅读(324) 评论(0) 推荐(0)

21-b并发tcp连接数与文件描述符

摘要: https://www.cnblogs.com/hukey/p/5582386.html【 Linux 】单台服务器上并发TCP连接数 https://blog.csdn.net/tsh123321/article/details/88990825 TCP连接数和文件描述符耗尽分析 client最大 阅读全文
posted @ 2019-12-20 11:01 silyvin 阅读(818) 评论(0) 推荐(0)

21-chttp连接池该取多大

摘要: http://www.sohu.com/a/342596009_120054825 netstat 查看过多的TIME_WAIT 0 经常出现Address already in use (Bind failed)的问题。很明显是一个端口绑定冲突的问题,于是大概排查了一下当前系统的网络连接情况和端口 阅读全文
posted @ 2019-12-17 16:38 silyvin 阅读(682) 评论(0) 推荐(0)

守护线程会不会执行finally?默认情况new thread怎么样确定守护状态?

摘要: finally throw return 中,线程的状态及interrupt 守护线程在退出的时候并不会执行finnaly块中的代码 线程池造成服务器内存泄漏 中所述,新建线程默认上使用建立线程时的当前线程所处的守护状态 本文予以验证: falsefalse守护线程2的try会不会执行?守护线程2的 阅读全文
posted @ 2019-12-17 00:10 silyvin 阅读(601) 评论(0) 推荐(0)

jdk动态代理源码底层(jdk生成字节码及5种字节码生产方式比较)

摘要: 在前两篇文章中 java 的三种代理模式 jdk动态代理与cglib优势劣势以及jdk动态代理为什么要interface (警惕动态代理导致的Metaspace内存泄漏问题,警惕动态代理导致的Metaspace内存泄漏问题) 讨论了jdk的动态代理 本文从源码级别了解一下,在源代码的基础上,加上 S 阅读全文
posted @ 2019-12-13 01:09 silyvin 阅读(796) 评论(0) 推荐(0)

getDeclaredField和getField的区别

摘要: https://blog.csdn.net/caicaimaomao/article/details/86611897 简单说 getDeclaredFiled 仅能获取类本身的属性成员(包括私有、共有、保护) getField 仅能获取类(及其父类可以自己测试) public属性成员因此在获取父类 阅读全文
posted @ 2019-12-12 23:39 silyvin 阅读(1081) 评论(0) 推荐(0)

equals 与 ==

摘要: 引申出的知识点: 1 int与integer的比较 Integer vs int string的比较String常量池 及 String StringBuilder StringBuffer 对比 总结得非常好 包括string.intern 2 因为==常常决定锁的有效性,进而再引出以intege 阅读全文
posted @ 2019-12-11 10:58 silyvin 阅读(281) 评论(0) 推荐(0)

hashcode & System.identityHashCode

摘要: System.identityHashCode经常被用于相对打印对象地址: 由一个多线程共享Integer类变量问题引起的。。。 Integer String 对象作为锁的注意事项 Integer vs int(未直接使用) hashmap红黑树比较方式jdk1.7 1.8 hash map 区别及 阅读全文
posted @ 2019-12-11 10:51 silyvin 阅读(734) 评论(0) 推荐(1)

9为什么会有 MTU,MSS

摘要: 1 为什么会有MSS?为什么是1460? https://blog.csdn.net/qq_44910516/article/details/89353231 这篇文章有试验是tcp拆包还是ip拆包 MSS就是TCP数据包每次能够传输的最大数据分段。为了达到最佳的传输效能TCP协议在建立连接的时候通 阅读全文
posted @ 2019-12-09 09:50 silyvin 阅读(1038) 评论(0) 推荐(0)

7socket用户缓冲区、socket内核缓冲区与tcp协议buffer(滑动窗口)的关系

摘要: 1 操作系统socket内核缓冲区是tcp协议buffer(滑动窗口)的具体实现 2 用户缓冲区即是局部的byte[] https://www.zhihu.com/question/48454744 3 内核缓冲区(滑动窗口)大小占16位,最大65536长度字节数,三次握手时通知对方 4 滑动窗口不 阅读全文
posted @ 2019-12-06 17:01 silyvin 阅读(4192) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 79 下一页