How can I kill a currently long-running query in Neo4j (without restarting the server)?
I know we can globally set a timeout for queries, but sometimes I want to execute
The 2.2 release has some functionality around this area, but still no monitoring tool that you could see, for example, the queries ran by other clients, you can only kill your own long running queries, executed through the web ui or the shell.
Neo4J 2.2 Release Notes
I think there is no way to abort queries in Neo4j.
There is a way to kill long running queries automatically with the Guard stuff (you can pick either max number of operations or a timeout). There were some instructions sent out (couldn't find it immediately and I need to run).
Available in version >3.1 Enterprise with
CALL dbms.listQueries()
CALL dbms.killQuery(queryId)
Admins may "kill'em all"
There is also
:queries
Currently there is no way to abort queries in Neo4j. At least I haven't found anything when I needed and I searched the docs quite a lot of times.
I found that in the shell pressing CTRL-C terminates the query (running V3.0.3)