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 1oZxHm-00084f-0Y for pgsql-general@arkaria.postgresql.org; Sun, 18 Sep 2022 16:36:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oZxHi-00050r-5X for pgsql-general@arkaria.postgresql.org; Sun, 18 Sep 2022 16:36:46 +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 1oZxHh-00050h-RB for pgsql-general@lists.postgresql.org; Sun, 18 Sep 2022 16:36:45 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZxHe-00032e-UD for pgsql-general@postgresql.org; Sun, 18 Sep 2022 16:36:44 +0000 Received: from [188.174.54.200] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZxHd-00084a-Dc; Sun, 18 Sep 2022 18:36:41 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.16.1/8.14.9) with ESMTPS id 28IGaekg047319 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 18 Sep 2022 18:36:40 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.16.1/8.14.9/Submit) id 28IGadUG047318; Sun, 18 Sep 2022 18:36:39 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sun, 18 Sep 2022 18:36:39 +0200 From: Matthias Apitz To: Adrian Klaver Cc: Postgres General Subject: Re: Mysterious performance degradation in exceptional cases Message-ID: Reply-To: Matthias Apitz References: <20220914083126.GA9@sh4-5.1blu.de> <1474a2c4-b254-e1b1-bf3c-90f41bed3528@aklaver.com> <620c5c95-b877-3db8-3445-936f696c376c@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <620c5c95-b877-3db8-3445-936f696c376c@aklaver.com> X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.54.200 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk El día domingo, septiembre 18, 2022 a las 07:47:32a. m. -0700, Adrian Klaver escribió: > On 9/18/22 02:30, Matthias Apitz wrote: > > El día jueves, septiembre 15, 2022 a las 08:40:24a. m. -0700, Adrian Klaver escribió: > > > > > On 9/14/22 22:33, Matthias Apitz wrote: > > > > El día miércoles, septiembre 14, 2022 a las 07:19:31a. m. -0700, Adrian Klaver escribió: > > > > > > > > > On 9/14/22 01:31, Matthias Apitz wrote: > > > > > > > The 'app-server' does not answer, but does the database not answer also? > > > > > > Have you looked to see if the database is providing a response in a timely > > > manner and if it is getting 'lost' in the 'app-server'? > > > > I do not "think" that the time is spent elsewhere in the 'app-server'. > > to make a fact of the "thinking", I enabled the tracing of our dblayer > > showing how many milliseconds have been spent between entering the dblayer and > > returning the result to the application layers. This is in effect since > > 36 hours now. Since September 13 the problem has not showed up anymore. > > We are waiting for it... > > Is this with or without your every 10 sec 'ping' search program? The 'ping' search was stopped on September 16, 7:45 CEST. The 'ping' search never showed the problem. > > > Also have you considered Tom Lane's suggestion of using auto_explain? > > > > I'm afraid that this would affect all other applications using the same > > server. We still have other options to use. When the above tracing shows > > a result, i.e. which of the high level operations of the dblayer uses > > more time (more milliseconds) than normal, the next level is the detailed logging > > of the ESQL/C operations (where we added time stamps which normaly this > > logging does not have in its source code). > > You can load auto_explain per session as shown here: Every connect from the ILL forks a new 'app-server' session which creates a new ESQL/C session, and all this occur randomly when the ILL wants to search for a book title if this is available in that library. In short: no way. Thanks matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub Sahra Wagenknecht im Bundestag: "Aber die Vorstellung, dass wir Putin dadurch bestrafen, dass wir Millionen Familien in Deutschland in die Armut stürzen und dass wir unsere Industrie zerstören, während Gasprom Rekordgewinne macht – ja, wie bescheuert ist das denn?" Recht hat sie!