pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PostgreSQL and PHP for a web site, yes but ...
3+ messages / 3 participants
[nested] [flat]

* PostgreSQL and PHP for a web site, yes but ...
@ 2001-01-27 23:32  Richard Bayet <bayet@enseirb.fr>
  0 siblings, 1 reply; 3+ messages in thread

From: Richard Bayet @ 2001-01-27 23:32 UTC (permalink / raw)
  To: pgsql-admin

How do I set up (here, to extend it) the maximum number of clients for a
database ?
I start postmaster with 'postmaster -i -N 16' (I can't use more than 16
due to the IPC sys V blabla ...).
I know N is the number of backend server processes, but does it have a
result on the maximum number of clients ?
Here's the problem i have on the web site i'm currently developping:
Unable to connect to PostgreSQL server: "Sorry, too many clients already
in -file i'm using to open the connection-" (i only open the connectiion
if there isn't one already opened) ...
Here's the stuff from php.ini:
[PostgresSQL]
pgsql.allow_persistent = On ; allow or prevent persistent link
pgsql.max_persistent = -1 ; maximum number of persistent links. -1 means
no limit
pgsql.max_links   = -1 ; maximum number of links (persistent+non
persistent).  -1 means no limit

So, it looks like the problem isn't coming from PHP ...
I'm worrying a bit because PostgreSQL is supposed to be a good choice
for dynamic web sites, but eh ... will i be able to have more than a
handful of visitors at the same time ? :)






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: PostgreSQL and PHP for a web site, yes but ...
@ 2001-01-27 23:44  Peter Eisentraut <peter_e@gmx.net>
  parent: Richard Bayet <bayet@enseirb.fr>
  0 siblings, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2001-01-27 23:44 UTC (permalink / raw)
  To: Richard Bayet <bayet@enseirb.fr>; +Cc: pgsql-admin

Richard Bayet writes:

> How do I set up (here, to extend it) the maximum number of clients for a
> database ?

Use the -N option.

> I start postmaster with 'postmaster -i -N 16' (I can't use more than 16
> due to the IPC sys V blabla ...).

Time to do something about the IPC sys V blablah then.

> I know N is the number of backend server processes, but does it have a
> result on the maximum number of clients ?

One backend server process per client.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* RE: PostgreSQL and PHP for a web site, yes but ...
@ 2001-01-28 11:29  Michael Ansley <Michael.Ansley@intec-telecom-systems.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Ansley @ 2001-01-28 11:29 UTC (permalink / raw)
  To: 'Peter Eisentraut ' <peter_e@gmx.net>; 'Richard Bayet ' <bayet@enseirb.fr>; +Cc: pgsql-admin

All,

Shouldn't PHP and Apache between them be able to come up with some sort of
pooling mechanism (I thought there was one built into mod_php), to
facilitate the handling of this problem.  Of course, with only 16
connections, it's not going to be a high volume site, but it may temporarily
alleviate the problem until a longer term solution can be constructed.

Cheers...


MikeA

 

-----Original Message-----
From: Peter Eisentraut
To: Richard Bayet
Cc: pgsql-admin@postgresql.org
Sent: 1-27-01 11:44 PM
Subject: Re: [ADMIN] PostgreSQL and PHP for a web site, yes but ...

Richard Bayet writes:

> How do I set up (here, to extend it) the maximum number of clients for
a
> database ?

Use the -N option.

> I start postmaster with 'postmaster -i -N 16' (I can't use more than
16
> due to the IPC sys V blabla ...).

Time to do something about the IPC sys V blablah then.

> I know N is the number of backend server processes, but does it have a
> result on the maximum number of clients ?

One backend server process per client.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
Nick West - Global Infrastructure Manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-01-28 11:29 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-27 23:32 PostgreSQL and PHP for a web site, yes but ... Richard Bayet <bayet@enseirb.fr>
2001-01-27 23:44 ` Peter Eisentraut <peter_e@gmx.net>
2001-01-28 11:29 RE: PostgreSQL and PHP for a web site, yes but ... Michael Ansley <Michael.Ansley@intec-telecom-systems.com>

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