From: | John Scalia <jayknowsunix(at)gmail(dot)com> |
---|---|
To: | Renato Oliveira <Renato(dot)Oliveira(at)cantabcapital(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Forums postgresql <pgsql-general(at)postgresql(dot)org>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: [ADMIN] How Many PG_Locks are considered too many |
Date: | 2015-07-30 14:19:59 |
Message-ID: | CABzCKRAr3M8upQsSJNhTSOS-g5Zeom_e0KP+a8tVZGqEdJGknQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general |
Seconding Peter on this one; it's a lot more important should one of those
locks be hanging around, say for hours or days, not how many have come and
gone.
--
Jay
On Thu, Jul 30, 2015 at 8:57 AM, Renato Oliveira <
Renato(dot)Oliveira(at)cantabcapital(dot)com> wrote:
> Peter thank you much appreciated
>
> Sent from my iPhone
>
> > On 30 Jul 2015, at 14:54, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> >
> >> On 7/30/15 6:13 AM, Renato Oliveira wrote:
> >> We have a Nagios plugin, which monitors pg_locks and almost daily we see
> >> 3000 to 40000 pg_locks.
> >>
> >> Can we just ignore them, can we let them grow without worrying?
> >>
> >> How many pg_locks are considered unsafe for any given postgres server?
> >
> > That depends on how many concurrent clients you have and what they are
> > doing. Every table access will at least create a share lock of some
> > kind, so if you have a lot of activity that does a lot of things, you
> > will see a lot of locks, but that doesn't impact database performance in
> > a significant way.
> >
> > I don't think monitoring the absolute number of locks is useful. You
> > might want to chart it, to compare over time. If you want to monitor
> > locks, you could monitor lock waits, which you can get by checking the
> > server log.
> >
>
>
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>
From | Date | Subject | |
---|---|---|---|
Next Message | John Scalia | 2015-07-30 18:49:46 | Autovacuum behavior |
Previous Message | Renato Oliveira | 2015-07-30 13:57:07 | Re: How Many PG_Locks are considered too many |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2015-07-30 14:21:15 | Re: user connection not recorded? |
Previous Message | Melvin Davidson | 2015-07-30 14:12:05 | Re: user connection not recorded? |