High cpu usage / long waiting time for unicorn when viewing large commits
Created by: tomplast
At work we are using GitLab and whenever we try to look at a large commit unicorn get a very high cpu usage and we have to wait a long time for the page to render.
Took one of our larger commits and we had to wait 30 seconds for the commit to load in GitLab. The commit had the following changes: "20 changed files with 4657 additions and 4 deletions"
I have also configured unicorn to spawn more workers but only one of the workers does any job (from the looks of the cpu usage).
Our GitLab instance is virtualized, has 2 cpu cores and about 4GB of memory.