Java Tech Updates

Java Tech Updates

  • Blog
  • Code
  • NEWS
  • About Us
  • Contact us
  • Privacy
  • Write for us
Home  /  Blog  /  Can GC Logs Used For These Purposes?

Can GC Logs Used For These Purposes?

Sandeep Dharak June 02, 2017 Blog Leave a Comment
GC-Logs

Engineers use Garbage Collection logs primarily to troubleshoot memory related problems and tune their GC settings. However, we are seeing several innovative enterprises using Garbage collection logs for following purposes:

#1. Lowering AWS bills
Most applications saturate memory first before saturating other resources (CPU, network bandwidth, storage). Most applications upgrade their EC2 instance size to get additional memory rather to get additional CPU or network bandwidth. With right memory size settings and GC parameters, you can run on basic EC2 instances itself effectively.  You don’t have to upgraded to higher EC2 configurations. It can directly cut-down your AWS bills. Analyzing GC Logs thoroughly will help you to come up with optimal memory size settings.

#2. Micro metrics – catch performance problems in test environment
Despite thorough stress testing in the test environment, still, performance problems find their way to production. It’s because a lot of enterprises measures only macro metrics i.e. CPU utilization, memory utilization, and response time. Macro metrics don’t give visibility on the acute degradation. These acute degradations are the ones which manifest into major performance problems in production. If proper micro metrics are measured in the test environment, several performance problems can be caught in the testing phase itself. You can gather all the micro metrics related to memory from GC logs itself.

#3. Production Monitoring & Alerting
Industry has seen several interesting Application Performance Monitoring tools. Yet, none of these tools provide insightful metrics on Garbage collection. When we say insightful metrics, we are referring to:

  • Memory problems detection such as Memory leaks, consecutive Full GCs, GC starvation…
  • GC KPIs: Latency, throughput, footprint
  • Object creation rate, promotion rate, reclamation rate…
  • GC Pause time statistics: Duration distribution, average, count, average interval, min/max, standard deviation
  • GC Causes statistics: Duration, Percentage, min/max, total
  • GC phases related statistics: Each GC algorithm has several sub-phases. Example for G1: initial-mark, remark, young, full, concurrent mark, mixed

It’s not that APM tools are not interested in these metrics, rather it’s because they don’t have that data. This data is only available in GC logs and within the JVM runtime. With the advent of GC Log analysis API, you can proactively monitor applications GC logs and build alerts if any of the thresholds are breached. Machine learning capabilities of this log analysis API, not only help you to detect the memory problems but also predict future memory problems.

#4. Continuous Integration
Catching defects during the development phase is much cheaper than catching them during the testing phase. As part of the Continuous Integration (CI) process, several enterprises are running stress tests. GC logs generated during those tests are programmatically analyzed through the GC Log analysis API. If thresholds like Object creation rate, full GC count, GC interval time are breached, then the build gets failed automatically. It’s a very powerful way to catch performance problems during code commit period itself.

Every single day, millions & millions of people in North America – bank, travel, and commerce – use the applications that Ram Lakshmanan has architected. Ram is an acclaimed speaker in major conferences on scalability, availability, and performance topics. Recently, he has founded a startup, which specializes in troubleshooting performance problems.

Image Credit: CODEQUS.COM

Previous Article
Next Article

About Author

Sandeep Dharak

Admin of "Java Tech Updates" Blog. You Can Get Technical Updates and Information About Java. Contact Me to Send or Post Your "Java Tech NEWS and TiPS" on Blog. We Will Post it, If Your Content is Informative, Unique and Helpful To Java Users.

Related Posts

  • Employee Performance

    Mobile & PC Screen Recorder to Measure Employee Performance

    March 18, 2019
  • Social Media Strategy

    Why Animated Video is a Best Strategy for Your Social Media

    March 4, 2019
  • Java anomaly detection tool

    Top 5 Java Anomaly Detection Tools

    February 14, 2018

May i Help You !

    Your Name (required)

    Your Email (required)

    Subject

    Your Message

    Popular Posts of The Month

    • Java developers Team
      Essential APIs access could be critical with Java 9 October 22, 2015
    • Java development with JRebel & XRebel
      JAVA introducing the two diodes in this language November 19, 2015
    • How To Use Jenkins Web Based Build Management Tool In Java Applications? July 22, 2016
    • Programmers And Developers Need To Wait More For Java 9 December 10, 2015
    • Attractive features in Java SE 8u 40
      Attractive features in Java SE 8u 40 November 9, 2015
    • Java 9 releases by JPI
      New access program for supporting Java 9 releases by JPI November 25, 2015
    • Java Application Development Composure Of Miniprograms February 9, 2016
    • IOT and Java
      Is Java the Missing Link Between IoT and Future Application? February 1, 2017
    • Java Programmers And The Joy Of Application Development May 11, 2016
    • Java
      Tutorial Alert: Chain of Responsibility Pattern With JAVA September 16, 2016
    • Java Outsourcing
      Spring Data Rest – Repositories August 23, 2016
    • PROFESSIONAL JAVA DEVELOPERS
      How To Become Professional Java Developers? March 16, 2016
    • spring-factory-beans
      How to Use Spring Factory Beans in Java Development January 4, 2017
    • cross-culture-business-communication
      The Why and How of Cross-Cultural Business Communication November 8, 2016
    • scala-development-by-javaprofessionals.net
      Scala Development Vs Java- A Never Ending Debate January 1, 2016
    • java outsourcing india
      Top Reasons To Consider Java Development Outsourcing To India August 4, 2016
    • Java Software Development
      JPI To Offer Rapid Deployment Package To Java Development Teams December 21, 2015
    • java application development
      Java App Development Using Hibernate December 10, 2015
    • Java developers Team
      MyEclipse 2015 Updates for Java Developers December 7, 2015
    • cache management in java
      Cache Management in Java – Caching Techniques June 11, 2016

    Recent Posts

    • Employee Performance
      Mobile & PC Screen Recorder to Measure Employee Performance March 18, 2019
    • Social Media Strategy
      Why Animated Video is a Best Strategy for Your Social Media March 4, 2019
    • Java anomaly detection tool
      Top 5 Java Anomaly Detection Tools February 14, 2018
    • Java development
      2017, stayed a big year of Twists in Java Development, Must Watch! February 9, 2018

    What Others Are Reading

    • Java development copmany
      Spring Retry framework for Better Java Development January 19, 2017
    • spring-factory-beans
      How to Use Spring Factory Beans in Java Development January 4, 2017
    • cross-culture-business-communication
      The Why and How of Cross-Cultural Business Communication November 8, 2016
    • How To Create A Page Using Template In AEM With Java? July 12, 2016

    Random Posts

    • GC-Logs
      Can GC Logs Used For These Purposes? June 2, 2017
    • PROFESSIONAL JAVA DEVELOPERS
      How To Become Professional Java Developers? March 16, 2016
    • Java development
      2017, stayed a big year of Twists in Java Development, Must Watch! February 9, 2018
    • Java development copmany
      Spring Retry framework for Better Java Development January 19, 2017

    Popular Posts

    • Java developers Team
      Essential APIs access could be critical with Java 9 October 22, 2015
    • Java development with JRebel & XRebel
      JAVA introducing the two diodes in this language November 19, 2015
    • Attractive features in Java SE 8u 40
      Attractive features in Java SE 8u 40 November 9, 2015
    • Programmers And Developers Need To Wait More For Java 9 December 10, 2015
    Theme by Dashing Themes | Proudly Powered by WordPress