值得阅读的内存泄露分析总结和Tomcat调优

作者:应用开发 来源:应用开发 浏览: 【】 发布时间:2025-11-05 00:41:36 评论数:
值得阅读的内存泄露分析总结和Tomcat调优
复制-----------------------------------------初始标记(Stop-the-world)--------------------------------------------- 135140.215: [GC (CMS Initial Mark) [1CMS-initial-mark: 195002K(3375104K)]207465K(3989504K),阅读 0.0053961 secs] [Times: user=0.00 sys=0.00, real=0.01 secs]  -----------------------------------------并发标记--------------------------------------------- 135140.221: [CMS-concurrent-mark-start]135140.287: [CMS-concurrent-mark:0.066/0.066 secs] [Times: user=0.50 sys=0.00, real=0.07 secs]  -----------------------------------------并发预处理--------------------------------------------- 135140.287: [CMS-concurrent-preclean-start]135140.295: [CMS-concurrent-preclean:0.009/0.009 secs] [Times: user=0.02 sys=0.00, real=0.01 secs]  -----------------------------------------重标记(Stop-the-world)--------------------------------------------- 135140.298: [GC (CMS Final Remark) [YG occupancy: 13058 K (614400 K)]//这里最前面的135140.298是JVM运行时间,单位是内调优S。YG就是存泄Young Gen(Eden Space),服务器租用前面的露分数字是占用大小,括号里是析总总大小  135140.298: [Rescan (parallel) , 0.0071866  secs]//这里要对Young Gen重新扫描  135140.305: [weak refs processing,0.1143667 secs]135140.420: [class unloading, 0.1829570secs]135140.603: [scrub symbol table, 0.0194112secs]135140.622: [scrub string table, 0.0019222secs][1 CMS-remark: 195002K(3375104K)] 208060K(3989504K), 0.4727087 secs][Times: user=0.47 sys=0.00, real=0.47 secs] //这里195002K(3375104K)表示的是云南idc服务商Old Gen的使用情况,208060K(3989504K)是结和整个Heap的使用情况  -----------------------------------------并发清理--------------------------------------------- 135140.771: [CMS-concurrent-sweep-start]135140.845: [CMS-concurrent-sweep:0.073/0.073 secs] [Times: user=0.09 sys=0.03, real=0.07 secs]  -----------------------------------------重置--------------------------------------------- 135140.850: [CMS-concurrent-reset-start]135140.856: [CMS-concurrent-reset:0.006/0.006 secs] [Times: user=0.01 sys=0.02, real=0.01 secs] 。阅读  1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.b2b供应网