GC日志中的stop-the-world
来源:互联网 发布:python udp server 编辑:程序博客网 时间:2024/06/15 05:11
通常使用下面的JVM选项在GC日志中打印”stop-the-world”(STW)暂停时间。
-XX:+PrintGCApplicationStoppedTime但是在GC日志中看,会发现有许多这样的暂停时间,时间很短,肯定不是垃圾回收引起的。
Total time for which application threads were stopped: 0.0013102 seconds, Stopping threads took: 0.0001792 secondsTotal time for which application threads were stopped: 0.0012521 seconds, Stopping threads took: 0.0001591 secondsTotal time for which application threads were stopped: 0.0008090 seconds, Stopping threads took: 0.0001030 secondsTotal time for which application threads were stopped: 0.0010226 seconds, Stopping threads took: 0.0001058 seconds实际上,触发STW暂停的原因除了垃圾回收外,还有一些其他的操作会触发STW,例如一些JIT活动、偏向锁擦除、特定的JVMTI操作,以及许多场景也可能会导致应用程序暂停。
上述例子中application threads stopped的时间表示应用暂停时间,Stopping threads took 的时间表示等待所有的应用线程都到达安全点花费的时间。只有应用程序线程到达安全点后,JVM才会做些特殊处理,比如垃圾收集、偏向锁擦除等等。
0 0
- GC日志中的stop-the-world
- 基于日志理解 cms 原理,为什么remark要stop the world?(理解CMS GC日志.)
- Sapphire算法:GC Without Stop the World(上)
- JVM GC中Stop the world案例实战
- [Java JVM] Hotspot GC研究- GC安全点 (Safepoint&Stop The World)
- Java垃圾回收中Stop-The-World和JVM中的Stop-The-World
- Stop The World(STW)
- stop-the-world STW
- jvm Stop-The-World
- Java Safepoint 与Stop The World
- JVM进阶(八)——Stop The World
- JVM进阶(八)——Stop The World
- GC日志
- gc日志:
- GC日志
- L: Change the WorLd中的数学题
- The world 浏览器 ,windows中的快捷操作
- stop the NetworkManager service
- 前端面试知识点(JavaScript篇)
- iOS 集成 第三方 微信
- UML类图几种关系的总结
- Bookshop(一)数据库连接
- 给JSON中put的value=null时,这对key=value会被隐藏掉。
- GC日志中的stop-the-world
- 【中级】2017项目集成管理工程师备考第二章-信息系统服务管理(上)
- tools使用
- Android Material Design之Toolbar与Palette实践
- dex2jar反汇编android的dex/APK文件为jar包命令和方法
- javascript运行机制之执行顺序详解
- 分享一下“流程开发时如何根据发起人的部门来确定某个选人控件的范围”
- SVN服务器搭建和使用(二)
- 有哪些 Android 大牛的 blog 值得推荐?