GithubHelp home page GithubHelp logo

JVM gc 算法 about ideas HOT 7 OPEN

jiacai2050 avatar jiacai2050 commented on June 29, 2024
JVM gc 算法

from ideas.

Comments (7)

jiacai2050 avatar jiacai2050 commented on June 29, 2024

GC verbose 日志含义

The followings are other options that can be used with -verbosegc.

-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-XX:+PrintHeapAtGC 
-XX:+PrintGCDateStamps (from JDK 6 update 4)

Minor gc

[GC [<collector>: <starting occupancy1> -> <ending occupancy1>, <pause time1> secs] <starting occupancy3> -> <ending occupancy3>, <pause time3> secs]

Full gc

[Full GC [Tenured: 3485K->4095K(4096K), 0.1745373 secs] 61244K->7418K(63104K), [Perm : 10756K->10756K(12288K)], 0.1762129 secs] [Times: user=0.19 sys=0.00, real=0.19 secs]

from ideas.

jiacai2050 avatar jiacai2050 commented on June 29, 2024

Understanding JVM Internals

from ideas.

jiacai2050 avatar jiacai2050 commented on June 29, 2024

理解 gc 过程中的暂停

from ideas.

jiacai2050 avatar jiacai2050 commented on June 29, 2024

SurvivorRatio

The SurvivorRatio parameter controls the size of the two survivor spaces. For example, -XX:SurvivorRatio=6 sets the ratio between each survivor space and eden to be 1:6, each survivor space will be one eighth of the young generation. The default for Solaris is 32. If survivor spaces are too small, copying collection overflows directly into the old generation. If survivor spaces are too large, they will be empty. At each GC, the JVM determines the number of times an object can be copied before it is tenured, called the tenure threshold. This threshold is chosen to keep the survivor space half full.

from ideas.

jiacai2050 avatar jiacai2050 commented on June 29, 2024

Java Platform, Standard Edition HotSpot Virtual Machine Garbage Collection Tuning Guide

from ideas.

jiacai2050 avatar jiacai2050 commented on June 29, 2024

JVM Memory Structure

from ideas.

jiacai2050 avatar jiacai2050 commented on June 29, 2024

2018-04-10T10:50:51.667+0800: 564548.110: [GC (Allocation Failure) 2018-04-10T10:50:51.668+0800: 564548.110: [ParNew: 564792K->6394K(629120K), 0.0244341 secs] 1051623K->493813K(2027264K), 0.0251491 secs] [Times: user=0.23 sys=0.02, real=0.03 secs]

正常行为,Allocation Failure 是 GC 触发的原因

from ideas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.