Tag

strace

0 views collected around this technical thread.

Refining Core Development Skills
Refining Core Development Skills
Dec 12, 2024 · Fundamentals

Understanding How strace Works: A Step‑by‑Step Implementation Using ptrace

This article explains the inner workings of the classic strace command by walking through a handcrafted implementation that uses ptrace to attach to a target process, capture its system calls, read the ORIG_RAX register, and print the syscall name, while also detailing the relevant kernel source code.

Linux Kerneldebuggingptrace
0 likes · 15 min read
Understanding How strace Works: A Step‑by‑Step Implementation Using ptrace
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 8, 2024 · Databases

MySQL Initialization Failure Caused by Missing Newline in Configuration File

When initializing a MySQL 5.7.44 instance, the server aborts because the configuration file lacks a trailing newline, causing the parser to misinterpret the final '!includedir' line and report a missing '/etc/my.cnf.' directory, which can be resolved by adding a newline at the end of the file.

InitializationMySQLconfiguration
0 likes · 12 min read
MySQL Initialization Failure Caused by Missing Newline in Configuration File
Code Ape Tech Column
Code Ape Tech Column
Nov 3, 2023 · Backend Development

Diagnosing Excessive Native Memory Usage in a Spring Boot Application Using JVM Native Memory Tracking and System Tools

After migrating a project to the MDP framework based on Spring Boot, the author observed swap overuse and physical memory far exceeding the 4 GB heap; using JVM native memory tracking, gperftools, strace, pmap, and a custom allocator, they traced a native‑memory leak to Spring Boot’s ZipInflaterInputStream during JAR scanning and resolved it by limiting scan paths.

JVMJavaMemory Leak
0 likes · 12 min read
Diagnosing Excessive Native Memory Usage in a Spring Boot Application Using JVM Native Memory Tracking and System Tools
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 29, 2022 · Databases

Diagnosing Abnormal MySQL Connection Traffic with strace and mysqlslap

This article demonstrates how to locate the source of abnormal MySQL connection traffic by identifying the offending socket, tracing its system‑call stack with strace, and correlating the activity to specific application logic such as create/drop database and workload tasks.

MySQLdatabasesdebugging
0 likes · 4 min read
Diagnosing Abnormal MySQL Connection Traffic with strace and mysqlslap
Code Ape Tech Column
Code Ape Tech Column
Sep 21, 2022 · Backend Development

Investigating Excessive Native Memory Usage in a Spring Boot Application Migrated to MDP Framework

After migrating a project to the MDP framework based on Spring Boot, the system repeatedly reported high swap usage despite a 4 GB heap configuration, leading to an investigation that uncovered native memory consumption caused by unchecked JAR scanning and allocator behavior, which was resolved by limiting scan paths and updating Spring Boot's inflater implementation.

JVMMemory LeakNative Memory
0 likes · 12 min read
Investigating Excessive Native Memory Usage in a Spring Boot Application Migrated to MDP Framework
Top Architect
Top Architect
May 10, 2022 · Backend Development

Diagnosing Excessive Swap Usage in a SpringBoot Project: Memory Profiling and Native Memory Analysis

The article details a step‑by‑step investigation of a SpringBoot application that repeatedly triggered high swap usage, describing how JVM parameters, native memory tracking, gperftools, strace, and custom memory allocators were used to pinpoint and resolve off‑heap memory leaks caused by the Inflater implementation and glibc memory pools.

JVMJavaMemory Profiling
0 likes · 12 min read
Diagnosing Excessive Swap Usage in a SpringBoot Project: Memory Profiling and Native Memory Analysis
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 9, 2021 · Databases

Resolving MySQL binlog.index Missing Error After XtraBackup Restore on CentOS 8

This article describes a step‑by‑step investigation of a MySQL 8.0.18 startup failure caused by a missing binlog index file after using Percona XtraBackup on CentOS 8, analyzes the root cause, and provides practical fixes and diagnostic techniques such as strace and source‑code inspection.

CentOS8Troubleshootingbackup-restore
0 likes · 13 min read
Resolving MySQL binlog.index Missing Error After XtraBackup Restore on CentOS 8
Top Architect
Top Architect
Jul 29, 2020 · Backend Development

Investigation of Excessive Off‑Heap Memory Usage After Migrating a Spring Boot Project to the MDP Framework

The article details a step‑by‑step forensic analysis of why a Spring Boot application migrated to the MDP framework consumed far more physical memory than its configured 4 GB heap, uncovering off‑heap allocations caused by native code, package‑scanning, and glibc memory‑pool behavior, and explains how limiting scan paths or upgrading Spring Boot resolves the issue.

JVMMemory DebuggingNative Memory
0 likes · 12 min read
Investigation of Excessive Off‑Heap Memory Usage After Migrating a Spring Boot Project to the MDP Framework
Aikesheng Open Source Community
Aikesheng Open Source Community
May 29, 2020 · Databases

Understanding MySQL Table Cache: Experimental Verification and Operational Recommendations

This article experimentally demonstrates how MySQL's table cache works, showing that it reduces file‑system reads of table definition files, operates per thread, and explains the recommended table_open_cache sizing formula based on concurrency and join complexity.

CacheDatabase TuningMySQL
0 likes · 4 min read
Understanding MySQL Table Cache: Experimental Verification and Operational Recommendations
Beike Product & Technology
Beike Product & Technology
Sep 6, 2019 · Operations

Analyzing Core Dumps in Linux PHP Production Environments: Tools, Causes, and Solutions

This article explains core dumps, their history, generation, impact on services, and provides a detailed Linux PHP case study with step‑by‑step debugging using strace, gdb, and ulimit, culminating in root‑cause analysis and remediation recommendations.

Core DumpGDBLinux
0 likes · 31 min read
Analyzing Core Dumps in Linux PHP Production Environments: Tools, Causes, and Solutions
NetEase Game Operations Platform
NetEase Game Operations Platform
Jan 30, 2019 · Operations

Effective Python Debugging Techniques: Print, Logging, IDE Debuggers, GDB, Perf, Strace, and Inject Debugger

This article explores practical Python debugging methods—from simple print statements and structured logging to powerful IDE debuggers, GDB, perf, strace, and the inject debugger pylane—providing code examples, best‑practice guidelines, and tips for improving observability and performance in production systems.

GDBPythondebugging
0 likes · 20 min read
Effective Python Debugging Techniques: Print, Logging, IDE Debuggers, GDB, Perf, Strace, and Inject Debugger
Qunar Tech Salon
Qunar Tech Salon
Jun 20, 2016 · Operations

Using strace for Linux Troubleshooting, Debugging, and Performance Analysis

This article explains what strace is, how it works via ptrace, and demonstrates its practical use in diagnosing service startup failures, process exits, shared‑memory errors, and performance bottlenecks through detailed examples and common command‑line options.

LinuxPerformance analysisTroubleshooting
0 likes · 14 min read
Using strace for Linux Troubleshooting, Debugging, and Performance Analysis
Efficient Ops
Efficient Ops
May 23, 2016 · Operations

Mastering strace: Diagnose Linux Process Issues with Real-World Examples

This article explains what strace is, how it works, and provides step‑by‑step examples—including fixing a failed service start, tracing nginx, diagnosing process crashes, shared‑memory errors, and performance analysis—to help operations engineers quickly locate and resolve Linux system problems.

LinuxPerformance analysisdebugging
0 likes · 18 min read
Mastering strace: Diagnose Linux Process Issues with Real-World Examples
Qunar Tech Salon
Qunar Tech Salon
Oct 26, 2015 · Operations

Diagnosing High CPU Usage in PHP Processes with strace

This article demonstrates how to use strace, including its -c, -T, and -e options, to identify kernel‑level system calls such as clone that cause high CPU consumption in PHP processes on a Linux server, providing step‑by‑step commands and interpretation of the results.

LinuxPHPPerformance Debugging
0 likes · 4 min read
Diagnosing High CPU Usage in PHP Processes with strace