Tag

pprof

0 views collected around this technical thread.

Tencent Cloud Developer
Tencent Cloud Developer
Nov 5, 2024 · Backend Development

Understanding and Optimizing Go Performance with pprof and trace Tools

The article teaches Go developers how to generate and analyze CPU, heap, allocation, and goroutine profiles with pprof and full‑runtime traces, interpret SVG flame‑graphs, top lists, and source views, and apply concrete optimizations—such as buffering channels and using sync.Pool—to dramatically speed up a Mandelbrot generator.

GoPerformance ProfilingTrace
0 likes · 58 min read
Understanding and Optimizing Go Performance with pprof and trace Tools
DeWu Technology
DeWu Technology
Sep 30, 2024 · Backend Development

Automated Performance Profiling for Go Services with Conan

Conan is an automated profiling solution for Go microservices that embeds an SDK to continuously or adaptively sample CPU, memory and goroutine metrics, detects anomalies via user‑defined rules, uploads data to a Pyroscope server, and reports results through Feishu or Pyroscope, delivering sub‑5 % overhead and faster root‑cause analysis.

GoMicroservicesPerformance Profiling
0 likes · 16 min read
Automated Performance Profiling for Go Services with Conan
Tencent Cloud Developer
Tencent Cloud Developer
May 22, 2024 · Backend Development

Comprehensive Guide to Go pprof and trace Tools for Performance Analysis

This comprehensive guide teaches Go developers how to generate CPU, memory, and goroutine profiles with pprof, interpret SVG, top, source, and peek visualizations, understand the runtime’s sampling and allocation internals, use the trace tool to analyze events, and apply these techniques to real‑world optimizations such as speeding up a Mandelbrot image generator.

Backend DevelopmentGoPerformance Profiling
0 likes · 57 min read
Comprehensive Guide to Go pprof and trace Tools for Performance Analysis
Architect
Architect
Jan 6, 2024 · Backend Development

Root Cause Analysis and Resolution of Service Availability Fluctuations in a High‑QPS Go Backend

This article details the systematic investigation of intermittent availability drops in a high‑throughput Go service, covering hypothesis formulation, extensive profiling with pprof, gctrace, strace, fgprof, go trace, heap analysis, the discovery of a gcache LFU bug, and the final remediation steps.

GCGoPerformance Debugging
0 likes · 10 min read
Root Cause Analysis and Resolution of Service Availability Fluctuations in a High‑QPS Go Backend
Tencent Cloud Developer
Tencent Cloud Developer
Nov 9, 2023 · Backend Development

Troubleshooting Golang GC Performance Issues Causing Request Timeout Spikes

The article details how a Go service’s default GOGC setting caused overly frequent garbage‑collection pauses that spiked request timeouts, and how adjusting GOGC dynamically with debug.SetGCPercent and setting memory limits reduced GC CPU usage, extended pause intervals, and eliminated timeout spikes.

Backend DevelopmentGOGCGo Memory Management
0 likes · 20 min read
Troubleshooting Golang GC Performance Issues Causing Request Timeout Spikes
37 Interactive Technology Team
37 Interactive Technology Team
Jul 26, 2023 · Backend Development

Investigation and Resolution of CPU Spike in a Kafka-Go Consumer Using pprof

Using Go’s pprof, the team traced a gradual CPU spike in a high‑throughput kafka‑go consumer to a saturated commit queue and repeatedly nested context values, which forced costly lookups; eliminating the unnecessary trace‑id context injection (or recreating a fresh context each loop) resolved the issue and reduced CPU usage to under 2 %.

CPU ProfilingConsumerGo
0 likes · 10 min read
Investigation and Resolution of CPU Spike in a Kafka-Go Consumer Using pprof
DeWu Technology
DeWu Technology
Jan 4, 2023 · Backend Development

Diagnosing and Resolving Go Memory Leak with pprof and Prometheus

The article explains how a sudden Go service memory‑usage alert was traced with go tool pprof to a massive allocation in the quantile.newStream function, uncovered a Prometheus metric‑label explosion caused by the START_POINT label, and resolved the leak by disabling that label, while also reviewing typical Go memory‑leak patterns.

GoMemory LeakPerformance Profiling
0 likes · 15 min read
Diagnosing and Resolving Go Memory Leak with pprof and Prometheus
Sohu Tech Products
Sohu Tech Products
Apr 13, 2022 · Backend Development

Understanding Go Memory Leaks and Using pprof for Profiling

This article explains why Go programs can still exhibit memory growth despite automatic garbage collection, describes how to identify and diagnose such issues with the built‑in pprof tool, and details the underlying sampling mechanism, memory fragmentation, and cgo‑related allocations.

GCGoMemory Leak
0 likes · 9 min read
Understanding Go Memory Leaks and Using pprof for Profiling
DeWu Technology
DeWu Technology
Dec 14, 2021 · Operations

Online Service Alarm Handling and Performance Profiling in Go

The article outlines a systematic SOP‑driven approach for diagnosing online service alarms and performance issues in Go, detailing a toolbox that includes pprof, trace, goroutine visualizers, perf and eBPF, and recommends application‑level optimizations, system tuning, and continuous profiling to accelerate root‑cause identification and reduce incident frequency.

GoPerformance ProfilingSOP
0 likes · 11 min read
Online Service Alarm Handling and Performance Profiling in Go
Tencent Cloud Developer
Tencent Cloud Developer
Aug 30, 2021 · Backend Development

Troubleshooting Golang Memory Leaks: A Production Case Study

The case study walks through debugging a Go production service that regularly spiked to over 6 GB of resident memory, revealing that unbuffered channel leaks, mis‑configured HTTP client timeouts, and ultimately a cgo‑based image‑processing library spawning unmanaged threads caused the leaks, and outlines a systematic troubleshooting workflow.

Memory Leakcgodebugging
0 likes · 12 min read
Troubleshooting Golang Memory Leaks: A Production Case Study
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 27, 2021 · Databases

Analyzing MySQL Memory Usage with tcmalloc and pprof

This article demonstrates how to use Google’s tcmalloc library and the pprof tool to capture and analyze MySQL heap dumps, revealing memory allocations that performance_schema cannot track, and explains the experimental setup, data collection, and interpretation of the resulting memory allocation graphs.

Memory ProfilingMySQLPerformance Schema
0 likes · 4 min read
Analyzing MySQL Memory Usage with tcmalloc and pprof
Tencent Music Tech Team
Tencent Music Tech Team
May 13, 2021 · Backend Development

Performance Optimization and Profiling of Go Services Using pprof and trace

The article outlines why high‑load Go services need performance tuning and presents a systematic workflow—preparation, analysis with Linux tools and Go’s pprof/trace, targeted optimizations such as goroutine pooling, Redis MSET, efficient JSON handling and slice resizing—demonstrating how these changes boost throughput, lower latency, and stabilize memory usage while offering broader Go‑specific best‑practice recommendations.

GoTraceconcurrency
0 likes · 25 min read
Performance Optimization and Profiling of Go Services Using pprof and trace
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Nov 26, 2019 · Backend Development

Cutting Go Memory Allocations by 100×: Profiling, Tracing, and Fixing Middleware

This article walks through generating load with Vegeta, using pprof and Go trace to pinpoint massive heap allocations caused by the chi compression middleware, and shows how upgrading the library and disabling the middleware reduced allocations by nearly a hundred‑fold while improving GC performance.

Compression MiddlewareGoMemory Profiling
0 likes · 8 min read
Cutting Go Memory Allocations by 100×: Profiling, Tracing, and Fixing Middleware
Didi Tech
Didi Tech
Aug 2, 2019 · Backend Development

Using Go pprof for Online Performance Profiling: Case Studies and Lessons

The article demonstrates how Go’s built‑in pprof tools can be used for live performance profiling, walking through two real‑world cases—one where a malformed JSON request caused massive object allocation and CPU spikes, and another where per‑call self‑referencing structs leaked memory—while offering practical tips on input validation, allocation reduction, and GC monitoring.

Backend DevelopmentCPU optimizationGo
0 likes · 16 min read
Using Go pprof for Online Performance Profiling: Case Studies and Lessons