Hello!!
I'm having trouble running heavy queries with gremlin server.
I'm running like this:
Curl -X POST -d "{\"gremlin\": \"g.V().has('productId', 178293).as('p').in('view').out('view').barrier().where(neq('p')).groupCount().by('productId').order(local).by(values, decr).limit(local, 20)\", \" bindings \": {\"#Jsr223.groovy.engine.keep.globals\": \"phantom\"}}" "http://localhost:8182"
CPU processing goes to 300%. Then the error:
[WARN] HttpGremlinEndpointHandler - Invalid request - responding with 500 Internal Server Error and GC overhead limit exceeded
Java.lang.OutOfMemoryError: GC overhead limit exceeded
Running the query on gremlin console results in 10s.
Gremlin> g.V().has('productId', 178293).as('p').in('view').out('view').barrier().where(neq('p')).groupCount().by('productId').order(local).by(values, decr).limit(local, 20)
==> [131194: 633036,130076: 14134,301789: 14114,115201: 12113,178279: 12005,243206: 10114,301799: 10103,301811: 9082,302781: 9076,115,184: 8122,301781: 8118,115,200: 8068,105033: 8066,313766: 8064,178294: 7375,283873: 7057,301784: 6108,89171: 6079,241916: 6059,308824: 6051]
Is there anything I can do?
Thank you!