Skip site navigation (1) Skip section navigation (2)

Re: PosgreSQL hogging resources?

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Jeremy Smith <jer(at)highboard(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: PosgreSQL hogging resources?
Date: 2004-02-20 18:43:23
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
On Fri, 20 Feb 2004, Jeremy Smith wrote:

> I have newly installed PostgreSQL onto my server, the server's main function
> is to serve up a fantasy football site that has a tremendous number of
> queries per page.  Right now with very low traffic I am seeing a server load
> of 2.0+.  That got me a little concerned, so I looked at "top" and noticed
> that postgres is taking anywhere from 60 - 100 percent of my CPU at any
> given time.  There are also 116 sleeping processes out of 123.  This all
> seems very bad, do you guys have any idea what might be causing it or how it
> can be addressed?  How do I go about cleaning out the sleeping processes?

Don't worry about sleeping processes, you should have a good hundred 
sleeping on any unix box.  My workstation has 152, my server has 173, and 
the response time on both is way sub second.

Now, about postgresql, what is it doing when it's chewing up 100% cpu? 

In response to

pgsql-admin by date

Next:From: Lamar OwenDate: 2004-02-20 18:48:29
Subject: Re: PosgreSQL hogging resources?
Previous:From: Jeremy SmithDate: 2004-02-20 18:39:36
Subject: PosgreSQL hogging resources?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group