Home » JVM

Tag Archives: JVM

GC Overhead Limit Exceeded

Bipartite Graph

Hello. In this tutorial, we will understand the GC Overhead Limit Exceeded error in the Java programming language. 1. Introduction Out of memory error in java is a virtual machine error thrown by the java virtual machine when the resources are exhausted. In other words, the error prevails when the virtual machine has spent hours performing the garbage collection but has ...

Read More »

JVM Shutdown Hook in Java

Bipartite Graph

This article is a tutorial on implementing a simple JVM Shutdown Hook in Java. In this example, we will take a look at different ways we can terminate a JVM application. 1. Introduction Shutdown Hooks allow developers to plug in the desired code to be executed when the JVM is shutting down. This is useful when we need to do ...

Read More »

Creating and Starting Java Threads

Bipartite Graph

In this post, we feature a comprehensive article on Creating and Starting Java Threads. 1. Introduction This article aims at a simplified understanding of creating and starting threads via an example-based approach. The examples and code samples are based on JDK 8. Table Of Contents 1.Introduction 2.Threads 3.Simple Threads 3.1.Extends Thread 3.2.Implement Runnable 4.Executors 5.Callable & Future 6.FutureTask 7.CompletableFuture 7.1.CompletableFuture ...

Read More »

ByteCode primer for Java Class Files

Bipartite Graph

It is often stated that to be good at the programming language you code in, one should at least dig and understand one abstraction level lower than the one in which you are coding. For Java, that would be the JVM, which would imply byte code. In this article we will kick start our adventures in Java byte code. Byte ...

Read More »

java.library.path – What is Java library and how to use

Bipartite Graph

In this tutorial, we will discuss how to set java.library.path. We will explain its definition, and how can be used by Java applications. The Java Virtual Machine (JVM) uses the java.library.path property in order to locate native libraries. This property is part of the system environment used by Java, in order to locate and load native libraries used by an ...

Read More »