Re: Major Performance decrease after some hours - Mailing list pgsql-general

From MaXX
Subject Re: Major Performance decrease after some hours
Date
Msg-id efo6s1$233r$1@talisker.lacave.net
Whole thread Raw
In response to Major Performance decrease after some hours  ("Peter Bauer" <peter.m.bauer@gmail.com>)
Responses Re: Major Performance decrease after some hours  ("Matthew T. O'Connor" <matthew@zeut.net>)
Re: Major Performance decrease after some hours  (Ray Stell <stellr@cns.vt.edu>)
List pgsql-general
Peter Bauer wrote:
[...]
> There are 10-15 postmaster processes running which use all the CPU power.
> A restart of tomcat and then postgresql results in the same situation.
> Some postgres processes are in DELETE waiting or SELECT waiting.
> VACUUM runs through in just about 1-2 seconds and is run via cron
> every minute and reports that the fsm setting are high enough.

Pure speculation: are you sure you aren't vacuuming too agressively?
The DELETE waiting and SELECT waiting sound to me like they are waiting
for a lock that another vacuum is holding. You've said that you spawn a
vacumm process by cron every minute, that may be fine when the server
isn't too loaded. But when vacuums begins to take longer cron will spawn
more and more vacuums killing your machine.

I'll add a little check in the cron script to see if there isn't already
a vacuum process running or use an idependant script,
while [ 1 ]
   do
    vacuum --all
    sleep 60
   done

[...]

HTH,
--
MaXX

pgsql-general by date:

Previous
From: Chris Mair
Date:
Subject: Re: Major Performance decrease after some hours
Next
From: Andreas Seltenreich
Date:
Subject: Re: strange sql issue