Question

Why my npm run build command gets "killed"?

I have been running this website for last 2 years and yesterday when I ran npm run build, it was killed. So, I logged out and when I logged in, digital ocean says cannot show system information because system load is more than 1.

My question is,

  1. Why it is showing system load is more then 1 when I have not installed any new packages or page infact I have deleted around 10 pages and reduced the size of my project. My project requires around 697 MB memory and I have 1 GB server.
  2. I tired to update node.js and npm but the issue remains the same

So, what’s the reason behind this issue?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
March 17, 2023
Accepted Answer

Hey @aashaytrivedi1,

Well, you might be receiving more traffic thus generating more load to your application? Additionally, some resources might require more Memory if they have been updated.

This seems like it’s just resources missing. What you can do before upgrading though is to add SWAP and see how would that go:

Add SWAP

https://www.digitalocean.com/community/tutorial_collections/how-to-add-swap-space

Swap is a portion of hard drive storage that has been set aside for the operating system to temporarily store data that it can no longer hold in RAM. This lets you increase the amount of information that your server can keep in its working memory, with some caveats. The swap space on the hard drive will be used mainly when there is no longer sufficient space in RAM to hold in-use application data.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.