Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-26-2019 08:41 AM
I am running through the Grtaphaware NLP example
After working through websocket issues I now get this error when running this command:
CALL apoc.periodic.iterate( "MATCH (l:Lesson) RETURN l",
"CALL ga.nlp.annotate({text: l.lesson, id: id(l)}) YIELD result
MERGE (l)-[:HAS_ANNOTATED_TEXT]->(result)", {batchSize:1, iterateList:True})
Neo.ClientError.Procedure.ProcedureCallFailed:
Failed to invoke procedure `apoc.periodic.iterate`:
Caused by: java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@7a5af280
rejected from java.util.concurrent.ThreadPoolExecutor@4154d930[Shutting down, pool size = 1, active threads = 1, queued tasks = 49, completed tasks = 194]
My initial heap size is 1G with 4G max.
neo4j version 3.5.3 Enterprise, with appropriate apoc and graphaware plugins
desktop version Neo4j Desktop 1.1.21
04-27-2019 01:20 PM
Welcome to the community @david.meza01! Would be great if you could introduce yourself over here (https://community.neo4j.com/c/general/introduce-yourself).
This actually looks like something is limiting access to launch another thread. @michael.hunger - can you take a look?
04-27-2019 02:30 PM
Hi David,
can you try a bigger batchSize
e.g. 100 ?
How many CPUs do you have ?
Looks a bit like resource exhaustion.
Does it work if you call it regularly for a single lesson?
04-28-2019 05:58 PM
I have not tried a higher batch size. The Graphaware tutorial states to leave it at 1.
I am running this on an MAC Book pro with 4 cores and 16GB of RAM.
It will run on the first 300 or so lessons and then fail.
05-16-2019 08:46 AM
I am running into the exact same problem, with the same macbook specifications. When performing only on the first 200 everything works fine. However, when I try again on the next 200 (by using 'limit 200'), neo4j still shuts down. It seems that it doesn't matter whether to perform all in one go or run in sets of 200. It will always shut down. Seems that apoc.periodic.iterate keeps something in memory?
@david.meza01 Have you been able to solve this issue?
@michael.hunger Any idea on this, given that I run it regularly for a single lesson and it still shuts down after enough have been run?
05-24-2019 10:14 AM
For this dataset, I needed to set my Heap size to 6GB, then it worked. However I ended up running it on a server on AWS instead of my laptop.
05-30-2019 10:09 AM
Hi David,
Thanks for getting back to me. I just used 6GB but that did not change a lot. I'm currently experimenting on Azure. Did increasing the Heap size eventually improved the amount of annotation you were able to perform?
05-30-2019 11:57 AM
Yes, the increased Heap size allowed me to run the process. One of the things the people from GraphAware told me was to make sure my text was cleaned and ended with a period. Are you using the Stanford NLP in your pipeline?
07-09-2019 12:17 PM
What cleaning steps did they recommend, other than termination with a period? I am having the same issue. While monitoring the db I see two cycles of Heap usage peaks and then on the third peak it always crashes. I was monitoring with GraphLab’s Neo4j App.
BTW, what was your solution to the Websocket issue, we are seeing that error as well.
07-13-2019 06:50 AM
@dhughes1would you happen to be running on a mac? I have seen the same problem myself and a common theme appears to be the OS and the call to apoc.periodic.iterate possibly independent of the GraphAware plugin but I have not had the time to confirm that yet.
All the sessions of the conference are now available online