Tag

HotSpot

0 views collected around this technical thread.

Java Tech Enthusiast
Java Tech Enthusiast
Feb 17, 2025 · Fundamentals

Why a Java Volatile Example May Terminate Without Volatile

The program that loops on a non‑volatile boolean flag sometimes terminates because changing the counter to a volatile int or to an Integer causes the JVM to emit hidden memory barriers on reference writes, making the flag visible, but this behavior is JVM‑specific and not a reliable substitute for declaring the flag volatile.

HotSpotJVMMemory Model
0 likes · 11 min read
Why a Java Volatile Example May Terminate Without Volatile
Lobster Programming
Lobster Programming
Jan 2, 2025 · Fundamentals

How Card Tables Optimize Cross‑Generational GCRoot Scanning in Java HotSpot

This article explains how Java HotSpot uses a card‑table memory set to efficiently detect and handle cross‑generational references during young‑generation GCRoot scans, avoiding full old‑generation scans and significantly improving garbage‑collection performance.

Card TableCross-Generational ReferencesGarbage Collection
0 likes · 4 min read
How Card Tables Optimize Cross‑Generational GCRoot Scanning in Java HotSpot
Sanyou's Java Diary
Sanyou's Java Diary
Jul 25, 2024 · Backend Development

Mastering HotSpot CMS GC: Common Scenarios, Root Causes, and Optimization Strategies

This comprehensive guide explains the fundamentals of HotSpot CMS garbage collection, identifies nine typical GC problem scenarios, analyzes their root causes, and provides practical tuning strategies, code examples, and diagnostic tools to help Java engineers optimize performance and avoid costly pauses.

CMSGarbage CollectionHotSpot
0 likes · 74 min read
Mastering HotSpot CMS GC: Common Scenarios, Root Causes, and Optimization Strategies
Sohu Tech Products
Sohu Tech Products
Aug 24, 2022 · Fundamentals

JVM JIT and CodeCache Parameter Configuration Guide

This article explains the JVM's Just‑In‑Time compilation mechanism and CodeCache memory area, detailing the purpose and default values of key JIT parameters such as TieredCompilation, CompileThreshold, OnStackReplacePercentage, CICompilerCount, as well as CodeCache settings like InitialCodeCacheSize, ReservedCodeCacheSize, Xmaxjitcodesize, CodeCacheMinimumFreeSpace and UseCodeCacheFlushing, and provides practical tuning advice for high‑traffic Java services.

CodeCacheHotSpotJIT
0 likes · 15 min read
JVM JIT and CodeCache Parameter Configuration Guide
macrozheng
macrozheng
Apr 27, 2022 · Backend Development

Why Your Java App Starts Slow and How JIT Optimization Fixes It

When a Java application launches, initial requests often feel sluggish because the JVM relies on an interpreter, but as frequently executed code becomes hot, JIT compilation translates it into optimized native machine code, dramatically improving response times—a process explained along with practical strategies like Dragonwell’s JWarmUp and request pre‑warming to accelerate performance.

DragonwellHotSpotJIT
0 likes · 6 min read
Why Your Java App Starts Slow and How JIT Optimization Fixes It
IT Services Circle
IT Services Circle
Apr 15, 2022 · Backend Development

Understanding JIT Compilation and Its Impact on Application Startup Performance

The article explains why Java applications often experience high latency during the first few requests after startup, describes the role of the JVM interpreter and JIT compilation in creating hotspot code, and offers practical solutions such as JIT warm‑up techniques and traffic pre‑warming to improve performance.

BackendHotSpotJIT
0 likes · 5 min read
Understanding JIT Compilation and Its Impact on Application Startup Performance
Java Architecture Diary
Java Architecture Diary
Oct 13, 2021 · Fundamentals

Mastering HotSpot JVM: Tuning JIT, GC, and Options for Optimal Performance

This article explains the architecture of the OpenJDK HotSpot JVM, covering bytecode execution, JIT compilation, garbage collection, ergonomic defaults, configuration options, their lifecycle, and practical tuning advice to help developers optimize Java applications for various environments.

Garbage CollectionHotSpotJIT
0 likes · 19 min read
Mastering HotSpot JVM: Tuning JIT, GC, and Options for Optimal Performance
DeWu Technology
DeWu Technology
Aug 1, 2021 · Backend Development

Understanding Service Jitter and JVM JIT Compilation

The article explains how intermittent latency spikes (jitter) in a high‑throughput service can be triggered when the JVM’s Just‑In‑Time compiler activates, detailing interpreter vs. JIT, C1/C2 tiered compilation, hot‑spot detection thresholds and compilation stages, and recommends pre‑warming code, disabling tiered compilation, or tuning thresholds and JVM flags to eliminate jitter.

BackendHotSpotJIT
0 likes · 12 min read
Understanding Service Jitter and JVM JIT Compilation
New Oriental Technology
New Oriental Technology
Mar 29, 2021 · Backend Development

Sentinel Flow Control Component: Quick Start, Rules, Annotations, and Internal Mechanisms

This article introduces Alibaba Sentinel, an open‑source flow‑control framework for distributed services, covering Maven integration, dashboard setup, configuration of flow, degrade and hotspot rules, the @SentinelResource annotation, XCloud Sentinel starter usage, and a deep dive into its slot‑chain architecture and sliding‑window algorithm.

HotSpotMicroservicesRate Limiting
0 likes · 12 min read
Sentinel Flow Control Component: Quick Start, Rules, Annotations, and Internal Mechanisms
Selected Java Interview Questions
Selected Java Interview Questions
Mar 5, 2021 · Databases

Understanding Hotspot Key Issues and Alibaba Cloud Database Solutions

The article explains the causes and impacts of hotspot key problems in high‑traffic systems, reviews traditional mitigation methods and their drawbacks, and details Alibaba Cloud's read‑write separation and proxy‑based hotspot data solutions that improve scalability, transparency, and performance.

Alibaba CloudDatabaseHotSpot
0 likes · 7 min read
Understanding Hotspot Key Issues and Alibaba Cloud Database Solutions
Java Captain
Java Captain
Sep 8, 2020 · Fundamentals

Deep Dive into Java synchronized: Implementation, Lock Types, and JVM Internals

This article provides a comprehensive analysis of the HotSpot JVM implementation of the synchronized keyword, explaining object headers, biased, lightweight, and heavyweight locks, their acquisition, release, and upgrade processes, and includes detailed source code and bytecode examples.

HotSpotJVMconcurrency
0 likes · 18 min read
Deep Dive into Java synchronized: Implementation, Lock Types, and JVM Internals
FunTester
FunTester
Mar 10, 2020 · Backend Development

Understanding JVM Hotspot Compilation and Performance Gains in Java

The article explains how the JVM selectively compiles frequently executed Java code into optimized native code, demonstrates significant performance improvements through JIT compilation with two demo programs, and highlights the trade‑offs between interpretation and compilation for hotspot methods.

HotSpotJITJVM
0 likes · 5 min read
Understanding JVM Hotspot Compilation and Performance Gains in Java
Java Captain
Java Captain
Feb 6, 2018 · Backend Development

Will JVM Garbage Collector Reclaim Long-Unused Singleton Objects?

This article investigates whether the JVM garbage collector can reclaim singleton instances that remain unused for extended periods, presenting a test program, analyzing GC logs, and explaining the GC root mechanism that keeps static singleton references alive, concluding that HotSpot 1.6 does not collect such objects.

Garbage CollectionHotSpotJVM
0 likes · 6 min read
Will JVM Garbage Collector Reclaim Long-Unused Singleton Objects?
Ctrip Technology
Ctrip Technology
Nov 22, 2016 · Backend Development

Understanding Java Object.wait() and notify() Implementation in the HotSpot JVM

This article explains the internal workings of Java's Object.wait() and notify() methods, detailing how synchronized blocks, monitorenter/monitorexit instructions, the HotSpot ObjectMonitor, wait sets, and entry lists cooperate to manage thread coordination and lock ownership in multithreaded environments.

HotSpotJVMThread Synchronization
0 likes · 10 min read
Understanding Java Object.wait() and notify() Implementation in the HotSpot JVM