Learn how to analyze thread dumps to efficiently diagnose performance issues. Also, we’ll learn to detect bottlenecks or even simple bugs.
Search Results for: Linux
Java File Separator vs File Path Separator
To make our code portable between operating systems, we need to handle the directory and path separator characters correctly. We look at a few ways that Java can help use the correct characters for the host operating system.
Java Weekly, Issue 365
Virtual threads in Helidon, Out of native memory, circuit breakers, testing HTTP clients, container security, and all benchmarks are wrong!
New Features in Java 14
Explore various JEPs of Java 14.
Viewing Contents of a JAR File
Learn ways to list a JAR file’s content from the command-line
Check if a Java Program Is Running in 64-Bit or 32-Bit JVM
Learn how a Java program can detect whether it’s running in a 64-bit or 32-bit JVM.
Get Names of Classes Inside a JAR File
Learn how to get names of classes inside a given JAR file and how to load classes from a JAR file at runtime.
Using JNA to Access Native Dynamic Libraries
Learn how to use JNA to access native code easily when compared to JNI.
Conditionally Run or Ignore Tests in JUnit 4
Let’s look at how, based on certain conditions, we can run or ignore tests using JUnit.
Reducing JSON Data Size
In this tutorial, we’ll look at various ways of reducing the size of JSON in our Java applications.
How to Remove a Prefix From Strings in Groovy
Learn how to remove the prefix from a string using Groovy.
SSH Connection With Java
Learn how to establish an SSH connection with Java using two of the available Java libraries – JSch and Apache Mina SSHD.
Performance Comparison of boolean[] vs BitSet
Compare BitSets and boolean[] in terms of performance in different scenarios
A Guide to async-profiler
Explore async-profiler along with various profiling techniques it offers
Command-Line Tools to Find the Java Heap Size
Learn how to use command line tools to find the heap size of a running Java application.
Unit Testing of System.out.println() with JUnit
Learn about approaches for testing System.out.println.
A Guide to False Sharing and @Contended
Learn how sometimes false sharing might cause counterproductive effects on the performance of multithreaded applications
Configuring Stack Sizes in the JVM
Learn how to configure the thread stack sizes in the HotSpot JVM
Java Weekly, Issue 339
The Spring story on GraalVM is getting polish and Java 14 and even 15 features are getting some well-deserved attention. A solid week in the Java ecosystem.
Building a Java Application With Gradle
A quick and practical guide to building Java applications in Gradle.