Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1elcr7-0005Yu-6r for pgsql-general@arkaria.postgresql.org; Tue, 13 Feb 2018 15:50:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elcr5-0007m0-TP for pgsql-general@arkaria.postgresql.org; Tue, 13 Feb 2018 15:50:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1elcr5-0007lq-Lc for pgsql-general@lists.postgresql.org; Tue, 13 Feb 2018 15:50:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1elcqu-00007c-FG for pgsql-general@postgresql.org; Tue, 13 Feb 2018 15:50:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w1DFoWLg006541; Tue, 13 Feb 2018 10:50:32 -0500 From: Tom Lane To: Laurenz Albe cc: Vikas Sharma , pgsql-general@postgresql.org Subject: Re: Multiple postmasters running from same directory In-reply-to: <1518529333.2525.25.camel@cybertec.at> References: <1518529333.2525.25.camel@cybertec.at> Comments: In-reply-to Laurenz Albe message dated "Tue, 13 Feb 2018 14:42:13 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6539.1518537032.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 13 Feb 2018 10:50:32 -0500 Message-ID: <6540.1518537032@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Laurenz Albe writes: > Vikas Sharma wrote: >> On the master I can see multiple postmaster processes from the same dat= a directory. = >> ps -ef |grep -i postgres|grep postm >> postgres 81440 1 0 Jan31 ? 00:11:37 /usr/pgsql-9.4/bin/po= stmaster -D /var/lib/pgsql/9.4/data >> postgres 97072 81440 0 12:17 ? 00:00:00 /usr/pgsql-9.4/bin/po= stmaster -D /var/lib/pgsql/9.4/data >> postgres 97074 81440 0 12:17 ? 00:00:00 /usr/pgsql-9.4/bin/po= stmaster -D /var/lib/pgsql/9.4/data > The two other processes are children of the postmaster. > It is strange that their process title did not get updated. Seeing that they're showing zero runtime, I bet that these are just-forked children that have not had time to change their process title yet. The thing that is strange is that you have a steady enough flow of new connections that there are usually some children like that. > The "incomplete startup packet" is caused by processes that connect to t= he > PostgreSQL TCP port, but don't complete a database connection. > Often these are monitoring or load balancing programs. Putting two and two together, you have some monitoring program that is hitting the postmaster with a constant stream of TCP connection requests none of which get completed, resulting in a whole lot of useless fork activity. Dial down the monitoring. regards, tom lane