Skip to content
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

Memory requirements? #445

Closed
justinabrahms opened this issue May 19, 2020 · 3 comments
Closed

Memory requirements? #445

justinabrahms opened this issue May 19, 2020 · 3 comments

Comments

@justinabrahms
Copy link
Collaborator

What's the problem you want solved?

I was running oasis on a webserver I have. It has 1 gb ram, 2 gb swap. I got a OOM error. What are the requirements around memory for this do you think?

Is there a solution you'd like to recommend?

justin@octiron:~/src/oasis$ npm run start

> @fraction/oasis@2.16.0 start /home/justin/src/oasis
> node src/index.js

  oasis No configuration file found at /home/justin/.config/oasis/default.json, using built-in default values. +0ms
error loading sodium bindings: Cannot find module 'sodium-native'
Require stack:
- /home/justin/src/oasis/node_modules/chloride/bindings.js
- /home/justin/src/oasis/node_modules/chloride/index.js
- /home/justin/src/oasis/node_modules/ssb-keys/index.js
- /home/justin/src/oasis/node_modules/ssb-client/index.js
- /home/justin/src/oasis/src/ssb.js
- /home/justin/src/oasis/src/index.js
falling back to javascript version.
  oasis Listening on http://localhost:3000 +2s
  oasis Starting Scuttlebutt service +0ms
ssb-friends: stream legacy api used

<--- Last few GCs --->

[9251:0x50a4560]   407985 ms: Mark-sweep 488.9 (495.9) -> 487.0 (495.9) MB, 1300.4 / 0.0 ms  (average mu = 0.159, current mu = 0.124) allocation failure scavenge might not succeed
[9251:0x50a4560]   409449 ms: Mark-sweep 489.5 (496.5) -> 487.1 (495.9) MB, 1401.3 / 0.0 ms  (average mu = 0.102, current mu = 0.043) allocation failure scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0xa295e0 node::Abort() [node]
 2: 0x9782df node::FatalError(char const*, char const*) [node]
 3: 0xb99c2e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
 4: 0xb99fa7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
 5: 0xd3a3b5  [node]
 6: 0xd3ad5b v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
 7: 0xd48b52 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
 8: 0xd499a5 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
 9: 0xd4c36c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
10: 0xd1ba0b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
11: 0x104bdaf v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
12: 0x13a5a99  [node]
Aborted (core dumped)
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! @fraction/oasis@2.16.0 start: `node src/index.js`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the @fraction/oasis@2.16.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
@christianbundy
Copy link
Member

Was this happening on the stable version, or master? There was an OOM bug that's been recently resolved but hasn't been released as a stable version: #427

@justinabrahms
Copy link
Collaborator Author

justinabrahms commented May 19, 2020 via email

@Powersource
Copy link
Collaborator

Hoping this was fixed? Comment if you're still running into this

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

No branches or pull requests

3 participants