pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ertan.kucukoglu@1nar.com.tr
To: pgsql-general@lists.postgresql.org
Subject: High CPU usage
Date: Thu, 20 Oct 2022 22:59:07 +0300
Message-ID: <005e01d8e4be$6a516cf0$3ef446d0$@1nar.com.tr> (raw)

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







view thread (4+ messages)  latest in thread

Message-ID: <005e01d8e4be$6a516cf0$3ef446d0$@1nar.com.tr>
Permalink:  ../005e01d8e4be$6a516cf0$3ef446d0$@1nar.com.tr/
Also on:    postgresql.org/message-id/005e01d8e4be$6a516cf0$3ef446d0$@1nar.com.tr

 · 

reply

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: ertan.kucukoglu@1nar.com.tr
  Subject: Re: High CPU usage
  In-Reply-To: <005e01d8e4be$6a516cf0$3ef446d0$@1nar.com.tr>
  References: <005e01d8e4be$6a516cf0$3ef446d0$@1nar.com.tr>

* 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