TLDR Dev · ARTICLES & TUTORIALS

CURIOSITY REDUCED THE HEAP SIZE BY 60%

mostlyobvio.us3 min read

Summary from the TLDR Dev newsletter

An agent kept filtering a Ruby warning out of its test output, and chasing it down revealed that the OpenTelemetry AWS instrumentation was force-loading about 200 SDK service classes at boot when the app only needed a handful. A small patch that skips unresolved autoloads cut VM classes and heap roughly 60% and boot time 36%. Following an odd signal for five minutes is now cheap enough to do routinely.