Closed itz-sudo closed 4 years ago
This is mostly likely due to insufficient RAM
I need to pass max_old_space_size
value while starting pip-service with pm2. By default while reaching heap size 300MB pm2 restarting this pip-service. This works with command
PORT=3103 pm2 start /home/pelias/pip-service/index.js --name "pip" --node-args="--max_old_space_size=8000"
Hi @itz-sudo,
We don't recommend starting the service by calling index.js
directly. We provide a command, ./bin/start
, which will properly set any Node.js parameters, including max_old_space_size
.
With pm2
, you can use pm2 start ./bin/start
.
I've imported full planet recently. After starting pip-service, trying to send request to pip and I'm not getting any response. Imported wof with
sqlite=true
with only--admin-only
and having sqlite files in the path/mnt/pelias/whosonfirst/sqlite/
. My configuration inpelias.json
for whosonfirst and pip service isSince i'm using pm2 to run this pip-service taken logs came at this time
It says
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
. I've increased--max_old_space_size
from 8000 to 10000. But still it gives same error.