From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: vacuumdb not letting me connect to db
Date: Thu, 4 Feb 2021 11:05:57 -0600
Message-ID: <0928c90f-420c-7eb2-fd1c-f3517a0537dc@gmail.com> (raw)
In-Reply-To: <CA+ONtZ7hmwQn+6+fGqSbo_RXE7MBeV=OR86LpG57xRvOerWfag@mail.gmail.com>
References: <CA+ONtZ7hmwQn+6+fGqSbo_RXE7MBeV=OR86LpG57xRvOerWfag@mail.gmail.com>
On 2/4/21 5:26 AM, Atul Kumar wrote:
> Hi,
>
> I have 160 GB of RAM, postgres 9.6 is running on the server.
>
> after upgrade I ran the below command:
>
> "/usr/edb/as9.6/bin/vacuumdb" -U 'enterprisedb' --verbose --all -j 300
> --analyze-only
>
> after running that command I was not able to connect the database
> using psql for few minutes.
What's the exact error message?
> After 20-30 minutes i was able to connect to the db and at that time I
> checked the pg_stst_activity, the active connections was reduced to
> 27.
>
> my max_connections is set to 700.
>
> I tried to find out the reason for not being abled to connect the db
> (when 300 jobs were running) but still not got the answer. So
Connect to the cluster *before* running "vacuumdb -j300", and start looking
at pg_stst_activity while vacuumdb is running.
--
Angular momentum makes the world go 'round.
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-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: vacuumdb not letting me connect to db
In-Reply-To: <0928c90f-420c-7eb2-fd1c-f3517a0537dc@gmail.com>
References: <CA+ONtZ7hmwQn+6+fGqSbo_RXE7MBeV=OR86LpG57xRvOerWfag@mail.gmail.com> <0928c90f-420c-7eb2-fd1c-f3517a0537dc@gmail.com>
* 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