I ran around 3k write queries in around 1 minutes, the CPU hits 100%. Here is the jstack log: jstack when CPU at 100%.
Can anyone tell me what is going on from the jstack logs,so that I can optimize my writes?
I am using Node.js Neo4J client(runs on m3.xlarge AWS instance) to write my changes.
Thank you.
Your trace looks ok, it is just a few threads busy reading things.
It could be garbage collection induced CPU spikes or something else that's not visible in the stacks.
Can you share the (type of) statements you run?
For your queries:
you might also want to add a generic :Node label if you are working with generic guids all the time