X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1B9E8D1B501 for ; Fri, 17 Oct 2003 02:16:03 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 24530-10 for ; Thu, 16 Oct 2003 23:15:35 -0300 (ADT) Received: from svr3.postgresql.org (gborg.postgresql.org [200.46.204.161]) by svr1.postgresql.org (Postfix) with ESMTP id 31A7DD1B4E6 for ; Thu, 16 Oct 2003 23:15:31 -0300 (ADT) Received: from hpkexg1.sportodds.com.au ([203.42.122.3]) by svr3.postgresql.org (8.12.9/8.12.6) with ESMTP id h9H2FShe086553 for ; Thu, 16 Oct 2003 22:15:30 -0400 (EDT) (envelope-from Greg.Reeves@sportodds.com) Received: by HPKEXG1 with Internet Mail Service (5.5.2653.19) id ; Fri, 17 Oct 2003 12:09:16 +1000 Message-ID: <18A6CE21402F9D438224021B77CDC1E9F9BE01@HPKEXG1> From: Greg Reeves To: "'pgsql-admin@postgresql.org'" Subject: Postgresql having trouble serving over 1000 connections Date: Fri, 17 Oct 2003 12:09:15 +1000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200310/208 X-Sequence-Number: 10769 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 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.