Skip to content

Free open file descriptors and libgit2 buffers in UpdatePagesService

Stan Hu requested to merge sh-cleanup-pages-worker into master

In UpdatePagesService, we were seeing a large number of open pack files in production. Calling Project#cleanup removes a reference to Rugged::Repository and forces libgit2 to close file descriptors and free its internal memory cache.

Relates to https://gitlab.com/gitlab-com/infrastructure/issues/3965#note_65837525

Edited by Stan Hu

Merge request reports