Tag

JVM

1 views collected around this technical thread.

Lobster Programming
Lobster Programming
Jun 16, 2025 · Backend Development

When Do Java Objects Move to the Old Generation? Key GC Triggers Explained

This article explains the main conditions that cause Java objects to be promoted from the young generation to the old generation, covering age thresholds, space guarantees, dynamic age determination, and large‑object allocation rules in HotSpot JVM.

Garbage CollectionJVMJava
0 likes · 4 min read
When Do Java Objects Move to the Old Generation? Key GC Triggers Explained
IT Services Circle
IT Services Circle
Jun 15, 2025 · Backend Development

How to Diagnose and Fix JVM GC Pauses in High‑Concurrency Microservices

This article walks through a real‑world production case, detailing how to systematically detect, analyze, and resolve severe JVM garbage‑collection pauses in a high‑concurrency Spring Boot microservice, covering resource analysis, JVM flag tuning, G1GC migration, JMX listeners, and GC‑log investigation.

G1GCGarbage CollectionJVM
0 likes · 16 min read
How to Diagnose and Fix JVM GC Pauses in High‑Concurrency Microservices
IT Services Circle
IT Services Circle
Jun 10, 2025 · Backend Development

Master TP-Link Backend Interview: JVM, GC, Synchronization, and Redis Cache Strategies

The article shares a personal experience of TP-Link's early campus recruitment and salary expectations, then provides a comprehensive Java backend interview guide covering class‑loader delegation, JVM memory layout, garbage‑collector types, synchronized lock mechanics, and common Redis cache pitfalls with practical solutions.

Backend InterviewCache ConsistencyGarbage Collection
0 likes · 18 min read
Master TP-Link Backend Interview: JVM, GC, Synchronization, and Redis Cache Strategies
Lobster Programming
Lobster Programming
Jun 9, 2025 · Fundamentals

Why JVM Uses Two Survivor Spaces: Boosting GC Efficiency and Memory Utilization

JVM’s generational garbage collection divides the heap into young and old generations, using two Survivor spaces to incrementally age objects, apply a copying algorithm, reduce fragmentation, improve memory utilization, and accelerate short‑lived object reclamation, ultimately enhancing overall GC performance.

Garbage CollectionGenerational GCJVM
0 likes · 4 min read
Why JVM Uses Two Survivor Spaces: Boosting GC Efficiency and Memory Utilization
Cognitive Technology Team
Cognitive Technology Team
Jun 5, 2025 · Backend Development

Comparing CRaC and ReadyNow for Faster Java Application Startup

This article explains how Azul's CRaC and ReadyNow technologies differ in approach to accelerating Java application startup, detailing the Java launch process, optimization phases, implementation requirements, and a side‑by‑side comparison of their benefits and trade‑offs.

CRaCJVMJava
0 likes · 12 min read
Comparing CRaC and ReadyNow for Faster Java Application Startup
DeWu Technology
DeWu Technology
Jun 4, 2025 · Backend Development

Performance Optimization of Floating‑Point Conversion and GC Tuning in Java Backend Services

This article details how replacing Java's native double parsing with the Ryu and FastFloat algorithms, alongside JVM GC tuning, dramatically reduces CPU usage and latency in backend services, offering practical code examples, benchmark results, and actionable optimization strategies.

FastFloatFloating-pointGC
0 likes · 15 min read
Performance Optimization of Floating‑Point Conversion and GC Tuning in Java Backend Services
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 4, 2025 · Backend Development

Understanding Java Locks, synchronized, ReentrantLock, and Kotlin Coroutine Synchronization

This article explains Java's lock mechanisms—including synchronized, ReentrantLock, and their JVM implementations—covers lock classifications, memory barriers, CAS, and compares them with Kotlin coroutine synchronization tools like Mutex, providing code examples and practical guidance for safe concurrent programming.

CoroutinesJVMJava
0 likes · 22 min read
Understanding Java Locks, synchronized, ReentrantLock, and Kotlin Coroutine Synchronization
Raymond Ops
Raymond Ops
Jun 2, 2025 · Operations

Mastering Java JVM Tuning: Essential Commands, GC Strategies, and Reference Types

This guide explains how to launch Java processes from the command line, details key JVM tuning flags such as -X and -XX options, describes garbage collection algorithms, reference strengths, and stop‑the‑world pauses, providing practical examples and diagrams to help developers optimize memory usage and performance.

Garbage CollectionJVMJava
0 likes · 14 min read
Mastering Java JVM Tuning: Essential Commands, GC Strategies, and Reference Types
Cognitive Technology Team
Cognitive Technology Team
May 30, 2025 · Fundamentals

Understanding System.exit() vs Runtime.getRuntime().halt() in Java

This tutorial explains the differences between Java's System.exit() and Runtime.getRuntime().halt(), detailing their shutdown sequences, impact on shutdown hooks and finalizers, providing code examples and test cases, and offering guidance on when to use each method safely.

JVMJavaProcess Termination
0 likes · 5 min read
Understanding System.exit() vs Runtime.getRuntime().halt() in Java
Java Captain
Java Captain
May 21, 2025 · Backend Development

Graceful Shutdown of Spring Boot Applications Using JVM Signals and Actuator

The article explains how to achieve graceful shutdown of Spring Boot services by handling Linux kill signals, registering JVM shutdown hooks, and exposing an Actuator REST endpoint that safely releases resources, stops beans, and terminates the JVM without data loss.

ActuatorGraceful ShutdownJVM
0 likes · 11 min read
Graceful Shutdown of Spring Boot Applications Using JVM Signals and Actuator
Cognitive Technology Team
Cognitive Technology Team
May 13, 2025 · Fundamentals

An Introduction to SootUp: Static Analysis of JVM Code

This article introduces the SootUp library, explains how to configure its Maven dependencies, describes the Jimple intermediate representation, and demonstrates how to use SootUp's API to analyze Java source code, bytecode, and method bodies through a series of code examples.

BytecodeJVMJava
0 likes · 14 min read
An Introduction to SootUp: Static Analysis of JVM Code
Java Captain
Java Captain
May 2, 2025 · Fundamentals

Understanding Java Concurrency: Challenges and Solutions from Hardware to JVM

This article uses real‑world analogies to dissect the three core challenges of Java concurrency—ordering, visibility, and atomicity—and explains how hardware instructions, JVM mechanisms, and Java SDK tools such as locks, CAS, and waiting/notification utilities provide efficient solutions.

CASJVMJava
0 likes · 14 min read
Understanding Java Concurrency: Challenges and Solutions from Hardware to JVM
IT Services Circle
IT Services Circle
Apr 29, 2025 · Backend Development

Understanding JVM Garbage Collection Mechanisms for Interviews

This article humorously introduces a common interview scenario and then provides a comprehensive overview of JVM garbage collection, covering memory regions, GC roots, collector types like ParNew, G1, CMS, tuning parameters, code examples, and practical tips for diagnosing and optimizing GC behavior.

Garbage CollectionInterviewJVM
0 likes · 8 min read
Understanding JVM Garbage Collection Mechanisms for Interviews
JD Tech Talk
JD Tech Talk
Apr 29, 2025 · Backend Development

Understanding Java ShutdownHook: Principles, Implementation, and Use Cases

This article explains the concept of Java's Runtime.addShutdownHook, details its underlying implementation in the Runtime and ApplicationShutdownHooks classes, demonstrates usage with code examples, discusses typical application scenarios, potential risks of long‑running hooks, and provides best‑practice recommendations for safe JVM shutdown handling.

JVMJavaShutdownHook
0 likes · 7 min read
Understanding Java ShutdownHook: Principles, Implementation, and Use Cases
Java Tech Enthusiast
Java Tech Enthusiast
Apr 18, 2025 · Backend Development

McDonald's Java Backend Interview Experience: IoC/DI, MyBatis, JVM, Concurrency, Docker/K8s

The article recounts a McDonald's China backend interview, explaining IoC/DI concepts, MyBatis benefits, JVM garbage‑collection and memory layout, MySQL engine differences, concurrency locking strategies, RPC advantages over HTTP, HTTPS basics, essential Docker/Kubernetes commands, and a typical Git workflow.

DockerInterviewIoC
0 likes · 17 min read
McDonald's Java Backend Interview Experience: IoC/DI, MyBatis, JVM, Concurrency, Docker/K8s
Top Architect
Top Architect
Apr 14, 2025 · Backend Development

Measuring Heap Memory Consumption of HTTP and RPC Requests in a SpringBoot Application

This article details a step‑by‑step experiment using SpringBoot 2.5.4 and JMeter to quantify how much heap memory a single HTTP or RPC request consumes, analyzes GC logs, presents code snippets for the test endpoints, and discusses the impact of logging and payload size on memory usage.

GCHTTPJMeter
0 likes · 11 min read
Measuring Heap Memory Consumption of HTTP and RPC Requests in a SpringBoot Application
Cognitive Technology Team
Cognitive Technology Team
Apr 13, 2025 · Backend Development

Understanding and Resolving java.lang.OutOfMemoryError: GC Overhead Limit Exceeded

This article explains why the JVM throws java.lang.OutOfMemoryError: GC overhead limit exceeded, outlines common causes such as traffic spikes, memory leaks, insufficient heap and inefficient GC, and provides practical solutions and debugging steps to diagnose and fix the issue.

GCJVMJava
0 likes · 4 min read
Understanding and Resolving java.lang.OutOfMemoryError: GC Overhead Limit Exceeded
Top Architect
Top Architect
Apr 10, 2025 · Backend Development

Measuring Heap Memory Consumption of HTTP and RPC Requests in Spring Boot

The article presents a Spring Boot experiment measuring per‑request heap memory usage for HTTP and RPC calls, details the JMeter test setup, analyzes GC logs, reports findings such as ~34KB per HTTP request and 0.5‑1MB per RPC request, offers optimization recommendations, and also includes promotional material for AI‑related products.

Backend DevelopmentGCJVM
0 likes · 11 min read
Measuring Heap Memory Consumption of HTTP and RPC Requests in Spring Boot