implydata / plyql

MySQL-like queries for Druid built on top of Plywood

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plyql gateway shutting down due to memory issues

rajitha703 opened this issue · comments

Hi,

I brought up the mysql gateway pointing to a running druid instance. After firing few queries, the gateway crashes with following error :

1: /* anonymous */(aka /* anonymous */) [/home/rajitha.r/local/node/lib/node_modules/plyql/build/plyql-mysql-gateway.js:~98] [pc=0x6d482f081f9] (this=0x1d9f1cd04381 <undefined>,row=0x25c40070c599 <an Object with map 0x23a11e18261>)
2: arguments adaptor frame: 3->1
3: map [native array.js:~994] [pc=0x6d482ed6e82] (this=0x75b9cf56fb9 <JS 

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


I googled a bit about this error and its advised to increase the parameter "--max-old-space-size" in node. I am not very sure about setting this variable. Can someone please help me fix this issue.

Thanks in advance,
Rajitha

Vadim's reply here helped fix the issue.

The plyql program that you run is actually just an executable node program with a hashbang you can always run it as node <path-to>/plyql
If you had plyql installed globally you can find it by running which plyql (on my system that returns: /usr/local/bin/plyql)
Now you can run node --max-old-space-size=100m /usr/local/bin/plyql ...


Closing this one..