pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hervé Piedvache <herve@elma.fr>
To: Alexey Borzov <borz_off@rdw.ru>
Cc: pgsql-php@postgresql.org
Subject: Re: pg_pconnect - Really persistent ?
Date: Wed, 13 Dec 2000 12:40:26 +0100
Message-ID: <3A37602A.59D5FC2F@elma.fr> (raw)
References: <3A2E22FC.2E1A2C01@elma.fr>
	<1119521331.20001206150101@rdw.ru>
	<3A34A260.BB0E1490@elma.fr>
	<98912605.20001213110607@rdw.ru>

Hi Alexey,

At first thanks for your answer ;)

Alexey Borzov a écrit :
> 
> HP> I do what you said ... but still have trouble with postgresql ... I have
> HP> a message like too many files opened in same time ... on the postgresql
> HP> server my max limit is 8192 files ... !! So to save my trouble for the
> HP> moment the only way I found is to cron a apache graceful each minute !
> HP> :(((
>     Increase the limit on open files: now each postgres can have
> 8192/256=32 open files max, and it needs to have much more...

OK is 32768 is ok ? 32768/256=128 max files by backend ...
I don't know (and would like to know if possible) what is the
implication of this file-max for my server ?
What is the maximimum size of the file max for a linux ? In fact that
depends of what ? ;)
 
> HP> #
> HP> StartServers 20
> HP> MinSpareServers 64
> HP> MaxSpareServers 128
> HP> #
>     Isn't MaxSpareServers a bit high? At each given time you can have
> 128 idle Apaches and each of these 2 idle Postgreses connected (256
> total), which is actually your limit. Ouch!

I understand what you mean ... but you can see my Apache log file of
today ...

[Wed Dec 13 12:16:14 2000] [info] server seems busy, (you may need to
increase StartServers, or Min/MaxSpareServers), spawning 8 children,
there are 0 idle, and 39 total children
[Wed Dec 13 12:16:15 2000] [info] server seems busy, (you may need to
increase StartServers, or Min/MaxSpareServers), spawning 16 children,
there are 0 idle, and 47 total children
[Wed Dec 13 12:16:16 2000] [info] server seems busy, (you may need to
increase StartServers, or Min/MaxSpareServers), spawning 32 children,
there are 12 idle, and 63 total children
[Wed Dec 13 12:16:17 2000] [info] server seems busy, (you may need to
increase StartServers, or Min/MaxSpareServers), spawning 32 children,
there are 45 idle, and 95 total children

What can I do ... and why I'm in this case ?

Many thanks per advance for your help !

regards,
-- 
Hervé



view thread (4+ messages)

Message-ID: <3A37602A.59D5FC2F@elma.fr>
Permalink:  ../3A37602A.59D5FC2F@elma.fr/
Also on:    postgresql.org/message-id/3A37602A.59D5FC2F@elma.fr

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: herve@elma.fr, borz_off@rdw.ru
  Subject: Re: pg_pconnect - Really persistent ?
  In-Reply-To: <3A37602A.59D5FC2F@elma.fr>
  References: <3A2E22FC.2E1A2C01@elma.fr> <1119521331.20001206150101@rdw.ru> <3A34A260.BB0E1490@elma.fr> <98912605.20001213110607@rdw.ru> <3A37602A.59D5FC2F@elma.fr>

* 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