How to kill a currently long running query in Neo4j

前端 未结 5 985
失恋的感觉
失恋的感觉 2021-02-06 22:31

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

相关标签:
5条回答
  • 2021-02-06 23:06

    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

    0 讨论(0)
  • 2021-02-06 23:06

    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).

    0 讨论(0)
  • 2021-02-06 23:08

    Available in version >3.1 Enterprise with

    CALL dbms.listQueries()
    CALL dbms.killQuery(queryId) 
    

    Admins may "kill'em all"

    There is also

     :queries
    
    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-02-06 23:12

    I found that in the shell pressing CTRL-C terminates the query (running V3.0.3)

    0 讨论(0)
提交回复
热议问题