sip-of-java

View the Project on GitHub wkorando/sip-of-java

Upgrading Java Runtime

Video Script

A new version of the JDK is being released every six-months, and with it come improved performance and new runtime features. Upgrading to a runtime might seem daunting, but did you know you can run code built using older versions of Java on the newest runtimes? And that you can still benefit from these performance and runtime improvements?

Performance Improvements

The JVM is continuously seeing performance improvements with every new JDK release. With upgrading to a newer runtime you can expected to see improvements across:

All without having to recompile code or make any configuration changes.

Load Test

A demonstration of these improvements can be seen with the below example of a load test using the Spring Boot Petclinic App:

Java 8 Results (1.8.0_291-b10)

Application startup: 8.665 seconds

Load test execution time: 137 seconds

Java 16 Results (16.0.1+9-24)

Application startup: 6.452 seconds

Load test execution time: 130 seconds

JFR recordings of load tests can be viewed here: link

Security

Security is always a top priority with every JDK release. In the Java Bugs System, you can see here the security vulnerabilities being patches and improvements made from the release of JDK 9 on link.

New Runtime Features and Improvements

There are a number of other runtime improvements and features that can also be taken advantage of by moving to the latest JDK runtime including: