Optimising Application Performance

Try for free!

Subscribe and stream all our courses
from just $30.00 per month
Start my free trial

Optimising Application Performance

Learn how to tune the JVM and make good coding choices for optimal performance

Contains 10 hours of video - equivalent to 3 days of live training

  • What can cause performance issues in our applications, and how to resolve them.
  • The choices available to us as developers at design-time - how to make good coding choices for optimal performance.
  • How to configure the virtual machine to provide better performance at run-time.
  • Along the way we'll be learning about the Just In Time compiler, how the virtual machine manages memory, performance testing and benchmarking, decompiling bytecode and more.
  • This course is written for Java versions 8 and 11.
A working knowledge of basic Java programming techniques

Contents

Having problems? check the errata

Introduction 10m 11s

What we mean by performance, versions of Java, and the JVM, and an outline of the course.

Preview

JIT compilation 37m 14s

What happens when our application runs, and how to monitor and tune the code cache.

Watch

Selecting the JVM 23m 4s

How to pick the right JVM (32 bit or 64 bit) for optimal performance, and tuning when native code compilation takes place.

Watch

Introduction to how memory works 22m 0s

The roles of the stack and the heap for storing primatives and objects.

Watch

Passing objects between methods 20m 13s

Variables are passed by value in Java, and for objects this means that it's the reference that is passed across. We understand why this is important and then we also consider the final keyword.

Watch

Memory Exercise 1 10m 22s

Exercise to test our knowledge of how memory works in Java.

Watch

Escaping references 44m 0s

Understanding what escaping reference are and the performance impact of strategies to remove them.

Watch

Memory Exercise 2 12m 17s

Exercise to find and fix escaping references

Watch

The Metaspace and JVM optimisations 20m 24s

The role of the metaspace, and some optimisations that the JVMs make for managing memory.

Watch

Tuning the JVM's memory settings 30m 1s

Tuning the heap size, and string pool table.

Watch

Introducing garbage collection 26m 49s

The general concept of GC, the finalise() method, and trying to force a collection.

Watch

Monitoring the heap 22m 59s

We use the JVisualVM tool to monitor the heap and see how it can help us find a soft-leak.

Watch

Analyzing a heap dump 8m 31s

We use the Eclipse Memory Analysis Tool to view the contents of the heap.

Watch

Generational GC 22m 7s

How the heap is split up into regions to make garbage collection more efficient, and what's really going on when a garbage collection takes place.

Watch

Garbage collector tuning & selection 35m 58s

Understanding and choosing the different garbage collection algorythms, and tuning the garbage collection process.

Watch

Using a profiler to analyse application performance 46m 2s

Using a profiler to understand the performance of an application.

Watch

Assessing Performance 26m 1s

Using micro and macro benchmarking to determine whether code changes lead to better or worse performance.

Watch

Benchmarking with JMH 13m 20s

Using the JMH tool to create a robust benchmarking environment.

Watch

Performance and benchmarking exercise 21m 6s

We use what we have learned in the last few chapters to improve our project.

Watch

How lists work 34m 7s

Understanding how the different list types work in Java, and how the choice of list can affect performance for your application.

Watch

How maps work 33m 21s

Understanding how the different map types work in Java, and how the choice of map can affect performance for your application.

Watch

Other coding choices 23m 37s

In this chapter we'll find out the answers to: Should you always use a Stringbuilder for best performance? Does a big decimal perform worse than a double? Are streams better than loops?

Watch

GraalVM 26m 22s

Learn how to use the experimental GraalVM compiler to further optimise your applications, and create native images of your code.

Watch

Other JVM languages 25m 13s

Find out how to evaluate whether kotlin, scala or other JVM language code will be more or less performance by analysing the bytecode it produces.

Watch

Course Summary 3m 1s

A couple of other topics worth mentioning and goodbye.

Watch
Copyright ©2021 VirtualPairProgrammers.com