pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Reeves <Greg.Reeves@sportodds.com>
To: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: postgresql having trouble under load
Date: Fri, 17 Oct 2003 12:18:24 +1000
Message-ID: <18A6CE21402F9D438224021B77CDC1E9F9BE04@HPKEXG1> (raw)

Hi There,

I am new to postgresql and we are thinking of migrating from MS-SQL to
postgresql, but I am having trouble getting postgresql to keep up with the
load.

I am using it to serve about 10000 images/hour (16/sec), so I am making that
many connections to determine which image to serve each time.

It seems to build up a lot of connections and then dissallow non-super
users. My sysadmin has set the connection limit to above 1000.

I am using php 4.3 on red hat 8 and postgresql 7.3.

I explicitly use pg_close at the end of my PHP scripts, but it doesn't seem
to have much impact.

Is there anything I should be doing in a high load situation. I have just
set up postgresql with default settings.

Thanks in advance,
Greg

There are 10 kinds of people:
ones that get binary, and ones that don't. 



This e-mail message (and any attachments) may contain information that is
confidential to SportOdds Systems Pty Ltd and it's fully owned subsidiary,
SuperOdds UK Ltd. If you are not the intended recipient you cannot print,
retransmit, store, distribute or copy the message or attachments. In such a
case, please notify the sender by return e-mail immediately and erase all
copies of the message and attachments.You should only re-transmit or
distribute this email or attachments if you are authorised to do so.
Opinions, conclusions and other information in this message and  attachments
that do not relate to the official business of SportOdds (and/or SuperOdds)
are neither given nor endorsed by it. SportOdds (and/or SuperOdds) has
implemented anti-virus software, and whilst all care is taken, it is the
recipient's responsibility to ensure that any attachments are scanned  for
viruses prior to use.



view thread (3+ messages)  latest in thread

Message-ID: <18A6CE21402F9D438224021B77CDC1E9F9BE04@HPKEXG1>
Permalink:  ../18A6CE21402F9D438224021B77CDC1E9F9BE04@HPKEXG1/
Also on:    postgresql.org/message-id/18A6CE21402F9D438224021B77CDC1E9F9BE04@HPKEXG1

 · 

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-admin@postgresql.org
  Cc: Greg.Reeves@sportodds.com
  Subject: Re: postgresql having trouble under load
  In-Reply-To: <18A6CE21402F9D438224021B77CDC1E9F9BE04@HPKEXG1>
  References: <18A6CE21402F9D438224021B77CDC1E9F9BE04@HPKEXG1>

* 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