Re: Jena hangs while reading HTTP stream

2021-07-16 Thread Andy Seaborne
-Original Message- From: James Anderson Sent: Saturday, July 10, 2021 10:51 PM To: users@jena.apache.org Subject: Re: Jena hangs while reading HTTP stream On 2021-07-10, at 22:02:43, Andy Seaborne wrote: Hi John, On 10/07/2021 17:03, John Walker wrote: We're using a 120s timeout for all

RE: Jena hangs while reading HTTP stream

2021-07-16 Thread John Walker
10:51 PM > To: users@jena.apache.org > Subject: Re: Jena hangs while reading HTTP stream > > > > On 2021-07-10, at 22:02:43, Andy Seaborne wrote: > > > > Hi John, > > > > > > > > On 10/07/2021 17:03, John Walker wrote: > >> We're using

Re: Jena hangs while reading HTTP stream

2021-07-10 Thread James Anderson
> On 2021-07-10, at 22:02:43, Andy Seaborne wrote: > > Hi John, > > > > On 10/07/2021 17:03, John Walker wrote: >> We're using a 120s timeout for all the requests, which should give plenty of >> time for the query requests to complete in regular circumstances. > > That's 120s at the

Re: Jena hangs while reading HTTP stream

2021-07-10 Thread Andy Seaborne
Hi John, On 10/07/2021 17:03, John Walker wrote: We're using a 120s timeout for all the requests, which should give plenty of time for the query requests to complete in regular circumstances. That's 120s at the server? What happens if that goes off? The response is closed? (a Q for james)

Re: Jena hangs while reading HTTP stream

2021-07-10 Thread James Anderson
good evening; > On 2021-07-10, at 18:03:59, John Walker wrote: > >> ... > > OK, I've not been able to figure out how the Jena parser reads the stream. > > As we use N-Triples, I was wondering if the N-Triples parser uses the > readLine method to read from the stream. > If there were some

RE: Jena hangs while reading HTTP stream

2021-07-10 Thread John Walker
circumstances. > -Original Message- > From: Andy Seaborne > Sent: Wednesday, July 7, 2021 1:12 AM > To: users@jena.apache.org > Subject: Re: Jena hangs while reading HTTP stream > > > > On 06/07/2021 12:40, John Walker wrote: > > Hi James > > &g

Re: Jena hangs while reading HTTP stream

2021-07-06 Thread Andy Seaborne
On 06/07/2021 12:40, John Walker wrote: Hi James -Original Message- From: James Anderson Sent: Tuesday, July 6, 2021 1:00 PM To: users@jena.apache.org Subject: Re: Jena hangs while reading HTTP stream a stack trace could be very helpful. There is no stack trace captured

RE: Jena hangs while reading HTTP stream

2021-07-06 Thread John Walker
Hi James > -Original Message- > From: James Anderson > Sent: Tuesday, July 6, 2021 1:00 PM > To: users@jena.apache.org > Subject: Re: Jena hangs while reading HTTP stream > > > > On 2021-07-06, at 12:46:47, John Walker > wrote: > > > &

Re: Jena hangs while reading HTTP stream

2021-07-06 Thread James Anderson
> On 2021-07-06, at 12:46:47, John Walker wrote: > > Hi Andy > >> -Original Message- >> From: Andy Seaborne >> Sent: Tuesday, July 6, 2021 12:04 PM >> To: users@jena.apache.org >> Subject: Re: Jena hangs while reading HTTP stream >>

RE: Jena hangs while reading HTTP stream

2021-07-06 Thread John Walker
Hi Andy > -Original Message- > From: Andy Seaborne > Sent: Tuesday, July 6, 2021 12:04 PM > To: users@jena.apache.org > Subject: Re: Jena hangs while reading HTTP stream > > > > On 06/07/2021 10:46, John Walker wrote: > > Hi Andy > > > >

Re: Jena hangs while reading HTTP stream

2021-07-06 Thread Andy Seaborne
On 06/07/2021 10:46, John Walker wrote: Hi Andy -Original Message- From: Andy Seaborne Sent: Tuesday, July 6, 2021 11:03 AM To: users@jena.apache.org Subject: Re: Jena hangs while reading HTTP stream On 06/07/2021 06:10, John Walker wrote: Hi Andy Rob's right - RDFParser does

RE: Jena hangs while reading HTTP stream

2021-07-06 Thread John Walker
Hi Andy > -Original Message- > From: Andy Seaborne > Sent: Tuesday, July 6, 2021 11:03 AM > To: users@jena.apache.org > Subject: Re: Jena hangs while reading HTTP stream > > > > On 06/07/2021 06:10, John Walker wrote: > > Hi Andy > > >

Re: Jena hangs while reading HTTP stream

2021-07-06 Thread Andy Seaborne
On 06/07/2021 06:10, John Walker wrote: Hi Andy Rob's right - RDFParser does not close a resource that is passed into the parser. If given a resource, the caller is responsible - try-with-resources or similar is expected. I was reading the javadocs and these state the InputStream will be

RE: Jena hangs while reading HTTP stream

2021-07-05 Thread John Walker
Hi Andy > Rob's right - RDFParser does not close a resource that is passed into the > parser. If given a resource, the caller is responsible - try-with-resources or > similar is expected. I was reading the javadocs and these state the InputStream will be closed when the parser is called

RE: Jena hangs while reading HTTP stream

2021-07-05 Thread John Walker
Hi Andy > -Original Message- > From: Andy Seaborne > Sent: Monday, July 5, 2021 7:39 PM > To: users@jena.apache.org > Subject: Re: Jena hangs while reading HTTP stream > > > On 05/07/2021 14:02, Martynas Jusevičius wrote: > > HTTPClient is not running o

Re: Jena hangs while reading HTTP stream

2021-07-05 Thread Andy Seaborne
On 05/07/2021 14:02, Martynas Jusevičius wrote: > HTTPClient is not running out of connections? It is known to hang in such cases. It is not reopening connections for one request. If parsing starts, it has the connection until the end. On 05/07/2021 14:10, Rob Vesse wrote: That's a really

Re: Jena hangs while reading HTTP stream

2021-07-05 Thread james anderson
good afternoon; is it possible that the client had no readable connection given the 3072/55397664 entry in the http proxy log? it should indicate that some sort of connection existed long enough for nginx to send over 55 million bytes. > On 2021-07-05, at 15:10:03, Rob Vesse wrote: > >

Re: Jena hangs while reading HTTP stream

2021-07-05 Thread Rob Vesse
That's a really good suggestion. In the normal code flow do you ever call stream.close() ? And is createHttpClient() re-using an existing HttpClient object ? And is the hang only happening after some requests have succeeded ? It is possible what is happening is that you aren't closing the

Re: Jena hangs while reading HTTP stream

2021-07-05 Thread Martynas Jusevičius
HTTPClient is not running out of connections? It is known to hang in such cases. On Mon, Jul 5, 2021 at 2:58 PM james anderson wrote: > > good afternoon; > > > On 2021-07-05, at 12:36:20, Andy Seaborne wrote: > > > > > > > > On 05/07/2021 10:01, Ivan Lagunov wrote: > >> Hello, > >> We’re facing

Re: Jena hangs while reading HTTP stream

2021-07-05 Thread james anderson
good afternoon; > On 2021-07-05, at 12:36:20, Andy Seaborne wrote: > > > > On 05/07/2021 10:01, Ivan Lagunov wrote: >> Hello, >> We’re facing an issue with Jena reading n-triples stream over HTTP. In fact, >> our application hangs entirely while executing this piece of code: >> Model sub =

Re: Jena hangs while reading HTTP stream

2021-07-05 Thread Andy Seaborne
On 05/07/2021 10:01, Ivan Lagunov wrote: Hello, We’re facing an issue with Jena reading n-triples stream over HTTP. In fact, our application hangs entirely while executing this piece of code: Model sub = ModelFactory.createDefaultModel(); TypedInputStream stream =

Re: Jena hangs while reading HTTP stream

2021-07-05 Thread james anderson
> On 2021-07-05, at 11:01:34, Ivan Lagunov wrote: > > Hello, > > We’re facing an issue with Jena reading n-triples stream over HTTP. In fact, > our application hangs entirely while executing this piece of code: > > ... > > The issue is not persistent, moreover it happens infrequently. When

Jena hangs while reading HTTP stream

2021-07-05 Thread Ivan Lagunov
Hello, We’re facing an issue with Jena reading n-triples stream over HTTP. In fact, our application hangs entirely while executing this piece of code: Model sub = ModelFactory.createDefaultModel(); TypedInputStream stream = HttpOp.execHttpGet(requestURL, WebContent.contentTypeNTriples,