Re: JENA-1620 and Query timeout overrides

2019-09-02 Thread Andy Seaborne
n, There is work-in-progress to improve configuration : JENA-1731. This includes setting context on endpoint and dataset as well as server.     Andy On 05/08/2019 13:57, Brian McBride wrote: I have just had a problem with query timeout overrides when upgrading to Fuseki 3.12.0.  I think the issu

Re: JENA-1620 and Query timeout overrides

2019-09-01 Thread Brian McBride
I've just spotted something in the documentation that means this discussion is going to get a little more complicated. I will therefore start a separate thread. Brian On 31/08/2019 22:40, Chris Tomlinson wrote: Hi Brian, The Lucene version changed in 3.10.0 to 7.4 from 6.4 in 3.9.0 (and ear

Re: JENA-1620 and Query timeout overrides

2019-09-01 Thread Brian McBride
: JENA-1731. This includes setting context on endpoint and dataset as well as server.     Andy On 05/08/2019 13:57, Brian McBride wrote: I have just had a problem with query timeout overrides when upgrading to Fuseki 3.12.0.  I think the issue is related to JENA-1620 [1] which was deployed with

Re: JENA-1620 and Query timeout overrides

2019-09-01 Thread Brian McBride
Hi Chris, Thank you for responding. On 31/08/2019 22:40, Chris Tomlinson wrote: Hi Brian, The Lucene version changed in 3.10.0 to 7.4 from 6.4 in 3.9.0 (and earlier). I don’t think this has anything to do with the problem though. I’m surprised that the query you indicate works in 3.9.0. It l

Re: JENA-1620 and Query timeout overrides

2019-08-31 Thread Chris Tomlinson
Hi Brian, The Lucene version changed in 3.10.0 to 7.4 from 6.4 in 3.9.0 (and earlier). I don’t think this has anything to do with the problem though. I’m surprised that the query you indicate works in 3.9.0. It looks like what’s intended is a phrase query but it needs to be surrounded by double

Re: JENA-1620 and Query timeout overrides

2019-08-31 Thread Andy Seaborne
it out when you get to that point. Brian On 05/08/2019 17:56, Andy Seaborne wrote: Hi Brian, There is work-in-progress to improve configuration : JENA-1731. This includes setting context on endpoint and dataset as well as server.     Andy On 05/08/2019 13:57, Brian McBride wrote: I have

Re: JENA-1620 and Query timeout overrides

2019-08-31 Thread Brian McBride
out when you get to that point. Brian On 05/08/2019 17:56, Andy Seaborne wrote: Hi Brian, There is work-in-progress to improve configuration : JENA-1731. This includes setting context on endpoint and dataset as well as server.     Andy On 05/08/2019 13:57, Brian McBride wrote: I have jus

Re: JENA-1620 and Query timeout overrides

2019-08-30 Thread Élie Roux
> > I see, thanks for the answer! There seem be some way to have a timeout > > in the Lucene API, but it doesn't look very straightforward... should > > I open a separate issue to track that? > > Yes Ok, I'll do that > Are you able to contribute for this additional feature? Perhaps in the future

Re: JENA-1620 and Query timeout overrides

2019-08-30 Thread Andy Seaborne
On 30/08/2019 11:57, Élie Roux wrote: Hi all, It is "graceful termination" - the query engine checks whether the timeout has gone off, not have something interrupt a thread. Looking at the code, the Lucene call is returning an array of ScoreDocs in one go so that is going to all happen. Th

Re: JENA-1620 and Query timeout overrides

2019-08-30 Thread Élie Roux
Hi all, > It is "graceful termination" - the query engine checks whether the > timeout has gone off, not have something interrupt a thread. > > Looking at the code, the Lucene call is returning an array of ScoreDocs > in one go so that is going to all happen. > > The rest of the query processing w

Re: JENA-1620 and Query timeout overrides

2019-08-29 Thread Andy Seaborne
On 29/08/2019 08:53, Élie Roux wrote: Dear All, We actually have a very similar plan: - an endpoint for general queries, with a shortish timeout - an endpoint for admin queries, with a much longer one, using the same dataset The first thing I wanted to know is if and how Fuseki can be asked

Re: JENA-1620 and Query timeout overrides

2019-08-29 Thread Andy Seaborne
i Brian, There is work-in-progress to improve configuration : JENA-1731. This includes setting context on endpoint and dataset as well as server.     Andy On 05/08/2019 13:57, Brian McBride wrote: I have just had a problem with query timeout overrides when upgrading to Fuseki 3.12.0.  I thin

Re: JENA-1620 and Query timeout overrides

2019-08-29 Thread Brian McBride
rian On 05/08/2019 17:56, Andy Seaborne wrote: Hi Brian, There is work-in-progress to improve configuration : JENA-1731. This includes setting context on endpoint and dataset as well as server.     Andy On 05/08/2019 13:57, Brian McBride wrote: I have just had a problem with query ti

Re: JENA-1620 and Query timeout overrides

2019-08-29 Thread Élie Roux
Dear All, We actually have a very similar plan: - an endpoint for general queries, with a shortish timeout - an endpoint for admin queries, with a much longer one, using the same dataset The first thing I wanted to know is if and how Fuseki can be asked to completely stop a query thread (the quer

Re: JENA-1620 and Query timeout overrides

2019-08-28 Thread Andy Seaborne
Brian On 05/08/2019 17:56, Andy Seaborne wrote: Hi Brian, There is work-in-progress to improve configuration : JENA-1731. This includes setting context on endpoint and dataset as well as server.     Andy On 05/08/2019 13:57, Brian McBride wrote: I have just had a problem with query ti

Re: JENA-1620 and Query timeout overrides

2019-08-06 Thread Brian McBride
erver.     Andy On 05/08/2019 13:57, Brian McBride wrote: I have just had a problem with query timeout overrides when upgrading to Fuseki 3.12.0.  I think the issue is related to JENA-1620 [1] which was deployed with Jena 3.10.0. Essentially, JENA-1620 modified the query timeout override function

Re: JENA-1620 and Query timeout overrides

2019-08-05 Thread Andy Seaborne
Hi Brian, There is work-in-progress to improve configuration : JENA-1731. This includes setting context on endpoint and dataset as well as server. Andy On 05/08/2019 13:57, Brian McBride wrote: I have just had a problem with query timeout overrides when upgrading to Fuseki 3.12.0.  I

JENA-1620 and Query timeout overrides

2019-08-05 Thread Brian McBride
I have just had a problem with query timeout overrides when upgrading to Fuseki 3.12.0.  I think the issue is related to JENA-1620 [1] which was deployed with Jena 3.10.0. Essentially, JENA-1620 modified the query timeout override functionality to constrain timeout overrides so that they must

Re: Query timeout

2019-07-29 Thread Mikael Pesonen
. @prefix ja:<http://jena.hpl.hp.com/2005/11/Assembler#> . @prefix text:<http://jena.apache.org/text#> . @prefix skos:<http://www.w3.org/2004/02/skos/core#> @prefix fuseki:<http://jena.apache.org/fuseki#> . On 10/06/2019 14:46, Marco Neumann wrote: did you set the ja: na

Re: Query timeout

2019-06-11 Thread Mikael Pesonen
a.hpl.hp.com/2008/tdb#> . @prefix ja:<http://jena.hpl.hp.com/2005/11/Assembler#> . @prefix text:<http://jena.apache.org/text#> . @prefix skos:<http://www.w3.org/2004/02/skos/core#> @prefix fuseki:<http://jena.apache.org/fuseki#> . On 10/06/2019 14:46, Marco Ne

Re: Query timeout

2019-06-10 Thread Marco Neumann
pload "upload" ; # Non-SPARQL > >> upload service > >> fuseki:serviceReadWriteGraphStore "data" ; # SPARQL Graph > >> store protocol (read and write) > >> fuseki:dataset :text_dataset ; > >>

Re: Query timeout

2019-06-10 Thread Mikael Pesonen
com/2005/11/Assembler#>  . @prefix text:<http://jena.apache.org/text#>  . @prefix skos:<http://www.w3.org/2004/02/skos/core#> @prefix fuseki:<http://jena.apache.org/fuseki#>  . On 10/06/2019 14:46, Marco Neumann wrote: did you set the ja: name space? On Mon, Jun 10, 2019 at 11

Re: Query timeout

2019-06-10 Thread Mikael Pesonen
3.org/1999/02/22-rdf-syntax-ns#>  . @prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#> . @prefix tdb:<http://jena.hpl.hp.com/2008/tdb#>  . @prefix ja:<http://jena.hpl.hp.com/2005/11/Assembler#>  . @prefix text:<http://jena.apache.org/text#>  . @prefix skos:<h

Re: Query timeout

2019-06-10 Thread Mikael Pesonen
le/#> . @prefix rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#> . @prefix tdb:<http://jena.hpl.hp.com/2008/tdb#> . @prefix ja:<http://jena.hpl.hp.com/2005/11/Assembler#> . @prefix text:<http://jena.apache.org/

Re: Query timeout

2019-06-10 Thread Marco Neumann
onfig: > >> > >> @prefix :<http://localhost/jena_example/#> . > >> @prefix rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> . > >> @prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#> . > >> @prefix tdb:<http://jena.hpl.hp.

Re: Query timeout

2019-06-10 Thread Andy Seaborne
9/02/22-rdf-syntax-ns#>  . @prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#>  . @prefix tdb:<http://jena.hpl.hp.com/2008/tdb#>  . @prefix ja:<http://jena.hpl.hp.com/2005/11/Assembler#>  . @prefix text:<http://jena.apache.org/text#>  . @prefix skos:<htt

Re: Query timeout

2019-06-10 Thread Mikael Pesonen
efix tdb:<http://jena.hpl.hp.com/2008/tdb#> . @prefix ja:<http://jena.hpl.hp.com/2005/11/Assembler#> . @prefix text:<http://jena.apache.org/text#> . @prefix skos:<http://www.w3.org/2004/02/skos/core#> @prefix fuseki:<http://jena.apache.org/fuseki#> . On 1

Re: Query timeout

2019-06-10 Thread Marco Neumann
> > @prefix fuseki:<http://jena.apache.org/fuseki#> . > > > On 10/06/2019 14:46, Marco Neumann wrote: > > did you set the ja: name space? > > > > On Mon, Jun 10, 2019 at 11:04 AM Mikael Pesonen < > mikael.peso...@lingsoft.fi> > > wrote: &

Re: Query timeout

2019-06-10 Thread Mikael Pesonen
at 11:04 AM Mikael Pesonen wrote: How do you set query timeout? I've tried on config.ttl [] rdf:type fuseki:Server ; ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "3000" ] ; and :my_dataset rdf:type tdb:DatasetTDB ; ja:context [ ja:

Re: Query timeout

2019-06-10 Thread Marco Neumann
did you set the ja: name space? On Mon, Jun 10, 2019 at 11:04 AM Mikael Pesonen wrote: > > How do you set query timeout? I've tried on config.ttl > > [] rdf:type fuseki:Server ; > ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "3000&qu

Query timeout

2019-06-10 Thread Mikael Pesonen
How do you set query timeout? I've tried on config.ttl [] rdf:type fuseki:Server ; ja:context [ ja:cxtName "arq:queryTimeout" ;  ja:cxtValue "3000" ] ; and :my_dataset rdf:type  tdb:DatasetTDB ;      ja:context [ ja:cxtName "arq:queryTimeout"

Re: How to set query timeout and threds kill implicity

2013-12-13 Thread Andy Seaborne
Rajiv, I have failed to reproduce this. I ran a Fuseki server and sent 1000's of ASK queries to it. No threads were created. I used quite simple ASK queries - maybe there is complexity in queryStr? The results of an ASK query are about 400 bytes on the wire, including HTTP header - that fi

Re: How to set query timeout and threds kill implicity

2013-12-12 Thread Andy Seaborne
t OS will still be ack'ing the TCP connection and may do so forever from a server-style app like from Tomcat. Setting the query time may reduce the general effect but it will not free up threads. A query timeout is a graceful abort of the query - the query gets a chance to clean up and th

Re: How to set query timeout and threds kill implicity

2013-12-12 Thread Chaudhuri, Rajiv
nnelConnector but it is possible to complete take control of >>> the >>> jetty configuration with --jetty-config. >>> >>> (SelectChannelConnector might have been better but it has been reported >>> to >>> be unstable on OS/X for Fuseki's

Re: How to set query timeout and threds kill implicity

2013-12-12 Thread Andy Seaborne
tyle app like from Tomcat. Setting the query time may reduce the general effect but it will not free up threads. A query timeout is a graceful abort of the query - the query gets a chance to clean up and that needs the query execution in the server getting called. Actually killing threads in

Re: How to set query timeout and threds kill implicity

2013-12-12 Thread Chaudhuri, Rajiv
om/blogs/securitylabs/2011/11/02/ > how-to-protect-against-slow-http-attacks > > The client OS will still be ack'ing the TCP connection and may do so > forever from a server-style app like from Tomcat. > > Setting the query time may reduce the general effect but it will not f

Re: How to set query timeout and threds kill implicity

2013-12-12 Thread Andy Seaborne
umption side, not the request sending. https://community.qualys.com/blogs/securitylabs/2011/11/02/how-to-protect-against-slow-http-attacks The client OS will still be ack'ing the TCP connection and may do so forever from a server-style app like from Tomcat. Setting the query time may reduce the genera

Re: How to set query timeout and threds kill implicity

2013-12-12 Thread Brian McBride
Hi Rajiv, You can find how to set query timeouts in the Fuseki documentation at [1] To set server wide timeout: [] rdf:type fuseki:Server ; #Server-wide context parameters can be given here. #For example, to set query timeouts: on a server-wide basis: #Format 1: "10

How to set query timeout and threds kill implicity

2013-12-11 Thread Chaudhuri, Rajiv
Hi, Our application which is running at Tomcat server is making query to Fuseki TDB store using HTTP protocol. We have observed that thread count for the Fuseki process is increasing with time. I know there might be code issue and resources should be closed properly. *But we would like to achie