`
vancezhao
  • 浏览: 7004 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

JVM GC Performance Tuning

阅读更多
Here is something about the java gc tuning tips;

1. The heap size consists of three parts: young generation area, old generation area, perm area. In Java, long lived objects such as classes or methods are living in the perm are. There is no way to gc area. So we need to mark the young area clean enough and the perm area big enough. Young generation is separated into three parts: when a new object is “dead”, it will copy from the “from survivor” spaces to the “to survivor” spaces. And the “Eden” area is a place for java to get the objects. So if the “Eden” area is full when a “mini collection” is called, we also name that as “GC”. And when an old generation area is full, we get a “Full collection”. Well, the “Full GC” will consume much time then the “GC” which may make the app a relatively long pause. If “Full GC” is too frequently, the app will pause too long.
2. In java options “-XX: new radio” is set for the radio between for the “young generation” and “old young generation”. E.g. if set to “2”, that may the “young area” will cost one third of the heap space.
3. Another reference index is called “throughput”, which means the time jvm consume for not on the “GC”. So the larger it shows, the better performance will get.
4. “GCViewer” is a open source tool for check the gc log.
分享到:
评论

相关推荐

    java performance tuning

    在本文中,我们将深入探讨Java性能调优的关键知识点,并基于提供的资源"java performance tuning.chm"来展开讨论。 1. **JVM参数调整**: - **堆内存设置**:Java应用的内存分为年轻代、老年代和永久代(Java 8...

    Java Performance Tuning

    7. **内存和GC调优**:讨论不同的垃圾收集器和内存配置,以降低停顿时间和提高吞吐量。 8. **监控与日志**:介绍如何设置监控系统和日志记录,以便在生产环境中及时发现和解决问题。 9. **实战案例**:分享真实的...

    Java Performance Tuning (streamload)

    《Java Performance Tuning》是一本深入探讨Java性能优化的经典著作,它涵盖了Java应用程序在实际运行环境中如何提升效率、降低资源消耗的关键技术。本书通过详细分析和讲解,为开发者提供了宝贵的性能调优策略和...

    Sun glassfish Performance Tuning Guide

    - 使用外部监控工具,比如JVisualVM或VisualGC,深入分析JVM内存使用、线程状态和垃圾回收效率。 #### 3. **JVM参数调优** - 设置合适的堆大小,避免频繁的垃圾回收操作导致的停顿时间。 - 调整新生代与老年代的...

    tomcat performance tuning 性能调整

    Java 1.5及更高版本提供了更高效的内存分配策略,而Java 1.6引入了并行GC选项,可以进一步提升性能。 3. **连接器调优与监控**:Tomcat的连接器(Connector)负责处理HTTP请求和响应。可以调整连接器的参数,例如...

    Java Performance Tuning on Linux Servers

    同时,合理配置JVM垃圾回收机制,如选择合适的垃圾收集器(G1 Collector、CMS Collector等),可以显著减少GC暂停时间,提高系统响应速度。 ### 结论 综上所述,《Java性能调节手册》不仅是一份技术文档,更是...

    HotSpot GC官网文档截图 - 20200917

    5. **影响GC性能的因素** (4 Factors Affecting Garbage Collection Performance .png) - 垃圾收集的性能受多种因素影响,包括对象生命周期、内存分配速率、内存大小、线程数量、硬件性能等。理解这些因素有助于...

    Java performance

    书中会详细讲解不同类型的垃圾收集器,如串行、并行、CMS和G1,以及如何选择和调整合适的GC策略以减少停顿时间。 2. **JVM调优**:了解JVM的工作原理是优化性能的基础。书中会涵盖JVM的类加载机制、内存模型(堆、...

    practical-java-performance-tuning:实用Java性能调整代码

    "practical-java-performance-tuning"项目显然提供了一系列实践性的Java性能优化代码示例,帮助开发者深入理解并掌握Java性能调优技术。下面将详细讨论Java性能调优的一些关键知识点。 1. **JVM参数调优**:Java...

    Java 性能优化 一书源码

    `Performance tuning in summary.htm`可能是书中的性能调优总结,提供了整体的优化策略和最佳实践。它可能涵盖了如何分析性能数据、理解CPU和内存使用情况、选择合适的JVM选项、以及如何有效地进行微调等内容。 4....

    java performance, the definitive guide

    Java平台性能涉及到多个层面,包括但不限于JVM(Java虚拟机)性能、垃圾收集(GC)机制、多线程和并发控制、网络通信、数据库交互,以及代码编写和算法设计等。性能问题经常是多方面因素造成的,因此,理解这些因素...

    Java - The Well-Grounded Java Developer

    - **Garbage Collection Tuning**: Explanation of different GC algorithms (like CMS, G1, ZGC) and how to configure them for specific workloads. - **Memory Management**: Strategies for managing heap ...

    java性能调优文档(sun)

    在《Sun Java System Application Server Enterprise Edition 8.2 Performance Tuning Guide》这份文档中,主要介绍了如何针对Sun Java System Application Server Enterprise Edition 8.2进行性能调优的方法和技术...

    java性能监视和管理官方指南

    4. **JVM参数调整(JVM Tuning)**:对于性能调优,Java允许通过调整JVM参数来优化应用程序性能。这些参数包括堆大小(-Xms, -Xmx)、新生代大小(-Xmn)、垃圾回收器选择(-XX:+UseG1GC)等。 5. **诊断命令行工具...

    性能调优指南--计算机系统Java应用程序(不断完善)代码示例

    2. **JVM参数调整**:设置合适的JVM启动参数可以显著影响应用性能,如堆大小(-Xms, -Xmx),新生代和老年代的比例(-XX:NewRatio),存活对象的分配策略(-XX:TargetSurvivorRatio),以及是否开启并发GC(-XX:+...

    J2EE 性能优化

    在IT行业中,J2EE(Java 2 Platform, Enterprise Edition)是...而"Java Performance Tuning(2nd).pdf"这本书籍,应该会涵盖这些内容,并提供更深入的理论知识和实践技巧,对于理解和掌握J2EE性能优化具有极高的价值。

    java src 源码 调优

    这个名为"Java+Performance+Tuning+(Code)"的压缩包可能包含了上述各个方面的实例和解释,通过深入研究这些源码,我们可以学习到如何在实际项目中应用这些调优技术。记住,性能调优不是一次性的工作,而是一个持续的...

Global site tag (gtag.js) - Google Analytics