Re: Socket timeouts (probably) - Mailing list pgsql-jdbc

From Sergei Georgiev
Subject Re: Socket timeouts (probably)
Date
Msg-id b9e7d4a8050224020458cb6a3e@mail.gmail.com
Whole thread Raw
In response to Re: Socket timeouts (probably)  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: Socket timeouts (probably)
List pgsql-jdbc
> You may want to try tweaking /proc/sys/net/ipv4/tcp_keepalive_* on the
> server to make TCP keepalives notice the dead connection faster (these
> are global settings, though). There are corresponding setsockopt() calls
> you could make on a per-socket basis if you are prepared to tweak the
> server code.

I'd rather not, because as Markus said there may be other services
started on the DB machine in the future (it's just a prototype testing
for a new project). I found that there is a property called
"statement_timeout" in the postgresql.conf. This limits the time, in
which a statement must be executed. It looks like a solution to me,
but I need to test it.
10x anyway :)

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: [postgis-devel] JDBC & WKB - 400% overhead
Next
From: Markus Schaber
Date:
Subject: Re: [postgis-devel] JDBC & WKB - 400% overhead