Home » Tag Archives: JIT

Tag Archives: JIT

Java on Steroids: 5 Super Useful JIT Optimization Techniques

java-logo

Java developer? Optimize your production monitoring. See the source code, call stack, and variable state behind all logged errors, warnings, and exceptions – Try Takipi. What are some of the most useful JVM JIT optimizations and how to use them? Even when you’re not actively planning for it, the JVM has quite a few tricks up its sleeve to help ...

Read More »

JIT Compiler, Inlining and Escape Analysis

java-logo

Just-in-time (JIT) Just-in-time (JIT) compiler is the brain of the Java Virtual Machine. Nothing in the JVM affects performance more than the JIT compiler. For a moment let’s step back and see examples of compiled and non compiled languages. Languages like Go, C and C++ are called compiled languages because their programs are distributed as binary (compiled) code, which is ...

Read More »

An Unexpected Allocation – JIT Compilation Jitter

java-logo

Whilst working on ByteWatcher (see my last post) I came across something rather strange. This is the actual code snippet used to find out how much allocation there has been on a particular thread: return (long) mBeanServer.invoke( name, GET_THREAD_ALLOCATED_BYTES, PARAMS, SIGNATURE ); For the full context see here. (The way ByteWatcher works is to call this method periodically to monitor allocation.) One ...

Read More »

Java Just-In-Time compilation: more than just a buzzword

java-logo

A recent Java production performance problem forced me to revisit and truly appreciate the Java VM Just-In-Time (JIT) compiler. Most Java developers and support individuals have heard of this JVM run time performance optimization but how many truly understand and appreciate its benefits? This article will share with you a troubleshooting exercise I was involved with following the addition of ...

Read More »

Printing Generated Assembly Code From The Hotspot JIT Compiler

java-logo

Sometimes when profiling a Java application it is necessary to understand the assembly code generated by the Hotspot JIT compiler. This can be useful in determining what optimisation decisions have been made and how our code changes can affect the generated assembly code. It is also useful at times knowing what instructions are emitted when debugging a concurrent algorithm to ...

Read More »

Do you get Just-in-time compilation?

java-logo

Remember the last time when you were laughed at by C-developers? That the Java is so slooooow that they would never even consider using a language like this? In many ways, the concept still holds. But for it’s typical usage – in the backbones of a large enterprise – Java performance can definitely stand against many contestants. And this is ...

Read More »

Just in Time Compiler (JIT) in Hotspot

java-logo

The Just In Time Compiler (JIT) concept and more generally adaptive optimization is well known concept in many languages besides Java (.Net, Lua, JRuby). In order to explain what is JIT Compiler I want to start with a definition of compiler concept. According to wikipedia compiler is ‘ a computer program that transforms the source language into another computer language ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns