1. CPU-bound, I/O-bound
- CPU-bound: more cores, processes.
- I/O-bound: more concurrency, goroutines.
2. How memory is allocated:
- Stack: variable
- Heap: object
3. Garbage Collector
- Cannot clean reference cycles.
- For example, a.ref = b → can not clean this object → memory leak.
4. Tail Latency (p99 spike, p50 normal)
- Your p50 looks fine; p99 peak is high.
- If p99 is spiky while p50 is flat and CPU is unremarkable, GC is a legitimate hypothesis
- Percentile latency
- p50: 50% request > threshold, 50% request < threshold
- p99: 99% < it, 1% over it.
5. Long-running services
6. Profiler
- Stack
- Heap
- To measure utilization of the memory.
7. Resource Utilisation