Java application life cycle-JVM perspective

JIT and Tuning Warm-up

0.Preface 0.1.Java Program Execution Process 0.2.Compilation Is Fast Or Slow? 0.2.1.Java Virtual Machine (Interpreted is relatively slow) 0.2.2.Just In Time Compiler (relatively fast) 0.2.3.Java Compiler (relatively fast) Eg: Graal compiler (can be used as an AOT compiler and can replace C2 in the JIT compiler), AOT (jaotc) 1.JIT Compilation Process After the Java application is started, after class loading and bytecode verification are completed, the JIT compiler will not be triggered immediately for compilation, but will be interpreted and analyzed by the real-time interpreter first; After the just-in-time interpreter completes the preliminary interpretation and analysis, the JIT compiler will use the analysis information that has been collected to find hot spots (frequently executed code parts)....

January 23, 2024 · 7 min · XiaotaoNAN