Query monitoring and termination

Query monitoring and termination can be done manually from the Workbench and automatically by configuring GraphDB to abort queries after a certain query timeout is reached.

Query monitoring and termination using the Workbench

When there are running queries, their number is shown up next to the Repositories dropdown menu.

To track and interrupt long running queries:

  1. Go to Monitoring ‣ Queries or click the Running queries status next to the Repositories dropdown menu.

  2. Press the Abort query button to stop a query.

To pause the current state of the running queries, use the Pause button. Note that this will not stop their execution on the server.


To interrupt long running queries, click the Abort query button.


The ID of the query


Local or remote node repository ID


The operation type QUERY or UPDATE


The first 500 characters of the query string


The time in seconds since the iterator was created


The internal state of the operation

You can also interrupt a query directly from the SPARQL Editor:


Automatically prevent long running queries

You can set a global query timeout period by adding a query-timeout configuration parameter. All queries will stop after the number of seconds you have set in it, where a default value of 0 indicates no limit.