JAVA垃圾收集参数与日志格式
来源:互联网 发布:泰迪熊代挂软件官网 编辑:程序博客网 时间:2024/05/22 15:41
-XX:-PrintGC
默认不启用
开启GC 日志打印。
例如:
[Full GC 131115K->7482K(1015808K), 0.1633180 secs]
该选项可通过 com.sun.management.HotSpotDiagnosticMXBean API 和 Jconsole 动态启用。
详见 http://java.sun.com/developer/technicalArticles/J2SE/monitoring/#Heap_Dump
-XX:-PrintGCDetails
1.4.0 引入,默认不启用
打印GC 回收的细节。
例如:
[Full GC (System) [Tenured: 0K->2394K(466048K), 0.0624140 secs] 30822K->2394K(518464K), [Perm : 10443K->10443K(16384K)], 0.0625410 secs] [Times: user=0.05 sys=0.01, real=0.06 secs]
该选项可通过 com.sun.management.HotSpotDiagnosticMXBean API 和 Jconsole 动态启用。
详见 http://java.sun.com/developer/technicalArticles/J2SE/monitoring/#Heap_Dump
-XX:-PrintGCTimeStamps
默认不启用
打印GC 停顿耗时。
例如:
2.744 : [Full GC (System) 2.744: [Tenured: 0K->2441K(466048K), 0.0598400 secs] 31754K->2441K(518464K), [Perm : 10717K->10717K(16384K)], 0.0599570 secs] [Times: user=0.06 sys=0.00, real=0.06
secs]
该选项可通过 com.sun.management.HotSpotDiagnosticMXBean API 和 Jconsole 动态启用。
详见 http://java.sun.com/developer/technicalArticles/J2SE/monitoring
The minor collection output for these options produce output of the form
[GC [<collector>: <starting occupancy1> -> <ending occupancy1>, <pause time1> secs] <starting occupancy3> -> <ending occupancy3>, <pause time3> secs]
where
<collector> is an internal name for the collector used in the minor collection
<starting occupancy1> is the occupancy of the young generation before the collection
<ending occupancy1> is the occupancy of the young generation after the collection
<pause time1> is the pause time in seconds for the minor collection.
<starting occupancy3> is the occupancy of the entire heap before the collection
<ending occupancy3> is the occupancy of the entire heap after the collection
<pause time3> is the pause time for the entire garbage collection. This would include the time for a major collection is one was done.
(1)Java SE 6 HotSpot[tm] Virtual Machine Garbage Collection Tuning
(2)Diagnosing a Garbage Collection problem
- JAVA垃圾收集参数与日志格式
- JVM的参数与垃圾收集
- java 垃圾收集相关常用参数
- Java垃圾收集器参数及其含义
- Java垃圾收集算法与垃圾收集器
- java虚拟机--垃圾收集算法与垃圾收集器
- 理解GC日志以及垃圾收集参数的总结
- 读书笔记——《深入理解Java虚拟机》系列之垃圾收集器与GC日志分析
- 垃圾收集器与Java编程
- 垃圾收集器与Java编程
- JAVA对象引用与垃圾收集
- 垃圾收集器与Java编程
- Java 理论与实践:垃圾收集简史
- 垃圾收集器与Java编程
- Java 理论与实践: 垃圾收集简史
- Java垃圾收集算法与内存泄露
- Java - 内存管理与垃圾收集
- Java 垃圾收集与内存分配
- 获得本机外部IP和名称
- java基础的零散总结(2)--单例设计模式
- 分页转瀑布
- 在iPhone游戏中Ogre的UI选择和Ogre的内置UI学习
- Python学习之字典详解
- JAVA垃圾收集参数与日志格式
- 匿名类、内部类、匿名内部类
- 黑马程序员_java学习笔记八 正则表达示
- 常用正则表达式
- 关于PL-2303HX驱动问题
- OGRE 3D移植到iOS 4.2教程
- 64未eclipse可能会出现的问题
- FxCAD 实验四 将FxCAD中的对象保存到XML文件中
- OGRE On iPhone ----Ogre的iPhone基础模版框架源代码分析