Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 830042E0030 for ; Sat, 16 Feb 2008 23:14:57 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 67681-01 for ; Sat, 16 Feb 2008 23:14:52 -0400 (AST) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by postgresql.org (Postfix) with ESMTP id 066E32E0035 for ; Sat, 16 Feb 2008 23:14:52 -0400 (AST) Received: by an-out-0708.google.com with SMTP id c36so287786ana.33 for ; Sat, 16 Feb 2008 19:14:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=30wrfqubVH/QUIqjaf3z5bJWpRdRvsy9ZlHvfx9AX/M=; b=YwboafWyj4nKjajnxaK8l8tubH7OTePWv5+uYdKuxljZKJXKsRhRBVoUcVO8tcFxblyOwnn1xzQYoAEPZhY8tI8bLmE4uFvkyvbdfzDhBJT8q6af/vhZGCVKPLjI3yu/yxWjJFqZgLRhywTqZYV77QVSLOC9GpKPKBfg06TPU6k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=olmW2lkyrFjPI705FIKMv9EKkQIb8BEVwOoRlyqp+yYqAITnbUc1Y/GD4qhWH+ni480u80L6FDus3/HfZOofLSpGVnp0KbwDXC/RHFUBROhjMb4w4W2PGFNXcbrmULzz4xZe8xHOvNB5bjvzl0ynkF5Z1VH+mE0cUbNVjMXRMVw= Received: by 10.100.41.16 with SMTP id o16mr7769083ano.88.1203218091811; Sat, 16 Feb 2008 19:14:51 -0800 (PST) Received: by 10.100.197.19 with HTTP; Sat, 16 Feb 2008 19:14:51 -0800 (PST) Message-ID: Date: Sat, 16 Feb 2008 22:14:51 -0500 From: "Christian Bourque" To: "Dave Cramer" Subject: Re: jdbc and nfs Cc: "Tom Lane" , pgsql-jdbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <21927.1203185964@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/113 X-Sequence-Number: 18320 No it hasn't anything to do with the classpath I've used... I've investigated the problem a little bit further by profiling my simple jdbc test class and found out that most of the time is spent in this class: sun.security.pkcs11.wrapper.PKCS11.C_Initialize 98% of the time is spent in that function with 3694 calls (well it will last forever if I don't kill the process)! So I guess it's a problem with Sun/Solaris security mixed with nfs issue... Christian On Feb 16, 2008 4:09 PM, Dave Cramer wrote: > > On 16-Feb-08, at 2:45 PM, Christian Bourque wrote: > > > Hi Tom, > > > > I think you were right, there is something in the home directory that > > is conflicting! > > > > I don't understand why jdbc would use something in the user's home > > directory though... > > > > Anyway the workaround I found was to not map the share directly under > > the user's home account and now it works! > > > My guess is your classpath ? > > Dave > > Thanks for your help! > > > > Christian > > > > On Feb 16, 2008 1:19 PM, Tom Lane wrote: > >> "Christian Bourque" writes: > >>> The pg server is running on server B (openSUSE) and I'm connecting > >>> to > >>> it from server C (Solaris 10) using a user account with an nfs > >>> mounted > >>> directory from server A (openSUSE). > >> > >>> If I unmount the nfs share it works! But with the share it doesn't, > >>> the connection seems to reach the server but it gets stuck there, no > >>> error and it doesn't timeout either... > >> > >> It's way too hard to believe that NFS per se is interfering. > >> > >> What I could believe is that there is some configuration-type file in > >> your home directory that is causing a problem, and after the unmount > >> it's not visible so no problem. There are obvious possibilities for > >> this such as ~/.psqlrc if you're using psql/libpq, but I dunno enough > >> about the JDBC environment to guess whether it has equivalents. > >> > >> If all else fails, you could try strace'ing the application (or > >> whatever > >> Solaris' equivalent to strace is) in both cases and comparing > >> results. > >> That would at least make it clearer where it's hanging up ... > >> > >> regards, tom lane > >> > > > > ---------------------------(end of > > broadcast)--------------------------- > > TIP 5: don't forget to increase your free space map settings > >