JVM tuning

1, Overview of tuning 1.1 purpose of tuning Prevent the occurrence of OOM, and carry out JVM planning and pre tuningSolve various OOM problems in program operationReduce the frequency of Full GC and solve the problems of slow operation and jamming 2, Problems of production environment 2.1 heap overflow reason: 1. There may be large object ...

Posted by Blob on Wed, 02 Mar 2022 06:37:29 +0100

JVM_21_ On class loader

1. General Class loader is the premise for JVM to execute class loading mechanism. Functions of ClassLoader: ClassLoader is the core component of Java. All classes are loaded by ClassLoader. ClassLoader is responsible for reading the binary data stream of Class information into the JVM through various ways and converting it into a Java co ...

Posted by creet0n on Thu, 24 Feb 2022 14:51:59 +0100

Java magic class: Unsafe application analysis

catalogue   preface Basic introduction Function introduction Memory operation CAS related Thread scheduling Class correlation Object operation Array correlation Memory barrier System related epilogue reference material Introduction to the author preface Unsafe is located in sun A class under misc package mainly provides some m ...

Posted by crucialnet on Sun, 20 Feb 2022 01:38:04 +0100

Deep understanding of JVM -- class loading and bytecode Technology

Deep understanding of JVM (VII) -- class loading and bytecode Technology (I) ](https://nyimapicture.oss-cn-beijing.aliyuncs.com/img/20200608151300.png) 1. Class file structure Get first class bytecode file method: Write java code in the text document (the file name is consistent with the class name), and change the file type to javaIn ...

Posted by anujgarg on Wed, 16 Feb 2022 13:12:01 +0100

Netty series: the Reference count in the JVM is also found in netty

brief introductionWhy are there so many JAVA programmers in the world? One of the important reasons is that compared with C + +, JAVA does not need to consider the release of objects, and everything is completed by the garbage collector. In the modern programming world that advocates simplicity, there are fewer and fewer experts who can speak C ...

Posted by kooper on Mon, 14 Feb 2022 10:44:03 +0100

Deep understanding of JVM virtual machines

JVM learning This article is based on JVM [produced by dark horse programmer] Notes made during instructional video learning 1, What is a JVM definition Java Virtual Machine, the running environment of JAVA program (the running environment of JAVA binary bytecode) benefit Write once and run everywhereAutomatic memory management, garbage c ...

Posted by immot on Sun, 13 Feb 2022 11:46:53 +0100

Interview: virtual machine stack 5 consecutive questions, I'm happy to hear it

On the way to the interview "Didi, Didi..." master, where are we? I'm in a hurry for an interview. Master: it's almost there. It's the next intersection. I'm really convinced by these people. I can't drive all the way in. Listening to the driver's complaints, I can't help thinking of a limerick poem: the tail lights are red all o ...

Posted by shawjames on Sat, 12 Feb 2022 04:46:48 +0100

JVM Chapter 9_ Method area

1. Interaction among stack, heap and method area The method area is also a very important structure in addition to the heap space In terms of memory structure, this is the complete structure in a runtime data area We need to understand how these iterations are allocated to the stack, heap and method area, and how they cooperate From the pers ...

Posted by 86Stang on Fri, 11 Feb 2022 22:36:15 +0100

Verify the whole process of object header change during synchronized lock upgrade - springboot actual e-commerce project mall4j

springboot e-commerce project mall4j( https://gitee.com/gz-yami/mall4j) java open source mall system Verify the whole process of object header change during synchronized lock upgrade jdk version: 1.8 System: Windows 10 64 bit jvm startup parameters: - XX:BiasedLockingStartupDelay=0 (cancel delayed load bias lock) First, we need to know ...

Posted by tomhath on Thu, 10 Feb 2022 16:43:33 +0100

What if the List set is unsafe under the condition of multithreading concurrency? The new colleague was directly confused by me

preface Some time ago, a new employee came to the company. He said that the new employee had been outsourcing code for one and a half years before he came to our company. Once I chatted with him about List. I casually asked him how to solve the unsafe multi-threaded concurrency of List collection when outsourcing. Unexpectedly, he looked at me ...

Posted by gdboling on Thu, 10 Feb 2022 13:19:36 +0100