Skip to content

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #18

@chihyaoma

Description

@chihyaoma

After start the server, the server seems to work fine until I try to access localhost:8120 via web brower. It seems that the issue is because there were too much data loaded before. I have tried reboot the system. It doesn't help.

Any suggestion will be very appreciated.

(DL) chih-yao@chihyao-ubuntu:~/DL$ pastalog --serve 8120

pastalog@1.0.1 start /home/chih-yao/DL/lib/python2.7/site-packages/pastalog
node build/server.js "--port" "8120"

pastalog server listening on port: 8120

<--- Last few GCs --->

13396 ms: Mark-sweep 1378.7 (1434.6) -> 1378.7 (1434.6) MB, 433.6 / 0 ms [allocation failure] [GC in old space requested].
13831 ms: Mark-sweep 1378.7 (1434.6) -> 1378.7 (1434.6) MB, 434.9 / 0 ms [allocation failure] [GC in old space requested].
14266 ms: Mark-sweep 1378.7 (1434.6) -> 1378.7 (1434.6) MB, 434.7 / 0 ms [last resort gc].
14703 ms: Mark-sweep 1378.7 (1434.6) -> 1378.7 (1434.6) MB, 437.1 / 0 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x36629b1c9e31
2: encode(aka utf8encode) [/home/chih-yao/DL/lib/python2.7/site-packages/pastalog/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/utf8.js:~103] [pc=0x66f6db90c9f](this=0xec9e8310179 <an Object with map 0x275a26662199>,string=0x36629b104189 <undefined)
3: encodePacket [/home/chih-yao/DL/lib/python2.7/site-packages/pastalog/node_modules/sock...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [node]
2: 0xfc3f6c [node]
3: v8::Utils::ReportApiFailure(char const_, char const_) [node]
4: v8::internal::V8::FatalProcessOutOfMemory(char const_, bool) [node]
5: v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [node]
6: v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object__, v8::internal::Isolate_) [node]
7: 0x66f6da06338
Aborted (core dumped)

npm ERR! Linux 4.4.0-34-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" "--" "--port" "8120"
npm ERR! node v6.4.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! pastalog@1.0.1 start: node build/server.js "--port" "8120"
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the pastalog@1.0.1 start script 'node build/server.js "--port" "8120"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pastalog package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node build/server.js "--port" "8120"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs pastalog
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls pastalog
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/chih-yao/DL/lib/python2.7/site-packages/pastalog/npm-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions