You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "darkling (via GitHub)" <gi...@apache.org> on 2024/09/09 08:17:30 UTC

[I] API call to get a snapshot of running queries [jena]

darkling opened a new issue, #2701:
URL: https://github.com/apache/jena/issues/2701

   ### Version
   
   3.4.0
   
   ### Feature
   
   For debugging performance issues, it would be useful to be able to get a snapshot of the queries currently being processed, via an API call. It's possible to see all the queries that have been processed, by using logging, but sometimes you just want to get an instantaneous view, which is harder with the logging method.
   
   If the API could return a list of the queries being processed, with: query text, current run time, and any out-of-band parameters (e.g. things passed as URL parameters), then I think that would be ideal. We've found a similar feature useful in GraphDB.
   
   ### Are you interested in contributing a solution yourself?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] API call to get a snapshot of running queries [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2701:
URL: https://github.com/apache/jena/issues/2701#issuecomment-4206776864

   > 3.4.0
   
   That is very old. 2017-07-17. See the security advisories page: https://jena.apache.org/security/advisories.html
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] API call to get a snapshot of running queries [jena]

Posted by "Aklakan (via GitHub)" <gi...@apache.org>.
Aklakan commented on issue #2701:
URL: https://github.com/apache/jena/issues/2701#issuecomment-4205711067

   For the time being, I have factored out the execution tracking as a separate maven dep and a stand-alone Fuseki drop-in plugin jar.
   
   https://github.com/Scaseco/jena-exectracker
   
   > ## ⚠️ Limitations
   > The tracker will be notified of all query and update execution requests, however there are limitations on the information that can be extracted:
   > * Any query will appear in its SELECT form. This is because QueryEngineRegistry operates on a lower level than CONSTRUCT, DESCRIBE and ASK.
   > * Update requests only appear as generic # Update Request. This is because the UpdateEngineRegistry only receives notification of update requests, but not the SPARQL statement.
   
   https://github.com/Scaseco/jena-exectracker/issues/1 - for the first limitation, it should be possible to just rely on `ARQConstants.sysCurrentQuery`
   for the second, perhaps all that's needed is an analogous `ARQConstants.sysCurrentUpdate`. 
   
   If it's ok, I would close the PR proposals #3184 #3511 #3818. 
   It seems better to go back to the drawing board - i.e. issue page rather than PR on how to best proceed.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] API call to get a snapshot of running queries [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2701:
URL: https://github.com/apache/jena/issues/2701#issuecomment-4214692226

   > If it's ok, I would close the PR proposals https://github.com/apache/jena/pull/3184 https://github.com/apache/jena/pull/3511 https://github.com/apache/jena/pull/3818.
   
   Yes, please.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org