Run GC major collection after each request
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