How JavaGC works

How JavaGC works

Reprinted to: https://blog.csdn.net/d6619309/article/details/53358250 As we all know, Java programs do not need to be like C++ The program handles the recycling and release of memory by itself in the program. This is because Java has added a garbage collection (GC) mechanism to the JVM virtual machine to trigger garbage collection at the appropriate time to recycle and release unnecessary memory space to avoid unlimited OOM caused by memory growth. As a qualified Java programmer, it is necessary to understand Java GC related knowledge. On the one hand, mastering GC knowledge can help us quickly troubleshoot online problems caused by the JVM. On the other hand, it can also help us properly tune the JVM before the Java application is released, improving the execution efficiency of the application. Reliability and robustness. This article will introduce the following points: Java heap memory structure Generational recycling algorithm Garbage Collector GC log JVM parameter usage The virtual machine discussed in this article is the default The HotSpot virtual machine used by the JDK. 1. Java heap memory structure In order to understand the knowledge points in the following chapters, we should First have a certain understanding of the division of Java heap memory structure.…

Copy algorithm diagram

How JavaGC works

Reprinted to: https://blog.csdn.net/d6619309/article/details/53358250 As we all know, Java programs do not need to be like C++ The program handles the recycling and release of memory by itself in the program. This is because Java has added a garbage collection (GC) mechanism to the JVM virtual machine to trigger garbage collection at the appropriate time to recycle and release unnecessary memory space to avoid unlimited OOM caused by memory growth. As a qualified Java programmer, it is necessary to understand Java GC related knowledge. On the one hand, mastering GC knowledge can help us quickly troubleshoot online problems caused by the JVM. On the other hand, it can also help us properly tune the JVM before the Java application is released, improving the execution efficiency of the application. Reliability and robustness. This article will introduce the following points: Java heap memory structure Generational recycling algorithm Garbage Collector GC log JVM parameter usage The virtual machine discussed in this article is the default The HotSpot virtual machine used by the JDK. 1. Java heap memory structure In order to understand the knowledge points in the following chapters, we should First have a certain understanding of the division of Java heap memory structure.…

Copy algorithm diagram

How JavaGC works

Reprinted to: https://blog.csdn.net/d6619309/article/details/53358250 As we all know, Java programs do not need to be like C++ The program handles the recycling and release of memory by itself in the program. This is because Java has added a garbage collection (GC) mechanism to the JVM virtual machine to trigger garbage collection at the appropriate time to recycle and release unnecessary memory space to avoid unlimited OOM caused by memory growth. As a qualified Java programmer, it is necessary to understand Java GC related knowledge. On the one hand, mastering GC knowledge can help us quickly troubleshoot online problems caused by the JVM. On the other hand, it can also help us properly tune the JVM before the Java application is released, improving the execution efficiency of the application. Reliability and robustness. This article will introduce the following points: Java heap memory structure Generational recycling algorithm Garbage Collector GC log JVM parameter usage The virtual machine discussed in this article is the default The HotSpot virtual machine used by the JDK. 1. Java heap memory structure In order to understand the knowledge points in the following chapters, we should First have a certain understanding of the division of Java heap memory structure.…

How JavaGC works

How JavaGC works

Reprinted to : https://blog.csdn.net/d6619309/article/details/53358250 It is well known that , Java programs do not need to be like C++ The program handles the recovery and release of memory by itself in the program. This is because Java adds a garbage collection (GC) mechanism on the JVM virtual machine , to trigger garbage collection at the right time , recycle and release unnecessary memory space , to avoid unlimited OOM caused by memory growth. As a qualified Java programmer,It is necessary to understand Java GC related knowledge. On the one hand, mastering GC knowledge can help us quickly troubleshoot online problems caused by JVM, on the other hand, it can also help us properly tune the JVM before the release of Java applications,improve the execution efficiency of applications, reliability and robustness. This article will introduce the following points: Java heap memory structure Generational recovery algorithm Garbage collector GC log JVM parameter usage The virtual machine discussed in this article is the default The HotSpot virtual machine used by the JDK. 1. Java heap memory structure In order to understand the knowledge points in the following chapters, we should First have a certain understanding of the Java heap memory structure division. Java…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索