Additional Autotuner suggestions

The following suggestions reduce the number of minor garbage collection cycles, specifically a cycle called "malloc". Your app runs malloc cycles in approximately 18.52% of all minor garbage collection cycles.

Reducing minor garbage collection cycles can help reduce response times. The following tuning values aim to reduce malloc garbage collection cycles by setting it to a higher value. This may cause a slight increase in memory usage. You should monitor memory usage carefully to ensure your app is not running out of memory.

Suggested tuning values:
  RUBY_GC_MALLOC_LIMIT=33554432
  RUBY_GC_MALLOC_LIMIT_MAX=67108864
This commit is contained in:
Mike Dalessio
2025-10-11 11:15:54 -04:00
parent 3c4266f689
commit 956962de7f
+3 -1
View File
@@ -75,7 +75,9 @@ ENV RUBY_GC_HEAP_0_INIT_SLOTS=692636 \
RUBY_GC_HEAP_1_INIT_SLOTS=175943 \
RUBY_GC_HEAP_2_INIT_SLOTS=148807 \
RUBY_GC_HEAP_3_INIT_SLOTS=9169 \
RUBY_GC_HEAP_4_INIT_SLOTS=3054
RUBY_GC_HEAP_4_INIT_SLOTS=3054 \
RUBY_GC_MALLOC_LIMIT=33554432 \
RUBY_GC_MALLOC_LIMIT_MAX=67108864
# Start the server by default, this can be overwritten at runtime
EXPOSE 80 443 9394