際際滷

際際滷Share a Scribd company logo
Java Performance
     Seminar


   Daniel Hotel, Herzelia
   08:30-14:00 18/6/2009
Introduction




               2
Introduction


 Why Performance?
   Critical
   Underestimated
   Overlooked
   Put off




                     3
Introduction


 Taming the beast
   Avoidance
     Awareness
     Planning ahead
   Identification
     Monitoring
     Profiling
   Solving
     Tuning
     Optimizations

                       4
History




          5
History


 Early JVM
   Interpreted bytecodes




                            6
History


 First Just-in-time compilation
   JIT combines the advantages of
    interpretation and static (ahead-of-
    time) compilation.




                                           7
History


 Generational GC
   Replaces na誰ve mark and sweep




                                    8
History


 HotSpot JIT compilation
   Analyzes the program's performance for
    "hot spots
   Targets for optimization




                                             9
History


 Features
   New I/O
   64-Bit JVM Support
   Garbage Collection Policy




                                10
History


 Features
   Class Data Sharing
   Ergonomics




                         11
History


 Features
   Split bytecode verification
   Escape analysis and lock coarsening




                                          12
History


 Features
   Java Quick Starter




                         13
History


 Java 7
   G1  Garbage First
   Multi Core Parallel Computing
   Client+Server compilers in same session




                                          14
Agenda




         15
The JVM Magic


 JVM Optimizations
   Garbage Collection Overview
   Compiler (javac / JIT) Optimizations
   Programming and tuning tips




                                           16
JDK tools for performance diagnostics


 Visual Monitoring Tools
   Identify and solve problems using
     VisualVM
     Btrace
     jHat




                                        17
Riding the memory bus


 Distributed JVM
   Overcome disk and network access
    scalability bottlenecks
   Strategies for using RAM efficiently
   Terracottas clustering solution




                                           18
The Experts Panel

 Any Questions?
   Submit your performance questions until the
    last lecture
   Hit AlphaCSPs Experts Panel with your
    questions




                                                  19

More Related Content

Seminar.2009.Performance.Intro