Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 5D35DB5DBE2 for ; Mon, 1 Aug 2011 20:58:06 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 33667-02 for ; Mon, 1 Aug 2011 23:57:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [96.126.97.249]) by mail.postgresql.org (Postfix) with ESMTP id E2BC2B5DBCE for ; Mon, 1 Aug 2011 20:57:54 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id 4A8D047; Mon, 1 Aug 2011 19:57:54 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id S6BPh4dVBok4; Mon, 1 Aug 2011 19:57:53 -0400 (EDT) Received: from mail.postnewspapers.com.au (office1.postnewspapers.com.au [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id 169D410D; Mon, 1 Aug 2011 19:57:53 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 26BF8AE941; Tue, 2 Aug 2011 07:57:52 +0800 (WST) X-Amavis-Modified: Mail body modified (using disclaimer) - mail.postnewspapers.com.au X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id skePjq1tfJoE; Tue, 2 Aug 2011 07:57:46 +0800 (WST) Received: from [10.1.1.8] (124-169-181-228.dyn.iinet.net.au [124.169.181.228]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id A76D5AE93F; Tue, 2 Aug 2011 07:57:43 +0800 (WST) Message-ID: <4E373D76.9020800@postnewspapers.com.au> Date: Tue, 02 Aug 2011 07:57:42 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Jayadevan M CC: pgsql-performance@postgresql.org Subject: Re: Parameters for PostgreSQL References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.623 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.723 X-Spam-Level: X-Archive-Number: 201108/14 X-Sequence-Number: 44461 On 1/08/2011 8:09 PM, Jayadevan M wrote: > The machine configuration is > Opteron 2CPU * 4cores @ 2.3GHz > 16GB RAM > OS Solaris10 x64 The most important spec has been omitted. What's the storage subsystem? For most database workloads that's *WAY* more important than the CPUs. It certainly will be for yours, since your 100GB database won't fit into 16GB of RAM, so you'll be doing a lot of disk I/O. > Could you please let me know the parameters I should pay attention to? > Do the settings mentioned above look OK? There's nothing obviously dangerous like a giant work_mem setting. Like Oracle, it's very much a matter of tuning to your machine and workload. Parameters right for one workload will be less than ideal for another. If at all possible, do some load testing with a dev instance and tweak based on that. The most recent book on Pg performance is Greg Smith's "PostgreSQL High Performance" and it's had very positive comments on this list. It might be worth a look. > We are suing weblogic. ^^^^^ Best. Typo. Ever. I hear most people who use it want to, you're just brave enough to do it :-P > Should we let weblogic manage the connection pool > or try something else? In Glassfish 3.1 and JBoss 7 I let the app server manage the connection pool. Assuming Weblogic works as well - which I'd hope - you should be fine doing the same. PostgreSQL doesn't have any built-in pooling or admission control - each "connection" is also an executor backend and isn't especially cheap to have around, so you don't want hundreds and hundreds of them. If your app hangs on to connections from the pool for a long time, you might land up wanting to use an external thin pooler like pgpool-II. I wouldn't worry about anything like this unless you start getting max_connections exceeded exceptions via your pooler, though, as it shouldn't be an issue for most EE apps with a container-powered connection pool. -- Craig Ringer POST Newspapers 276 Onslow Rd, Shenton Park Ph: 08 9381 3088 Fax: 08 9388 2258 ABN: 50 008 917 717 http://www.postnewspapers.com.au/