Re: Slow connection to the database - Mailing list pgsql-general

From Douglas McNaught
Subject Re: Slow connection to the database
Date
Msg-id m2vf0q1tca.fsf@Douglas-McNaughts-Powerbook.local
Whole thread Raw
In response to Slow connection to the database  (Poul Møller Hansen <freebsd@pbnet.dk>)
Responses Re: Slow connection to the database
List pgsql-general
Poul Møller Hansen <freebsd@pbnet.dk> writes:

> I have a problem with slow connects to a database server.
>
> In a little Java application I am starting 100 threads, each one making
> a database connection. The program is running on my laptop.
>
> When connecting to one server (AMD Opteron 2GHz with Solaris &
> pgsql version 8.0.3) the 100 connections takes 455 seconds!

Is it possible that you've got DNS timeouts happening or something
like that?  Though I don't think PG does reverse DNS lookups,
especially not by default.

Watching the connection process with 'tcpdump' to see where the stall
happens might be informative.

-Doug

pgsql-general by date:

Previous
From: Martín Marqués
Date:
Subject: Problems creating view
Next
From: "Justin R. Smith"
Date:
Subject: Extraordinarily slow!!