Re: Autovacuums not triggering anymore

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Thomas SIMON <tsimon(at)neteven(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Autovacuums not triggering anymore
Date: 2016-05-06 16:58:30
Message-ID: 20160506165830.GA219913@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thomas SIMON wrote:
> Hi all,
>
> Since two days, autovacuum_analyze & autovacuum_vacuum does not trigger
> anymore on any of my databases (but they are started on db template1).
> Before, I had around at least 30 analyzes and 400 vacuums per hour on these
> DBs.

Are autovacuum workers all busy processing some very large? Look for
them in pg_stat_activity. If not, identify what is the autovacuum
launcher process doing; perhaps attach a debugger to it and see if it
ever calls launch_worker() or do_start_worker(). If time longer than
autovacuum_naptime lapses and it doesn't, have a look at the "stats
collector process"; is that one alive and working? If you attach to it
with a debugger, you should see it operate if you do a simple query in a
session such as "select * from pg_stat_user_tables". In that query,
also verify the autovacuum and autoanalyze timestamps.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Greg Spiegelberg 2016-05-06 16:59:09 Re: Autovacuum of pg_database
Previous Message Tom Lane 2016-05-06 16:38:16 Re: Autovacuum of pg_database