Category: java
-
📊 Diagnosing Java Applications: Creating and Analyzing Thread & Heap Dumps
When your Java application starts misbehaving – hanging, crashing, or consuming too much memory – thread and heap dumps are your go-to tools for root cause analysis. This post walks through how to create these dumps using the jstack, jmap, and jcmd tools, and suggests utilities for analyzing them effectively. Use jps to identify the…
-
Install Java using Homebrew and jEnv on MacOS
Sometimes it’s desirable to use different Java versions. Here’s one way how to do it on a Mac. Prerequisites If you haven’t already, install Homebrew as a first step. Now, that Homebrew is installed, install jEnv, next. It’ll enable you to manage multiple Java installations and to switch easily amongst them. Follow the steps listed…