X-Original-To: pgsql-general@postgresql.org Received: from outbound0.sv.meer.net (outbound0.sv.meer.net [205.217.152.13]) by postgresql.org (Postfix) with ESMTP id 82550475461 for ; Mon, 17 Mar 2003 18:34:21 -0500 (EST) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by outbound0.sv.meer.net (8.12.6/8.12.6) with ESMTP id h2HNX4RP026909; Mon, 17 Mar 2003 15:33:04 -0800 (PST) (envelope-from trainor@uic.edu) Received: from uic.edu (12-249-70-16.client.attbi.com [12.249.70.16]) by mail.meer.net (8.12.2/8.12.1/meer) with ESMTP id h2HNX258024996; Mon, 17 Mar 2003 15:33:04 -0800 (PST) Message-ID: <3E765B2D.4030301@uic.edu> Date: Mon, 17 Mar 2003 17:33:01 -0600 From: Douglas Trainor User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kurt Overberg Cc: pgsql-general@postgresql.org Subject: Re: Tomcat/Struts/Pooling?/Memory Sizes References: <3E7649B7.4060405@hotdogrecords.com> In-Reply-To: <3E7649B7.4060405@hotdogrecords.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200303/832 X-Sequence-Number: 39324 You could lower your sort_mem value. 32168 means 32 meg per backend. douglas Kurt Overberg wrote: > Gang, > > Got a question about run-time postgresql memory usage. I'm moving > over to this RedHat box from a shared sun server, so I'm doing some > tweaking out of the system. I'm running pgsql 7.3 on a RedHat system > (fairly recent- not sure of the version) that has 1Gb of memory. > Using apache with tomcat 4.1.2/Struts/JDBC2 drivers. I have shared > memory on the system set to 268435456 (roughly 256Mb). Tomcat/Struts > (jdbc2) is configured to have 100 max connections (maxCount), minimum > of 10 (minCount). > > > The relevant parts of my postgresql config are: > > tcpip_socket = true > max_connections = 128 > shared_buffers = 30400 > sort_mem = 32168 > vacuum_mem = 32168 > > [...]