From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Linus Kamb <linus.kamb@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Unable to connect. Log : PDTWARNING: worker took too long to start; canceled
Date: Wed, 23 Oct 2013 14:37:48 -0300
Message-ID: <20131023173748.GC5314@eldon.alvh.no-ip.org> (raw)
In-Reply-To: <CAPWLyu1X48ss-LUYmjTvqdKeg6trROQMVpb3nsMRy4N5R4MKEQ@mail.gmail.com>
References: <CAPWLyu1X48ss-LUYmjTvqdKeg6trROQMVpb3nsMRy4N5R4MKEQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Linus Kamb escribió:
> Hi,
>
> Every morning for the past several days, when I come in to work, I find the
> postgres process running at 100% CPU and the logs filled with entries every
> minute with the warning "PDTWARNING: worker took too long to start;
> canceled"
>
> This appears to be almost exactly as this other thread:
>
> http://www.postgresql.org/message-id/AANLkTimt7_wbadtOkM9HqzeHmADmxb2TvuQD5yBUwkdZ@mail.gmail.com
I noticed that the thread was missing a couple of emails in the
archives, and that I had them in my mbox. I have just forwarded them
("bounced" them in mutt's terms) to the list and I think the archive is
complete now for that thread; I apologize to subscribers that just
received a couple of very old emails.
Anyway, that thread died without finding the root cause of the problem,
but Tom suspected that postmaster was being kept busy doing something
that precluded it from running its usual tasks. For the OP of the other
thread, stracing the postmaster seemed to bring it back to normal life.
Would it be possible to attach to the postmaster with GDB and get a
stack trace when it's stuck? That might be helpful; or, if the mere act
of tracing it brings it back to life, it might not -- but instead it
would make me think it's a platform bug of some sort.
If you remove the Glassfish thing, does the problem go away?
(Note: the PDTWARNING thing happens because you don't have a white space
at the end of your log_line_prefix. Adding one does wonders for
readability.)
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, 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
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: alvherre@2ndquadrant.com, linus.kamb@gmail.com
Subject: Re: Unable to connect. Log : PDTWARNING: worker took too long to start; canceled
In-Reply-To: <20131023173748.GC5314@eldon.alvh.no-ip.org>
* 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