Mango-information-systems / twitto_be

twitto_be is a real-time tweets analytics dashboard
https://twitto.be
Other
12 stars 2 forks source link

sysadmin #96

Closed mef closed 7 years ago

mef commented 8 years ago

Setup ap for production use

mef commented 7 years ago

Details about memory leak:

Server with 1GB RAM, app started at 13:40

$ node -v
v4.4.5

Crash at 00:24:

Sep 14 00:24:06 mango node-twitto[21887]: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Sep 14 00:24:06 mango node-twitto[21887]: <--- Last few GCs --->
Sep 14 00:24:06 mango node-twitto[21887]: 27698720 ms: Scavenge 1399.9 (1450.9) -> 1399.9 (1450.9) MB, 31.9 / 0 ms (+ 260.1 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying marking delaying mark-sweep].
Sep 14 00:24:06 mango node-twitto[21887]: 27708530 ms: Mark-sweep 1399.9 (1450.9) -> 1399.3 (1450.9) MB, 9809.4 / 0 ms (+ 1227.8 ms in 205 steps since start of marking, biggest step 460.0 ms) [last resort gc].
Sep 14 00:24:06 mango node-twitto[21887]: 27718315 ms: Mark-sweep 1399.3 (1450.9) -> 1398.9 (1450.9) MB, 9784.2 / 0 ms [last resort gc].
Sep 14 00:24:06 mango node-twitto[21887]: <--- JS stacktrace --->
Sep 14 00:24:06 mango node-twitto[21887]: ==== JS stack trace =========================================
Sep 14 00:24:06 mango node-twitto[21887]: Security context: 0x944a11b4629 <JS Object>
Sep 14 00:24:06 mango node-twitto[21887]: 2: encode(aka utf8encode) [/home/srv-node-mango/twitto/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/utf8.js:~103] [pc=0x2526abbebe0b] (this=0x3088f0354761 <an Object with map 0x1290d6a32571>,string=0x944a11041b9 <undefined>)
Sep 14 00:24:06 mango node-twitto[21887]: 3: encodePacket [/home/srv-node-mango/twitto/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-pa...
PanosSynetos commented 7 years ago

I started the app with --trace_gc . Deleted persist file. Memory keeps in increasing, like 1 mb every minute. Couldnt make something useful out of yesterday's log files..

mef commented 7 years ago

:tada: https setup for test domain,

to be set for production domain once migration is done...

mef commented 7 years ago

done :)