Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #6915

Closed
Open
Created May 02, 2014 by Administrator@rootOwner

Backup needs "unreasonable" amounts of memory

Created by: tomplast

When I upgraded to 6.8 (used 6.6.before and don't know if 6.7 had the same problem) I suddenly started to get memory errors with unicorn every night when I run the backup task.

ERROR -- : Cannot allocate memory - fork(2) (Errno::ENOMEM) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:496:in fork' /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:496:inspawn_missing_workers' /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:511:in maintain_worker_count' /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:277:injoin' /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/bin/unicorn_rails:209:in `<top (required)>'

After this I added more memory to the virtual machine that runs GitLab, from around 6Gb to around 14Gb. The errors has stopped but the memory usage is kept around 1,5Gb for the whole machine during the day and rises to about 9Gb when the backup is running!

I can understand that it needs some more memory during the backup but 6 times as much as the daily usage seems a little high I think.

The total size of my backups lies around 1Gb so it's not an enormous amount of data I think.

So is this high memory usage a bug or what?

Assignee
Assign to
Time tracking