Query monitoring and termination¶
What’s in this document?
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:
Go to or click the Running queries status next to the Repositories dropdown menu.
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.
You can also control whether a terminated query returns partial results or an error using the throw-QueryEvaluationException-on-timeout parameter. By default, this parameter is set to false.
If the parameter is set to
true, upon reaching a timeout, GraphDB will return an error and no results.If the parameter is set to
false, upon reaching a timeout, GraphDB will return partial results that were received before the timeout was reached. However, GraphDB will not indicate that the results are incomplete.