pg_connect takes 3.0 seconds - Mailing list pgsql-performance

From Dmitri Girski
Subject pg_connect takes 3.0 seconds
Date
Msg-id daed64561001041812s602a3098l686f630d6448835f@mail.gmail.com
Whole thread Raw
Responses Re: pg_connect takes 3.0 seconds  (Greg Smith <greg@2ndquadrant.com>)
Re: pg_connect takes 3.0 seconds  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: pg_connect takes 3.0 seconds  (Andy Colson <andy@squeakycode.net>)
Re: pg_connect takes 3.0 seconds  (Scott Carey <scott@richrelevance.com>)
Re: pg_connect takes 3.0 seconds  (Dave Crooke <dcrooke@gmail.com>)
Re: pg_connect takes 3.0 seconds  (Dmitri Girski <mitek17@gmail.com>)
List pgsql-performance
Hi everybody,

I am running a PostgreSQL server 8.3.5 with a pretty much standard config.

The web application server which runs Apache 1.3/PHP2.9  has an intermittent problem:
pg_connect takes exactly 3.0 seconds. The usual connection time is 0.0045.
The long request happens at approximate rate 1:100.

I turned on logs on postgres server side, and there is nothing suspicious for me there. When a connection request comes, it is being served without any delay. 

Could anyone point me to the direction in which I should investigate this problem further?
Thank you in advance!


PS The hardware is: Dell SC1435/4Gb/2x2.0GHz/Gentoo Linux.
The database & web servers are in the 2 local subnets. 


Dmitri.

pgsql-performance by date:

Previous
From: Robert Haas
Date:
Subject: Re: forced sequential scan when condition has current_user
Next
From: Craig Ringer
Date:
Subject: Re: forced sequential scan when condition has current_user