Session
Profiling, Memory Management, and Garbage Collection in Go
Go makes it deceptively easy to write scalable applications, but performance bottlenecks often lurk where we least expect them: in memory usage and garbage collection. Developers may suddenly face high latency, ballooning memory, or mysterious goroutine leaks in production — leaving them puzzled about what went wrong.
In this talk, we’ll demystify how Go manages memory under the hood, explore the garbage collector’s evolution into a low-latency, concurrent system, and show how to tune it effectively. We’ll walk through real examples of heap vs stack allocations, escape analysis, and common pitfalls with slices, maps, and goroutines.
Beyond theory, we’ll dive into practical profiling with pprof, flamegraphs, and GC tracing to spot CPU hotspots, memory leaks, and lock contention. Through live demos, you’ll see how to diagnose and fix issues before they reach production.
By the end, you’ll leave with a clear understanding of Go’s memory model, the tools to profile and optimise your services, and best practices to keep your Go applications fast, lean, and reliable.
Learning Outcomes
* Understand Go’s memory model (stack vs heap, escape analysis).
* Grasp how Go’s garbage collector works and how to tune it.
* Learn practical profiling techniques with pprof and tracing.
* Recognise common memory pitfalls (goroutines, slices, maps).
* Apply a systematic approach to diagnosing and fixing performance issues.
Target Audience
* Intermediate to advanced Go developers.
* Engineers building high-performance, production-grade Go services.
* Developers curious about runtime internals and performance tuning.
Ajitem Sahasrabuddhe
Staff DevOps Engineer, Automattic
Nagpur, India
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top