Skip to content

Run GC major collection after each request

Matthias Käppler requested to merge mk-gc-requests into master

We found that this has a positive impact on memory use and gitlab-exporter is not a high-traffic system so the performance hit should be negligible.

We also compact once after all dependencies and endpoints are loaded, since defragging the heap can help with freeing up Ruby heap pages, which with stricter malloc config can be released more quickly back to the OS.

Edited by Matthias Käppler

Merge request reports