Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

swap issues very soon #126

Closed
dereuromark opened this issue Feb 7, 2018 · 2 comments
Closed

swap issues very soon #126

dereuromark opened this issue Feb 7, 2018 · 2 comments

Comments

@dereuromark
Copy link
Contributor

dereuromark commented Feb 7, 2018

we should find better/saner defaults for current usage and use cases.
With medium apps you get this very soon from the start:

The following exception is caused by a lack of memory or swap, or not having swap configured
Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details
[ErrorException]
proc_open(): fork failed - Cannot allocate memory

As per https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors
This could be happening because the VPS runs out of memory and has no Swap space enabled.

running 'top' in parallel tells me, though:

KiB Mem :  1745168 total,  1271028 free,   347604 used,   126536 buff/cache
KiB Swap:   786428 total,   482516 free,   303912 used.  1254120 avail Mem

Seems like there is still enough free, so whats going on if it isnt the memory running out?

@bravo-kernel
Copy link
Contributor

Cakebox uses the ubuntu box defaults which are already optimized. I guess this should no longer happen when creating a new box with the PHP 7.x fix.

@bravo-kernel
Copy link
Contributor

Closing as I cannot reproduce this error on a fresh box (running for +1 months now)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants