From: Robert Haas <robertmhaas@gmail.com>
To: Allen Sooredoo <Allen_Sooredoo@carrefour.com>
Cc: pgsql-performance@postgresql.org, Mehmet Demir <Mehmet_Demir@carrefour.com>
Subject: Re: %100 CPU on Windows Server 2003
Date: Mon, 25 Apr 2011 19:44:05 -0400
Message-ID: <BANLkTik2z8XZoS74WBDa2pNPZh31yJFetQ@mail.gmail.com> (raw)
In-Reply-To: <OFBB8FF211.9EE9DAC0-ONC2257878.0051E582-C2257878.0051FA76@carrefour.com>
References: <OFBB8FF211.9EE9DAC0-ONC2257878.0051E582-C2257878.0051FA76@carrefour.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: robertmhaas@gmail.com, Allen_Sooredoo@carrefour.com, Mehmet_Demir@carrefour.com
Subject: Re: %100 CPU on Windows Server 2003
In-Reply-To: <BANLkTik2z8XZoS74WBDa2pNPZh31yJFetQ@mail.gmail.com>
References: <OFBB8FF211.9EE9DAC0-ONC2257878.0051E582-C2257878.0051FA76@carrefour.com> <BANLkTik2z8XZoS74WBDa2pNPZh31yJFetQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox