Alibaba Cloud Native
Alibaba Cloud Native
Jun 18, 2022 · Fundamentals

Unraveling Java Agent Crashes: JVM, glibc, and Thread‑Local Pitfalls

Starting from mysterious Java Agent errors in Alibaba Cloud environments, this article traces the failure through the JVM’s Instrumentation.appendToSystemClassLoaderSearch call, examines glibc’s stat and iconv conversions, reveals thread‑local storage issues, and presents concrete fixes using pthread TLS and proxy wrappers.

IConvJVMJava Agent
0 likes · 12 min read
Unraveling Java Agent Crashes: JVM, glibc, and Thread‑Local Pitfalls
Liangxu Linux
Liangxu Linux
Feb 15, 2021 · Fundamentals

How Linux Implements Per‑CPU Variables: From Definition to Runtime Access

This article explains the concept of per‑CPU variables in the Linux kernel, how they are defined with DEFINE_PER_CPU, linked into the .data..percpu section, initialized during boot, and accessed at runtime via the GS register and macro expansions such as this_cpu_read_stable.

AssemblyLinuxMacro Expansion
0 likes · 16 min read
How Linux Implements Per‑CPU Variables: From Definition to Runtime Access