Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id BEB071337B47 for ; Mon, 25 Apr 2011 20:44:13 -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 94540-01 for ; Mon, 25 Apr 2011 23:44:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gx0-f174.google.com (mail-gx0-f174.google.com [209.85.161.174]) by mail.postgresql.org (Postfix) with ESMTP id 600771337A5D for ; Mon, 25 Apr 2011 20:44:04 -0300 (ADT) Received: by gxk21 with SMTP id 21so46379gxk.19 for ; Mon, 25 Apr 2011 16:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=i371MiHvTIq3Z/nS5SubnFYuFyaxMJz6GuHqLTokj+E=; b=t19fIo73Ij/hhR4m/Qi2aNMUf8o4ce9PTEiKmcVNNXIxcUKRL1645BL22fBNSlg9a1 FPUf/djpxqDCGGp8UpBnDNDBNgUWlyaEpffHNv0tYGQCmaNVk/ea4zCTd9tpvxBneMPq XGH3/Cp0t9VGQeMKtuQKlgVXLDf14o1pE0F7E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=dtZcS9ui5I1ksecvNal9TceF/zKU2sdUhJZAllTvIPoK+c0f37atW0He+UKHneqRrk irMEGuCI1aCDY229ZMmuHW/1eWG+BaE0GZXAMifqI8QOiprI5Ulv7vl9hYjRNcT5/PCv 3Y9LmDwtSL9sgMpzINnBvpsbsmiCrqoUNw8LI= MIME-Version: 1.0 Received: by 10.236.79.68 with SMTP id h44mr51834yhe.401.1303775045276; Mon, 25 Apr 2011 16:44:05 -0700 (PDT) Received: by 10.236.105.212 with HTTP; Mon, 25 Apr 2011 16:44:05 -0700 (PDT) In-Reply-To: References: Date: Mon, 25 Apr 2011 19:44:05 -0400 Message-ID: Subject: Re: %100 CPU on Windows Server 2003 From: Robert Haas To: Allen Sooredoo Cc: pgsql-performance@postgresql.org, Mehmet Demir Content-Type: multipart/alternative; boundary=20cf300fb06770d33004a1c6c8ed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.897 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201104/345 X-Sequence-Number: 43407 --20cf300fb06770d33004a1c6c8ed Content-Type: text/plain; charset=ISO-8859-1 On Wed, Apr 20, 2011 at 10:55 AM, Allen Sooredoo < Allen_Sooredoo@carrefour.com> wrote: > Hi, > 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? > Probably, but you'll need to provide more details. It is likely that you have some queries that need to be tuned, and possibly some settings that need to be changed. But without some information about what is using up all the CPU time, it's hard to speculate as to what the problem might be. http://wiki.postgresql.org/wiki/Guide_to_reporting_problems You might also want to read this article: http://www.linux.com/learn/tutorials/394523-configuring-postgresql-for-pretty-good-performance I've also found that log_min_duration_statement is pretty useful for figuring out where the CPU time is going - it helps you find your long-running queries. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --20cf300fb06770d33004a1c6c8ed Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Apr 20, 2011 at 10:55 AM, Allen Sooredoo <Allen_Sooredoo@carrefour.com> wrote:

--
Robert Haas
EnterpriseDB: http://www.enterprised= b.com
The Enterprise PostgreSQL Company
--20cf300fb06770d33004a1c6c8ed--