Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !2060

Add more info about OOM build failiure [docs]

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/GAumala/build-fails-docs into master May 01, 2017
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: GAumala

In the section about npm run build fails in troubleshooting added more info about memory usage of the build script and a link to a tutorial for adding more swap space as a viable solution.

Today I tried to create a build in my cheap 512MB Digital Ocean Ubuntu server and I ran into issues similar to #1026 (closed) and #1493 (closed). After running the command while having the system monitor open, I noticed that it uses hundreds of megabytes of memory. The docs do mention this issue, but what really helped me was a tutorial that I found online for adding more swap space to the server. It is for Ubuntu 14.04 but it does work on newer versions and it should be still useful for any other Linux distro that uses systemd. I think that it would be good to add it to the docs.

Also, since #1496 it no longer fails silently, so I decided to change the title accordingly along with the console message so that users can easily find it.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/GAumala/build-fails-docs