X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2BA598B9B19 for ; Wed, 23 Feb 2005 15:54:14 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 42054-01 for ; Wed, 23 Feb 2005 15:54:07 +0000 (GMT) Received: from mail.logi-track.com (burro.logi-track.com [213.239.193.212]) by svr1.postgresql.org (Postfix) with ESMTP id 0EA568B9CF8 for ; Wed, 23 Feb 2005 15:54:10 +0000 (GMT) Received: from kingfisher.intern.logi-track.com (J064b.j.pppool.de [85.74.6.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logi-track.com (Postfix) with ESMTP id 0CFFF307FC; Wed, 23 Feb 2005 16:54:14 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logi-track.com (Postfix) with ESMTP id 6BE32AB286; Wed, 23 Feb 2005 16:54:08 +0100 (CET) Message-ID: <421CA71F.405@logi-track.com> Date: Wed, 23 Feb 2005 16:54:07 +0100 From: Markus Schaber User-Agent: Mozilla Thunderbird 1.0 (X11/20050116) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Sergei Georgiev Cc: pgsql-jdbc@postgresql.org Subject: Re: Socket timeouts (probably) References: In-Reply-To: X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig519F6264AE3FCD6BE9C40077" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.053 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200502/173 X-Sequence-Number: 12353 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig519F6264AE3FCD6BE9C40077 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, Sergej, Sergei Georgiev schrieb: > I have a really strange problem here. I've got two Fedora 2 machines - > one for the database and one for a Java application to be run. When a > transaction from the application is run against the database and the > network cable is unplugged (or the machine is shut down) the database > continues to hold the lock on the tables, which are used in the > transaction. The lock is released in about 10-12 minutes, which in my > case is not acceptable, because if another client starts a transaction > against these locked tables his UI ties his hands until the lock on > the tables is released and the transaction is complete. > I started a 'netstat -atp' on the database machine and it turned out > that the connection with the unplugged machine is still active (5 > connections actually, because of the connection pooling). So I assumed > that the sockets are just hanging there until they timeout and then > the locks are released. Maybe you can set the TCP connection keepalive probing on the server to about 30 seconds or so via /proc/sys/net. But this is only advisable if your server does not serve any other purposes. Markus --=20 markus schaber | dipl. informatiker logi-track ag | rennweg 14-16 | ch 8001 z=FCrich phone +41-43-888 62 52 | fax +41-43-888 62 53 mailto:schabios@logi-track.com | www.logi-track.com --------------enig519F6264AE3FCD6BE9C40077 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCHKcfOVWsnapT9i0RAzSEAKCvReRqgfGcoh8X442W4Fr1JY3SSQCgm3qW QC5GrEXM1eGwSS2cH0U+my0= =FzgI -----END PGP SIGNATURE----- --------------enig519F6264AE3FCD6BE9C40077--