Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7i56-00049A-DP for pgsql-general@arkaria.postgresql.org; Thu, 04 Feb 2021 17:06:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l7i54-0007L7-Dh for pgsql-general@arkaria.postgresql.org; Thu, 04 Feb 2021 17:06:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7i54-0007Ky-3g for pgsql-general@lists.postgresql.org; Thu, 04 Feb 2021 17:06:10 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l7i4x-00008p-Bo for pgsql-general@lists.postgresql.org; Thu, 04 Feb 2021 17:06:07 +0000 Received: by mail-ot1-x32f.google.com with SMTP id 63so4133845oty.0 for ; Thu, 04 Feb 2021 09:06:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=Ia4CTZYBOCow2G7LlscxCytAGeEZ5HO3PL23YIgkpMo=; b=TbqKfBzD8AuylSj6fPUJrrCaJivV3grGAmS7xw50YK34/pW0QwHNtfCEadtF3Yntr7 8TvXLPLOOYeaXIZKacayqdF3UR9HKFbosGOwj1UN5xApEyARBumKLOqPsTkHQCV1cd6u 6KNI+k8vKWZ4ALZWt1TzuLIWrpq1ueaYryRJp1ormQ53DGn7IW7C9XCXU3Y7e2a4AyyB wZ2eJpMAW8Y2FknClPWNJOh5p0kVHux2h4k5SpMjQwECyca2GRoF5KAprJjZbrPy1h25 p+uexGOAExru6n7J8FFSPVY3/uCZWV40nGY+EG2zxR40hQgz93QJxl5u4a99E4ZYYUqT lmeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=Ia4CTZYBOCow2G7LlscxCytAGeEZ5HO3PL23YIgkpMo=; b=n9YyldEw7jjmWQKRLuf7hyG/5t46Ij3laxOlCMBLMGuaf6cSVENrcKq8mu/8Qhu4le ZbaPhRCd7hag1feK2Bx60fmTmenTQA6htaNa7Ury9yBsRDg5UqAXPkkNesHyx+TUs8sQ 1KKAFEL4FlgJ72UifLvcG1xIUJkaZwpjaDkQXoYSP22qgIt+tV7nLe76SF3wDvaFeG+t gOOVSQo7TI3YO7vQiaPHUtPY2bpgkstRWOVBFCN4lluRouWUcKYpVCP4Plfdq1sXS/iO RwOq7fWRQGNrxqVSERSnRu7nzNhjC5z/CEgkwD1jEQRzi56oBG7ZJiO9dAA756TFf4s6 JzbQ== X-Gm-Message-State: AOAM530kBVMAnEMSqf+xGJbHikUwD6/xslPZNCrk1aGPKJqucm9plRzA CdwlZCeL0ZHO/i6grGV4VY8DBNjZRRk= X-Google-Smtp-Source: ABdhPJyof8aLKfEnqGi2l2DsGtpjqWbrF7peyk8JLxjeoseUzQyp3bOaos5FrpCHafEr6FxJIPWhjQ== X-Received: by 2002:a9d:1717:: with SMTP id i23mr212688ota.179.1612458359122; Thu, 04 Feb 2021 09:05:59 -0800 (PST) Received: from [192.168.88.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id l4sm1195810oou.8.2021.02.04.09.05.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Feb 2021 09:05:57 -0800 (PST) Subject: Re: vacuumdb not letting me connect to db To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <0928c90f-420c-7eb2-fd1c-f3517a0537dc@gmail.com> Date: Thu, 4 Feb 2021 11:05:57 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------DE13C2E527FB69F817F78F11" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------DE13C2E527FB69F817F78F11 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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. --------------DE13C2E527FB69F817F78F11 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit 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.
--------------DE13C2E527FB69F817F78F11--