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
 ...
History




          5
History


• Early JVM
  • Interpreted bytecodes




                            6
History


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


• Generational GC
  • Replaces naïve mark and sweep




                                    8
History


• HotSpot JIT compilation
  • Analyzes the program's performance for
    "hot spots“
  • Targets for optimizatio...
History


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




                                ...
History


• Features
  • Class Data Sharing
  • Ergonomics




                         11
History


• Features
  • Split bytecode verification
  • Escape analysis and lock coarsening




                         ...
History


• Features
  • Java Quick Starter




                         13
History


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


...
Agenda




         15
The JVM Magic


• JVM Optimizations
  • Garbage Collection Overview
  • Compiler (javac / JIT) Optimizations
  • Programmi...
JDK tools for performance diagnostics


• Visual Monitoring Tools
  • Identify and solve problems using
    • VisualVM
   ...
Riding the memory bus


• Distributed JVM
  • Overcome disk and network access
    scalability bottlenecks
  • Strategies ...
The Experts Panel

• Any Questions?
  • Submit your performance questions until the
    last lecture
  • Hit AlphaCSP’s Ex...
Upcoming SlideShare
Loading in …5
×

Seminar.2009.Performance.Intro

480 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
480
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Seminar.2009.Performance.Intro

  1. 1. Java Performance Seminar Daniel Hotel, Herzelia 08:30-14:00 18/6/2009
  2. 2. Introduction 2
  3. 3. Introduction • Why Performance? • Critical • Underestimated • Overlooked • Put off 3
  4. 4. Introduction • Taming the beast • Avoidance • Awareness • Planning ahead • Identification • Monitoring • Profiling • Solving • Tuning • Optimizations 4
  5. 5. History 5
  6. 6. History • Early JVM • Interpreted bytecodes 6
  7. 7. History • First Just-in-time compilation • JIT combines the advantages of interpretation and static (ahead-of- time) compilation. 7
  8. 8. History • Generational GC • Replaces naïve mark and sweep 8
  9. 9. History • HotSpot JIT compilation • Analyzes the program's performance for "hot spots“ • Targets for optimization 9
  10. 10. History • Features • New I/O • 64-Bit JVM Support • Garbage Collection Policy 10
  11. 11. History • Features • Class Data Sharing • Ergonomics 11
  12. 12. History • Features • Split bytecode verification • Escape analysis and lock coarsening 12
  13. 13. History • Features • Java Quick Starter 13
  14. 14. History • Java 7 • G1 – Garbage First • Multi Core Parallel Computing • Client+Server compilers in same session 14
  15. 15. Agenda 15
  16. 16. The JVM Magic • JVM Optimizations • Garbage Collection Overview • Compiler (javac / JIT) Optimizations • Programming and tuning tips 16
  17. 17. JDK tools for performance diagnostics • Visual Monitoring Tools • Identify and solve problems using • VisualVM • Btrace • jHat 17
  18. 18. Riding the memory bus • Distributed JVM • Overcome disk and network access scalability bottlenecks • Strategies for using RAM efficiently • Terracotta’s clustering solution 18
  19. 19. The Experts Panel • Any Questions? • Submit your performance questions until the last lecture • Hit AlphaCSP’s Experts Panel with your questions 19

×