文档详情

java虚拟机分析和优化.ppt

发布:2017-07-25约5.57千字共56页下载文档
文本预览下载声明
Java虚拟机分析与优化;Overview;JVM Basics Highest Level Overview;JVM Basics Which JVM do I have?;JVM Basics The Overall Java Application Stack;JVM Basics JIT Basics from a performance perspective;Overview;Overview of IBM’s J9 JVM What is the J9 JVM?;Garbage collector enhancements Incorporates for the first time generational garbage collection Fine-grained locking of VM data structures Asynchronous compilation Compilation of Java methods proceeds on a background thread Other application threads do not have to wait to execute the method Improves startup time of heavily multithreaded applications on SMPs Compile-time optimizations to remove contention escape analysis, lock coarsening, … architectural support to limit its effect Superior JIT (Just in time) compiler Multiple optimization methods from application profiling to more intelligent and better code optimization algorithms;Superior Java application execution performance Just-In-Time (JIT) compiler technology Far improved over JDK 1.4.2 and Sun’s JIT Maximized performance with minimized runtime overhead multiple optimization levels, multiple recompilations of the same method, many new optimizations dynamic observation of the execution of code via profiling to aggressively improve hot code Interpreter profiling to adapt compilation to compiled methods for block reordering, loop unrolling, etc.;Overview;Memory Management / Garbage Collection Overview;Memory Management / Garbage Collection What factors effect memory performance the most;Memory Management / Garbage Collection Parallel VS Concurrent Collectors;IBM J9 JDK Platforms Memory management is configurable using four different policies with varying characteristics Optimize for Throughput – flat heap collector focused on maximum throughput Optimize for Pause Time – flat heap collector with concurrent mark and sweep to minimize GC pause time Generational Concurrent – divides heap into “nursery” and “tenured” segments providing fast collection for short lived objects. C
显示全部
相似文档