Java 线程池优化

4 月 29 日
阅读 3 分钟
32
1. Java 线程池优化1.1. 核心线程数1.2. 任务队列1.2.1. LinkedBlockingQueue1.2.2. ArrayBlockingQueue1.2.3. SynchronousQueue1.2.4. 总结1.3. 最大线程数1.4. 线程存活时间1.5. 拒绝策略1.5.1. AbortPolicy(默认策略)1.5.2. CallerRunsPolicy1.5.3. DiscardPolicy1.5.4. DiscardOldestPolicy1.5.5. 总结1.6. 最终优...

Springboot Redis 性能优化

4 月 29 日
阅读 6 分钟
58
1. Springboot Redis 性能优化1.1. 客户端选择1.2. 参数配置1.2.0.1. Springboot Redis 所有参数项1.2.1. 最终配置1. Springboot Redis 性能优化1.1. 客户端选择Springboot 2.x.x 开始默认使用 lettuce 作为 redis 客户端。引用 baeldung.com 的话:Why Lettuce?We’ve covered Jedis in one of the previous posts. What...

JVM 常用命令行工具使用指南

4 月 25 日
阅读 18 分钟
72
1. JVM 常用命令行工具使用指南1.1. jstat1.1.1. 输出选项:1.1.1.1. -class1.1.1.2. -compiler1.1.1.3. -gc1.1.1.4. -gccapacity1.1.1.5. -gcutil1.1.1.6. -gccause1.1.1.7. -gcnew1.1.1.8. -gcnewcapacity1.1.1.9. -gcold1.1.1.10. -gcoldcapacity1.1.1.11. -gcmetacapacity1.1.1.12. -printcompilation1.2. jps1.3. j...