pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dmitri Girski <mitek17@gmail.com>
To: Andy Colson <andy@squeakycode.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: pg_connect takes 3.0 seconds
Date: Wed, 6 Jan 2010 14:29:28 +1100
Message-ID: <daed64561001051929k1ea5012bib2aa9159787d7f75@mail.gmail.com> (raw)
In-Reply-To: <4B4354B0.8030400@squeakycode.net>
References: <daed64561001041812s602a3098l686f630d6448835f@mail.gmail.com>
	<4B4354B0.8030400@squeakycode.net>

Thank you for reply , Andy!

I tried both cases: server name which is listed in hosts file and ip address
( 192.168.2.2) - no difference so far.

Cheers,
Dmitri.

On Wed, Jan 6, 2010 at 2:03 AM, Andy Colson <andy@squeakycode.net> wrote:

> On 1/4/2010 8:12 PM, Dmitri Girski wrote:
>
>> 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.
>>
>>
> How do you have the connect string?  With an IP or a name?  Maybe its a DNS
> lookup timeout?  You could switch to IP or drop the name in the hosts file
> and see if that makes a difference.
>
> -Andy
>



-- 
@Gmail

view thread (21+ messages)  latest in thread

Message-ID: <daed64561001051929k1ea5012bib2aa9159787d7f75@mail.gmail.com>
Permalink:  ../daed64561001051929k1ea5012bib2aa9159787d7f75@mail.gmail.com/
Also on:    postgresql.org/message-id/daed64561001051929k1ea5012bib2aa9159787d7f75@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: mitek17@gmail.com, andy@squeakycode.net
  Subject: Re: pg_connect takes 3.0 seconds
  In-Reply-To: <daed64561001051929k1ea5012bib2aa9159787d7f75@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox