Re: Postgres using 100% CPU

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Nik" <XLPizza(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgres using 100% CPU
Date: 2006-02-15 20:30:15
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE6C802D@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> I have a fairly large (about 30Gb) PostgreSQL 8.1 database
> running on Windows 2003 Server.
> I noticed that CPU utilization on the server is 100% for past
> few days, and postgres process is taking up most of that CPU
> (95%-100%). There is only one connection to the database at
> the time and that one is not doing any queries.
>
> I turned off stats collector, and any row stat collectors,
> and I increased the number of check points since I have been
> getting the error about check point switches being to
> frequent. Postgres now uses a bit less CPU (60-90%), which is
> still a lot considering that no processing is being done. Is
> there anything else I can do to lower this CPU utilization?
> Is there a way I can pinpoint exactly what part of postgres
> is using this CPU?

Use a tool like Process Explorer (www.sysinternals.com). Open the
process that uses the CPU. There will be a handle to an object whose
name contains information about what the process is (stats process,
bgwriter, or backend. If backend, it'll also show what the backend is
doing, just like the ps output on Unix).

//Magnus

Browse pgsql-general by date

  From Date Subject
Next Message TJ O'Donnell 2006-02-15 20:34:39 Re: I see this as the end of BDB in MySQL without a doubt.
Previous Message Vivek Khera 2006-02-15 20:24:57 Re: Oracle purchases Sleepycat - is this the "other shoe" for MySQL AB?