LightTable / Javascript

Javascript language plugin for Light Table
MIT License
56 stars 79 forks source link

How to allocate more memory to the nodejs connector ? #23

Open rbecheras opened 7 years ago

rbecheras commented 7 years ago

I would want to use the NodeJS connection to be able to evaluate my NodeJS web server application, but it seems the process doesn't have enough allocated memory to be run.

My application lauch, the app starting logs output as they have to (server.js[stdout]), but a few seconds later the process crash (server.js[stderr]):

server.js[stdout]:
ENVIRONEMENT: development

server.js[stdout]:
Application run by node@v4.0.0

server.js[stdout]:
Application loaded using the "development" environment configuration

server.js[stderr]:
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory

<--- Last few GCs --->

   15494 ms: Mark-sweep 936.1 (1018.7) -> 923.1 (1021.7) MB, 710.1 / 0 ms [allocation failure] [GC in old space requested].
   16167 ms: Mark-sweep 935.8 (1021.7) -> 923.1 (1021.7) MB, 672.8 / 0 ms [allocation failure] [GC in old space requested].
   16923 ms: Mark-sweep 935.8 (1021.7) -> 923.0 (1020.7) MB, 732.6 / 0 ms [last resort gc].
   17611 ms: Mark-sweep 923.0 (1020.7) -> 922.9 (1020.7) MB, 688.0 / 0 ms [last resort gc].

<--- JS stacktrace --->

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

Security context: 0x3fbf90037339 <JS Object>
    1: createContext [vm.js:~27] [pc=0x3d4af1976fee] (this=0x3f3f4dd185f9 <an Object with map 0x379014624189>,sandbox=0x1d8575ff0ae9 <an Object with map 0x1b5b0eadb509>)
    2: context(aka context) [/mnt/storage/softwares/lighttable-0.8.1-linux/resources/app/plugins/Javascript/node/ltnodeclient.js:54] [pc=0x3d4ad7b3db4a] (this=0x3fbf90004131 <undefined>,path=0x1d8575ff09e9 <String[85]: /mnt/sto...

How can I allocate more memory to the process ? Is it even possible ?