Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B54CF1337BEB for ; Wed, 20 Apr 2011 17:43:28 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 93274-05 for ; Wed, 20 Apr 2011 20:43:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id AB8031337BA8 for ; Wed, 20 Apr 2011 17:43:20 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 20 Apr 2011 15:43:18 -0500 Message-Id: <4DAEFF15020000250003CADF@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 20 Apr 2011 15:43:17 -0500 From: "Kevin Grittner" To: "Allen Sooredoo" , Subject: Re: BUG #5990: 100% CPU reached References: <201104201455.p3KEtG8T033307@wwwmaster.postgresql.org> In-Reply-To: <201104201455.p3KEtG8T033307@wwwmaster.postgresql.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.595 tagged_above=-5 required=5 tests=BAYES_00=-1.9, SARE_MILLIONSOF=0.315, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/162 X-Sequence-Number: 30081 "Allen Sooredoo" wrote: > we are facing a performance issue on Postgres 8.4, the CPU reaches > 100% with less than 50 simultaneous users. > > We were thinking to migrate the HR system from Oracle to Postgres > but now that we have those big performance problems on relatively > small applications, we are questioning this choice. > > The machine configuration, dedicated to Postgres is as follow: > RAM: 3GB > CPU: Intel Xeon CPU 3.2 Ghz > > Could you please provide us some support regarding this issue? Since many people are using PostgreSQL with large databases and many users, it's important to understand what it is about your particular situation which is causing it not to perform well. (Our shop, for example, has a 2 TB database with millions of hits per day.) Please read this and post to the pgsql-performance list: http://wiki.postgresql.org/wiki/SlowQueryQuestions You will probably get the most useful responses if you can first identify one or more of your slow queries and post the specifics of those, per the above web page. -Kevin