Re: Slow connection to the database

From: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
To: Poul Møller Hansen <freebsd(at)pbnet(dot)dk>
Cc: Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Slow connection to the database
Date: 2005-09-26 08:15:38
Message-ID: 1127722538.18786.10.camel@coppola.muc.ecircle.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

This is a known issue with Java 1.5 networking code, it tries to reverse
look up the IP addresses in certain circumstances (which obviously occur
in the JDBC driver) if you use IPs in your connection addresses.

You're best off to make sure DNS is set up locally on your client
machines for all the known servers you connect to. That would be in your
/etc/hosts on linux, on other OSes I don't know.
This will make sure you have no timeouts whether you use IPs or host
names names, but you have to maintain it.

Cheers,
Csaba.

On Sun, 2005-09-25 at 12:32, Poul Møller Hansen wrote:
> > How do you know the delay isn't in the client's lookup of the server?
> >
>
> You are absolutely right!
> I am using the ip address to connect to, so I thougt that was it.
> But the client is doing netbios queries .... seen with ethereal.
>
> Thanks to both of you.
>
>
> Poul
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2005-09-26 09:04:39 Re: regarding select into
Previous Message surabhi.ahuja 2005-09-26 07:36:51 regarding select into