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 1olbhD-0005dZ-1R for pgsql-general@arkaria.postgresql.org; Thu, 20 Oct 2022 19:59:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1olbhB-0001JE-At for pgsql-general@arkaria.postgresql.org; Thu, 20 Oct 2022 19:59:13 +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 1olbhB-0001J5-0C for pgsql-general@lists.postgresql.org; Thu, 20 Oct 2022 19:59:13 +0000 Received: from mta13.doruk.net.tr ([81.21.172.170]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olbh9-0004Dz-15 for pgsql-general@lists.postgresql.org; Thu, 20 Oct 2022 19:59:12 +0000 Received: from cmail19.webkontrol.doruk.net.tr ([212.58.6.99]:58129) by mta13.doruk.net.tr with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olbh4-0004I4-KQ for pgsql-general@lists.postgresql.org; Thu, 20 Oct 2022 22:59:06 +0300 Received: from DESKTOPQCEPGF2 ([176.88.190.218]) by cmail19.webkontrol.doruk.net.tr (12.2.1 build 1 ) with ASMTP id 202210202259030941 for ; Thu, 20 Oct 2022 22:59:03 +0300 From: To: Subject: High CPU usage Date: Thu, 20 Oct 2022 22:59:07 +0300 Message-ID: <005e01d8e4be$6a516cf0$3ef446d0$@1nar.com.tr> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Content-Language: en-us Thread-Index: AdjkvQlFc+eMepxjTKqHdmPyMtaWWQ== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, I am using PostgreSQL v14.5 on Linux Debian 11.5. I recently observe very high CPU usage on my Linux system as below PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2357756 postgres 20 0 2441032 2,3g 4 S 298,7 67,9 2114:58 Tspjzj2Z I could not find any file named Tspjzj2Z on the file system. I could not find PID number using below SQL SELECT * FROM pg_stat_activity I also see another suggestion like below to identify long running queries SELECT max(now() - xact_start) FROM pg_stat_activity WHERE state IN ('idle in transaction', 'active'); I get no long running query at all. There is no replication of any kind. This is a single instance server which alows certification login only. I appreciate any help to figure this out. Thanks & Regards, Ertan