From: Benjamin Krajmalnik <kraj@servoyant.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Problem with pgstat timneouts
Date: Thu, 22 Dec 2011 09:32:51 -0700
Message-ID: <F4E6A2751A2823418A21D4A160B689888CA5A0@fletch.stackdump.local> (raw)
About a month ago, I started receiving quite a few pgstat timeouts on my
production database.
PostgreSQL 9.0.3 on amd64-portbld-freebsd8.1, compiled by GCC cc (GCC)
4.2.1 20070719 [FreeBSD], 64-bit
I am not sure where to start looking for the cause.
Database has been up since march without any restart
db1# ps -aux | grep stat
pgsql 1287 1.0 0.0 22832 4724 ?? Ss 11Mar11 4265:13.87
postgres: stats collector process (postgres)
It appears that these timeouts are affecting the performance of the
application - sometimes it hangs for a few seconds before data gets
returned, which was not the case before this.
2011-12-22 03:45:04 MST WARNING: pgstat wait timeout
2011-12-22 03:45:04 MST WARNING: pgstat wait timeout
2011-12-22 03:45:04 MST WARNING: pgstat wait timeout
2011-12-22 03:45:04 MST WARNING: pgstat wait timeout
2011-12-22 03:45:41 MST WARNING: pgstat wait timeout
2011-12-22 03:45:41 MST WARNING: pgstat wait timeout
2011-12-22 03:45:41 MST WARNING: pgstat wait timeout
2011-12-22 03:46:18 MST WARNING: pgstat wait timeout
2011-12-22 03:46:18 MST WARNING: pgstat wait timeout
2011-12-22 03:47:32 MST WARNING: pgstat wait timeout
2011-12-22 03:47:32 MST WARNING: pgstat wait timeout
2011-12-22 03:47:32 MST WARNING: pgstat wait timeout
2011-12-22 03:48:09 MST WARNING: pgstat wait timeout
2011-12-22 03:48:09 MST WARNING: pgstat wait timeout
2011-12-22 03:48:09 MST WARNING: pgstat wait timeout
2011-12-22 03:49:26 MST WARNING: pgstat wait timeout
Runtime statistics setting for the database are as follows:
#-----------------------------------------------------------------------
-------
# RUNTIME STATISTICS
#-----------------------------------------------------------------------
-------
# - Query/Index Statistics Collector -
#track_activities = on
#track_counts = on
#track_functions = none # none, pl, all
#track_activity_query_size = 1024 # (change requires restart)
# On FreeBSD, this is a performance hog, so keep it off if you need
speed
update_process_title = off
#update_process_title = on
#stats_temp_directory = 'pg_stat_tmp'
# - Statistics Monitoring -
#log_parser_stats = off
#log_planner_stats = off
#log_executor_stats = off
#log_statement_stats = off
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: kraj@servoyant.com
Subject: Re: Problem with pgstat timneouts
In-Reply-To: <F4E6A2751A2823418A21D4A160B689888CA5A0@fletch.stackdump.local>
References: <F4E6A2751A2823418A21D4A160B689888CA5A0@fletch.stackdump.local>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox