You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Jonathan Berant <jo...@stanford.edu> on 2013/04/02 18:31:56 UTC

Fuseki: global timeout does not work for me.

Hi all,
I am using Fuseki as a SPARQL server for Freebase. I would like the server
to timeout if a query takes more than, say, 20 sec. I saw that there is a
timeout parameter that allows to set that but it does not seem to work for
me - it times out after a much longer time or not at all. The queries are
automatically generated so they can be quite weird so it is important that
they time out at some point.

I used jena-fuseki-0.2.5-distribution.zip and I run the server with:

./fuseki-server --port 3001 --timeout=10000,10000 --loc <PATH> /freebase

As an example you can see a timeout occurring after 5 minutes (but
sometimes it doesn't time out after hours):
------
22:05:39 INFO  Fuseki               :: [42] GET
http://jacko.stanford.edu:3021/freebase/query?query=PREFIX+fb%3A+%3Chttp%3A%2F%2Frdf.freebase.com%2Fns%2F%3E+SELECT+%3Fx8+%3Fx8name+%7B+fb%3Aen.robin_williams_1953+fb%3Apeople.person.nationality+%3Fx1.+%3Fx2+fb%3Afilm.film_cut.film_release_region+%3Fx1.+%3Fx3+fb%3Afilm.film.runtime+%3Fx2.+%3Fx3+fb%3Afilm.film.country+%3Fx4.+%3Fx4+fb%3Alocation.location.contains+%3Fx5.+%3Fx5+fb%3Alocation.mailing_address.citytown+%3Fx6.+%3Fx7+fb%3Alocation.location.contains+%3Fx6.+%3Fx8+fb%3Alocation.location.containedby+%3Fx7.+%3Fx8+fb%3Atype.object.name+%3Fx8name.+FILTER+%28LANG%28%3Fx8name%29+%3D+%22en%22%29.+%7D+LIMIT+10
22:05:39 INFO  Fuseki               :: [42] Query = PREFIX fb: <
http://rdf.freebase.com/ns/> SELECT ?x8 ?x8name { fb:en.robin_williams_1953
fb:people.person.nationality ?x1. ?x2 fb:film.film_cut.film_release_region
?x1. ?x3 fb:film.film.runtime ?x2. ?x3 fb:film.film.country ?x4. ?x4
fb:location.location.contains ?x5. ?x5 fb:location.mailing_address.citytown
?x6. ?x7 fb:location.location.contains ?x6. ?x8
fb:location.location.containedby ?x7. ?x8 fb:type.object.name ?x8name.
FILTER (LANG(?x8name) = "en"). } LIMIT 10
22:10:50 INFO  Fuseki               :: [42] 408 The query timed out
(restricted to 10000,10000 ms)
-------

If you could help me fix this that would be really great...
Thanks you!

Re: Fuseki: global timeout does not work for me.

Posted by Jonathan Berant <jo...@stanford.edu>.
Thank you!
I downloaded fuseki 0.2.7 and so far it seems to work...
I will keep my fingers crossed...


On Tue, Apr 2, 2013 at 12:09 PM, Andy Seaborne <an...@apache.org> wrote:

> https://issues.apache.org/**jira/browse/JENA-289<https://issues.apache.org/jira/browse/JENA-289>
>
> already fixed and in released Fuseki 0.2.6
>
>         Andy
>
>
> On 02/04/13 17:50, Rob Vesse wrote:
>
>> Hi Jonathan
>>
>> This is an artifact of how timeouts are implemented, timeouts are checked
>> for at certain points in the query execution flow so it is always possible
>> for the system to get stuck in some hard part of the query.
>>
>> This means it doesn't time out until such time as it exits that part of
>> the query and hits the next timeout check
>>
>> If you have suggestions on how we might implement timeouts in a more
>> reliable way they would be most welcome
>>
>> Rob
>>
>>
>>
>> On 4/2/13 9:31 AM, "Jonathan Berant" <jo...@stanford.edu> wrote:
>>
>>  Hi all,
>>> I am using Fuseki as a SPARQL server for Freebase. I would like the
>>> server
>>> to timeout if a query takes more than, say, 20 sec. I saw that there is a
>>> timeout parameter that allows to set that but it does not seem to work
>>> for
>>> me - it times out after a much longer time or not at all. The queries are
>>> automatically generated so they can be quite weird so it is important
>>> that
>>> they time out at some point.
>>>
>>> I used jena-fuseki-0.2.5-**distribution.zip and I run the server with:
>>>
>>> ./fuseki-server --port 3001 --timeout=10000,10000 --loc <PATH> /freebase
>>>
>>> As an example you can see a timeout occurring after 5 minutes (but
>>> sometimes it doesn't time out after hours):
>>> ------
>>> 22:05:39 INFO  Fuseki               :: [42] GET
>>> http://jacko.stanford.edu:**3021/freebase/query?query=**
>>> PREFIX+fb%3A+%3Chttp%3
>>> A%2F%2Frdf.freebase.com%2Fns%**2F%3E+SELECT+%3Fx8+%3Fx8name+%**
>>> 7B+fb%3Aen.robi
>>> n_williams_1953+fb%3Apeople.**person.nationality+%3Fx1.+%**
>>> 3Fx2+fb%3Afilm.film
>>> _cut.film_release_region+%**3Fx1.+%3Fx3+fb%3Afilm.film.**
>>> runtime+%3Fx2.+%3Fx3+
>>> fb%3Afilm.film.country+%3Fx4.+**%3Fx4+fb%3Alocation.location.**
>>> contains+%3Fx5.
>>> +%3Fx5+fb%3Alocation.mailing_**address.citytown+%3Fx6.+%3Fx7+**
>>> fb%3Alocation.l
>>> ocation.contains+%3Fx6.+%3Fx8+**fb%3Alocation.location.**
>>> containedby+%3Fx7.+%3
>>> Fx8+fb%3Atype.object.name+%**3Fx8name.+FILTER+%28LANG%28%**
>>> 3Fx8name%29+%3D+%22
>>> en%22%29.+%7D+LIMIT+10
>>> 22:05:39 INFO  Fuseki               :: [42] Query = PREFIX fb: <
>>> http://rdf.freebase.com/ns/> SELECT ?x8 ?x8name {
>>> fb:en.robin_williams_1953
>>> fb:people.person.nationality ?x1. ?x2 fb:film.film_cut.film_release_**
>>> region
>>> ?x1. ?x3 fb:film.film.runtime ?x2. ?x3 fb:film.film.country ?x4. ?x4
>>> fb:location.location.contains ?x5. ?x5
>>> fb:location.mailing_address.**citytown
>>> ?x6. ?x7 fb:location.location.contains ?x6. ?x8
>>> fb:location.location.**containedby ?x7. ?x8 fb:type.object.name ?x8name.
>>> FILTER (LANG(?x8name) = "en"). } LIMIT 10
>>> 22:10:50 INFO  Fuseki               :: [42] 408 The query timed out
>>> (restricted to 10000,10000 ms)
>>> -------
>>>
>>> If you could help me fix this that would be really great...
>>> Thanks you!
>>>
>>
>>
>

Re: Fuseki: global timeout does not work for me.

Posted by Andy Seaborne <an...@apache.org>.
https://issues.apache.org/jira/browse/JENA-289

already fixed and in released Fuseki 0.2.6

	Andy

On 02/04/13 17:50, Rob Vesse wrote:
> Hi Jonathan
>
> This is an artifact of how timeouts are implemented, timeouts are checked
> for at certain points in the query execution flow so it is always possible
> for the system to get stuck in some hard part of the query.
>
> This means it doesn't time out until such time as it exits that part of
> the query and hits the next timeout check
>
> If you have suggestions on how we might implement timeouts in a more
> reliable way they would be most welcome
>
> Rob
>
>
>
> On 4/2/13 9:31 AM, "Jonathan Berant" <jo...@stanford.edu> wrote:
>
>> Hi all,
>> I am using Fuseki as a SPARQL server for Freebase. I would like the server
>> to timeout if a query takes more than, say, 20 sec. I saw that there is a
>> timeout parameter that allows to set that but it does not seem to work for
>> me - it times out after a much longer time or not at all. The queries are
>> automatically generated so they can be quite weird so it is important that
>> they time out at some point.
>>
>> I used jena-fuseki-0.2.5-distribution.zip and I run the server with:
>>
>> ./fuseki-server --port 3001 --timeout=10000,10000 --loc <PATH> /freebase
>>
>> As an example you can see a timeout occurring after 5 minutes (but
>> sometimes it doesn't time out after hours):
>> ------
>> 22:05:39 INFO  Fuseki               :: [42] GET
>> http://jacko.stanford.edu:3021/freebase/query?query=PREFIX+fb%3A+%3Chttp%3
>> A%2F%2Frdf.freebase.com%2Fns%2F%3E+SELECT+%3Fx8+%3Fx8name+%7B+fb%3Aen.robi
>> n_williams_1953+fb%3Apeople.person.nationality+%3Fx1.+%3Fx2+fb%3Afilm.film
>> _cut.film_release_region+%3Fx1.+%3Fx3+fb%3Afilm.film.runtime+%3Fx2.+%3Fx3+
>> fb%3Afilm.film.country+%3Fx4.+%3Fx4+fb%3Alocation.location.contains+%3Fx5.
>> +%3Fx5+fb%3Alocation.mailing_address.citytown+%3Fx6.+%3Fx7+fb%3Alocation.l
>> ocation.contains+%3Fx6.+%3Fx8+fb%3Alocation.location.containedby+%3Fx7.+%3
>> Fx8+fb%3Atype.object.name+%3Fx8name.+FILTER+%28LANG%28%3Fx8name%29+%3D+%22
>> en%22%29.+%7D+LIMIT+10
>> 22:05:39 INFO  Fuseki               :: [42] Query = PREFIX fb: <
>> http://rdf.freebase.com/ns/> SELECT ?x8 ?x8name {
>> fb:en.robin_williams_1953
>> fb:people.person.nationality ?x1. ?x2 fb:film.film_cut.film_release_region
>> ?x1. ?x3 fb:film.film.runtime ?x2. ?x3 fb:film.film.country ?x4. ?x4
>> fb:location.location.contains ?x5. ?x5
>> fb:location.mailing_address.citytown
>> ?x6. ?x7 fb:location.location.contains ?x6. ?x8
>> fb:location.location.containedby ?x7. ?x8 fb:type.object.name ?x8name.
>> FILTER (LANG(?x8name) = "en"). } LIMIT 10
>> 22:10:50 INFO  Fuseki               :: [42] 408 The query timed out
>> (restricted to 10000,10000 ms)
>> -------
>>
>> If you could help me fix this that would be really great...
>> Thanks you!
>


Re: Fuseki: global timeout does not work for me.

Posted by Rob Vesse <rv...@yarcdata.com>.
Hi Jonathan

This is an artifact of how timeouts are implemented, timeouts are checked
for at certain points in the query execution flow so it is always possible
for the system to get stuck in some hard part of the query.

This means it doesn't time out until such time as it exits that part of
the query and hits the next timeout check

If you have suggestions on how we might implement timeouts in a more
reliable way they would be most welcome

Rob



On 4/2/13 9:31 AM, "Jonathan Berant" <jo...@stanford.edu> wrote:

>Hi all,
>I am using Fuseki as a SPARQL server for Freebase. I would like the server
>to timeout if a query takes more than, say, 20 sec. I saw that there is a
>timeout parameter that allows to set that but it does not seem to work for
>me - it times out after a much longer time or not at all. The queries are
>automatically generated so they can be quite weird so it is important that
>they time out at some point.
>
>I used jena-fuseki-0.2.5-distribution.zip and I run the server with:
>
>./fuseki-server --port 3001 --timeout=10000,10000 --loc <PATH> /freebase
>
>As an example you can see a timeout occurring after 5 minutes (but
>sometimes it doesn't time out after hours):
>------
>22:05:39 INFO  Fuseki               :: [42] GET
>http://jacko.stanford.edu:3021/freebase/query?query=PREFIX+fb%3A+%3Chttp%3
>A%2F%2Frdf.freebase.com%2Fns%2F%3E+SELECT+%3Fx8+%3Fx8name+%7B+fb%3Aen.robi
>n_williams_1953+fb%3Apeople.person.nationality+%3Fx1.+%3Fx2+fb%3Afilm.film
>_cut.film_release_region+%3Fx1.+%3Fx3+fb%3Afilm.film.runtime+%3Fx2.+%3Fx3+
>fb%3Afilm.film.country+%3Fx4.+%3Fx4+fb%3Alocation.location.contains+%3Fx5.
>+%3Fx5+fb%3Alocation.mailing_address.citytown+%3Fx6.+%3Fx7+fb%3Alocation.l
>ocation.contains+%3Fx6.+%3Fx8+fb%3Alocation.location.containedby+%3Fx7.+%3
>Fx8+fb%3Atype.object.name+%3Fx8name.+FILTER+%28LANG%28%3Fx8name%29+%3D+%22
>en%22%29.+%7D+LIMIT+10
>22:05:39 INFO  Fuseki               :: [42] Query = PREFIX fb: <
>http://rdf.freebase.com/ns/> SELECT ?x8 ?x8name {
>fb:en.robin_williams_1953
>fb:people.person.nationality ?x1. ?x2 fb:film.film_cut.film_release_region
>?x1. ?x3 fb:film.film.runtime ?x2. ?x3 fb:film.film.country ?x4. ?x4
>fb:location.location.contains ?x5. ?x5
>fb:location.mailing_address.citytown
>?x6. ?x7 fb:location.location.contains ?x6. ?x8
>fb:location.location.containedby ?x7. ?x8 fb:type.object.name ?x8name.
>FILTER (LANG(?x8name) = "en"). } LIMIT 10
>22:10:50 INFO  Fuseki               :: [42] 408 The query timed out
>(restricted to 10000,10000 ms)
>-------
>
>If you could help me fix this that would be really great...
>Thanks you!