New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation/runtime memory requirements? #5849

Closed
ChrisRus opened this Issue Sep 18, 2015 · 4 comments

Comments

Projects
None yet
3 participants
@ChrisRus
Copy link

ChrisRus commented Sep 18, 2015

I'm trying to set up Ghost from sources on a small 512MB Centos7 x64 droplet on DigitalOcean.

However, I cannot execute npm install because seemingly I run out of memory and Linux kills npn. I believe I've got a swapfile configured on this VPS.

Is this expected? Just what is the minimum configuration required to install/configure/run a baseline Ghost instance?

Sep 18 14:02:43 ghost0 kernel: Out of memory: Kill process 3021 (npm) score 778 or sacrifice child
Sep 18 14:02:43 ghost0 kernel: Killed process 3021 (npm) total-vm:1532112kB, anon-rss:389168kB, file-rss:0kB
Sep 18 14:03:46 ghost0 su: (to root) cdr on pts/0

Thanks.

P.S. Quick update - turns out the swapfile wasn't correctly mounted on the VPS which explains the memory exception. Still curious about the answer to the original question however.

@sebgie

This comment has been minimized.

Copy link
Contributor

sebgie commented Sep 18, 2015

Closing as duplicate of #5107.

@sebgie sebgie closed this Sep 18, 2015

@ChrisRus

This comment has been minimized.

Copy link

ChrisRus commented Jan 19, 2016

@sebgie would you please explain a bit further? I don't see how running out of memory on npm install related to #5107. Thanks.

@halfdan

This comment has been minimized.

Copy link
Member

halfdan commented Jan 19, 2016

@ChrisRus #5107 (comment) and the following comment. DigitalOcean has a one-click install for Ghost which might be easier for you to set up.

Ghost, at this point, usually takes 80-90mb of memory when run.

@sebgie

This comment has been minimized.

Copy link
Contributor

sebgie commented Jan 21, 2016

@ChrisRus I referred to the problem @halfdan linked to. According to the DO forum this is common problem with npm (https://www.digitalocean.com/community/questions/npm-gets-killed-no-matter-what) and adding swap space should hopefully solve the problem. Glad you got it working :-).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment