Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ayj5R-0006Eh-3D for pgsql-admin@arkaria.postgresql.org; Fri, 06 May 2016 16:58:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ayj5Q-0001fB-I3 for pgsql-admin@arkaria.postgresql.org; Fri, 06 May 2016 16:58:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ayj5Q-0001f0-0Z for pgsql-admin@postgresql.org; Fri, 06 May 2016 16:58:44 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ayj5L-0006hO-Fq for pgsql-admin@postgresql.org; Fri, 06 May 2016 16:58:43 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [216.155.90.98]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 76B67400CD4; Fri, 6 May 2016 09:58:32 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 93544419; Fri, 6 May 2016 13:58:30 -0300 (CLST) Date: Fri, 6 May 2016 13:58:30 -0300 From: Alvaro Herrera To: Thomas SIMON Cc: "pgsql-admin@postgresql.org" Subject: Re: Autovacuums not triggering anymore Message-ID: <20160506165830.GA219913@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin