Java KeyStores (JKS) provide a secure way to store sensitive data, and they can be used by Java applications to encrypt and decrypt data, authenticate users, and secure network communications. In this tutorial we will check three ways to read the content of a KeyStore information such as the alias the the Certificate.
Java
Troubleshooting java.net.SocketException: Connection reset
The java.net.SocketException Connection reset is a common Runtime error within Java applications. This tutorial delves into its occurrences, diagnostic steps, and effective solutions.
How to extract a Thread Dump from an Heap Dump
To troubleshoot a Java application it is common to analyze both Heap Dumps and Thread Dumps. In this article we will learn how to extract a Thread dump from an Heap Dump with some freely available tools like VisualVM.
How to generate an Heap Dump in Java
A heap dump is a snapshot of the Java Virtual Machine’s memory, capturing the state of objects and their relationships. Analyzing heap dumps aids in diagnosing memory-related issues, identifying memory leaks, and optimizing application performance. Let’s explore five different methods to generate a heap dump in Java. 1. Using jmap Command-Line Tool Step 1: Identify … Read more
Mastering Virtual Threads: A Comprehensive Tutorial
Virtual threads, also known as project Loom, are a new feature available in Java 21 that aims to provide lightweight, efficient, and scalable concurrency. They are designed to improve the performance and efficiency of concurrent applications by reducing the overhead associated with traditional thread-based concurrency. At the same time, they allow write asynchronous code in a much simpler way than reactive programming.
How to analyze large Java Heap Dumps
One critical tool in diagnosing memory-related issues is the Heap dump, a snapshot of an application’s memory at a particular point in time. However, as applications become larger and more intricate, heap dumps can also become massive and challenging to analyze. In this article, we will learn how to examine Heap Dump data even with lightly equipped hardware.
How to init an Array in Java made simple
In this comprehensive guide, we uncover the diverse techniques to init an array in Java, discussing basic and advanced approaches. Whether you’re diving into static or dynamic array creation, Arrays.copy or exploring data Streaming , this article equips you with the essential know-how to streamline your Java programming experience Static Array Initialization Static array initialization … Read more
Migrating from Java 8 to Java 17 with OpenRewrite
In this article we will discuss on how to migrate Java applications from Java 8 to Java 17 using the OpenRewrite migration plugin. At the end of this tutorial, you will learn which are most common challenges that you can face when upgrading to Java 17 Java 8 to Java 17 challenges In pure project … Read more
Parsing PDF in Java made simple
When it comes to parsing PDF files in Java, two popular libraries stand out: Apache Tika and Apache PDFBox. Both libraries provide powerful features for working with PDF documents, but they have different approaches and trade-offs. In this article, we will explore how to parse a PDF using each library and compare their pros and … Read more
How to inspect a Thread Dump like a pro
This article will guide you in troubleshooting Java application by analysing a Thread dump with the instruments available in the JDK. We will also learn some tools to simplify our analysis.