Re: statistics collector process is thrashing my cpu

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: "William Temperley" <willtemperley(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: statistics collector process is thrashing my cpu
Date: 2008-05-08 17:14:34
Message-ID: 20080508191434.358b4b97@mha-laptop.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

William Temperley wrote:
> > >
> > > Any ideas why this might be happening, and how I can stop it?
> >
> > It'd be interesting to know what the stats collector is actually
> > doing. Could you, using Process Explorer or a debugger, get a stack
> > trace from that process while it's in the trashing state?
> >
> > //Magnus
> >
>
> Certainly, but I'll have to wait 'til it does it again, it doesn't
> happen all the time.
> What would you like to know from Process Explorer?

Get the backtrace from hung process. Find the process in the list, open
it. Go to the tab "Threads", find the thread that's using a lot of CPU
(or at least has a lot of ocntext switchs), and click the Stack button.
That should give you a window with a backtrace.

//Magnus

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dan Myers 2008-05-08 17:20:07 Re: Using a composite SQL type in C
Previous Message Toby Chavez 2008-05-08 17:11:26 Re: Using a composite SQL type in C