上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
摘要: 带着几个问题进入源码分析: 1. 线程池是什么时候创建线程的? 2. 任务runnable task是先放到core到maxThread之间的线程,还是先放到队列? 3. 队列中的任务是什么时候取出来的? 4. 什么时候会触发reject策略? 5. core到maxThread之间的线程什么时候会 阅读全文
posted @ 2018-12-15 10:28 funny_coding 阅读(13228) 评论(4) 推荐(8) 编辑
摘要: 某次代码提交后审核,观察应用CPU占用持续25%, 感觉应该是某个线程写的有问题, 在linux服务器上查看cpu却是正常 windows平台线程查看工具: Process Explorer, https://docs.microsoft.com/en-us/sysinternals/downloa 阅读全文
posted @ 2018-12-11 17:09 funny_coding 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 现场场景: 仓库中有一个包名使用了驼峰命名,还有一个非驼峰的同名包, windows系统下因为不区分文件夹大小写,拉取没问题,但是本地push不上去。打算到Linux上clone下来后,删除那个驼峰的包名, 却总是拉不下来分支最新代码 , 简直要气死了 使用git branch查看到所有的分支都有r 阅读全文
posted @ 2018-12-10 18:58 funny_coding 阅读(7631) 评论(0) 推荐(0) 编辑
摘要: https://help.aliyun.com/knowledge_detail/85300.html?spm=a2c4g.11186631.2.19.69c718d4pnKRo4 阅读全文
posted @ 2018-12-09 20:27 funny_coding 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 直接下载 解压, 运行 ./bin/start-cluster.sh 几个概念: 批处理: 大数据量,不要求实时。 输入源是有界的 流处理:实时要求高,通常在毫秒级, 数据量比较小,但是输入源是无界的 采集 (来源MQ, stream...)--> translate(实时计算,批计算) --> s 阅读全文
posted @ 2018-12-09 00:35 funny_coding 阅读(112) 评论(0) 推荐(0) 编辑
摘要: org.springframework.web.servlet.support.RequestContextUtils 在spring-webmvc中, 主要用来获取WebApplicationContext org.springframework.web.context.request.Reque 阅读全文
posted @ 2018-12-07 10:27 funny_coding 阅读(889) 评论(0) 推荐(0) 编辑
摘要: CMS详解 https://www.cnblogs.com/ggjucheng/p/3977612.html CMS默认不回收Perm, 需要加参数 +CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled gc: cms有个缺点是容易产生内存 阅读全文
posted @ 2018-11-30 19:15 funny_coding 阅读(606) 评论(0) 推荐(0) 编辑
摘要: application.properties 默认 application-xxx.properties 高 systemEnvironment 高 test/main/resources/ 同名文件 @TestPropertySource 优先级更高 jar外部的文件优先级最高 applicati 阅读全文
posted @ 2018-11-28 17:27 funny_coding 阅读(848) 评论(0) 推荐(0) 编辑
摘要: Long超过Integer.max之后,hashCode会和Integer部分重合 String.hashCode() 有很大可能会产生负数 影响分区sharding 阅读全文
posted @ 2018-11-27 20:03 funny_coding 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 第一种是继承Thread, 重写了Thread.run() getClass()返回的是匿名类 java.long.Thread$1 第二种是lambda, 重写了Runnable.run() getClass()返回的还是java.long.Thread 阅读全文
posted @ 2018-11-27 19:16 funny_coding 阅读(296) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
build beautiful things, share happiness