Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1veKzB-00C3oj-09 for pgsql-performance@arkaria.postgresql.org; Fri, 09 Jan 2026 22:29:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1veKz9-008yFw-2H for pgsql-performance@arkaria.postgresql.org; Fri, 09 Jan 2026 22:29:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1veKz9-008yFo-1A for pgsql-performance@lists.postgresql.org; Fri, 09 Jan 2026 22:29:36 +0000 Received: from mail-dl1-x1233.google.com ([2607:f8b0:4864:20::1233]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1veKz7-005ZqH-33 for pgsql-performance@lists.postgresql.org; Fri, 09 Jan 2026 22:29:35 +0000 Received: by mail-dl1-x1233.google.com with SMTP id a92af1059eb24-121b14efeb8so1951631c88.1 for ; Fri, 09 Jan 2026 14:29:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postgres.ai; s=google; t=1767997772; x=1768602572; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VnKDPrJgnDqxryENoPQvq+qR8lk/x2MmAdX9KvZeGVw=; b=WkWQ2yJUU3NNWyPGr94JRuLJETEbBhKOcxnsybWrgDl/lVVQxV3M7+9avpv7MCatYN I+tAeZI8jGE+yDcxLcAB0VYuh76sL1D9fyCu2gmeYm9szBvBSUxkhaBP2H+u3c08WtK5 o/ssY+DR7iqLuwto3XMrCRxnK8dG2K+hsqy2tMOLqCDmeWNPSOnN6i6ulKniJig52Qhv qEdDZR4mkXidqkzFBL36chnOKCKANYbsBjwJ1PEVf1xnBDKbQAAYVc3KXAJJONwKslEE i2yrZV6a/SJmUkiB98KB43XdKGGYFj5yb6JGtes2OyAuM+h/pxLSkfn499Ik5JjOKxoO rWFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767997772; x=1768602572; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VnKDPrJgnDqxryENoPQvq+qR8lk/x2MmAdX9KvZeGVw=; b=vzVnKGPCK+e12dbETd1uuup7MN1otIAi/f0s81Stc38NqtVgbc948k8evPKsj41ijT i3GTxRo6I28gmhSnZL05wA/hAy2T8SEsS61IFpOvM6PKknOOZO5KgKgDuN0qZh0zEpEU dZMXu55EuV+BPsoLcJeubvj1Ui0yskJiLgH9xW/xmVGn83BoBZew/byrSPlgyexIjOx9 9R9ufPx7VFVv879rCo6JBq38otHO+OpkDu6fiVMstIr2ynVti50o01c5s4vzXACWcf9F 20rqIhsME9+LMK6pwyto9EFpTDzzYxexHo8iei6FbPge4FZfMJALjXQIk4BCPCMMCJiS uMrg== X-Gm-Message-State: AOJu0YwHnBpxBaZOHnU2mwAXrax5jnAePoLUJ103O4mILKiyZuN2YCni EiAnuX9adAJNwTuVr+KU/XQL1FEfzHzHMRqAqNd8dyg1cKBKyPxWopOsF+zP6K5O/fdIUEXm5J8 3tIR28aTZCgj2bIYUkiXvwiD8bpTJPkQfOp5mLzWHZg== X-Gm-Gg: AY/fxX5M+TXiRxOngq5L4M8PWqXJEru+NuzoKnKYlFoSg0BX8MPnV1ts9n2mlRnLQLR y3TfMYkNpznzlT4ruyuxau2pWOEE3IajB/h3l+4+lTTg1bRwbFjBUcF+b+xswaGuU9Pjz/3fD1c i/MbMh74ug+EPg92xFL/61hoRFpif41nRP5HnTbYWcC+jwhxzV0EsNmQWBj0ObqfRZW2lNRiqXD SP2bhq98Hc8fWJwuw8XIVEyIrrx/Ql5OjJ6SAnnaXgejNCl/iCbVNZSsTj+5Bp+L757Ft+O X-Google-Smtp-Source: AGHT+IEAq0iJ90Moe37ovWJ6jl0gfLXSb7kz30eWWqT9IX4BRYvB7ZX88BZILzIKdBlOCaLfHkpKgMz8dHvWa7ccWV4= X-Received: by 2002:a05:7022:6189:b0:119:e56b:957c with SMTP id a92af1059eb24-121f8ac9db2mr10666796c88.1.1767997771752; Fri, 09 Jan 2026 14:29:31 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Nikolay Samokhvalov Date: Fri, 9 Jan 2026 14:29:20 -0800 X-Gm-Features: AQt7F2pv1Xiyvvt4fH1Ya645TrAgTB7oiuKpczUUr4ytIX-fz32pI1tROzRtZAk Message-ID: Subject: Re: Troubleshooting a brief spike in active sessions To: "Dirschel, Steve-CW" Cc: "pgsql-performance@lists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000002635c40647fc0f3a" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002635c40647fc0f3a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable BTW, what are you logging settings for slow queries? (log_min_duration_statement, auto_explain.log_min_duration) On Fri, Jan 9, 2026 at 2:27=E2=80=AFPM Nikolay Samokhvalov wrote: > On Fri, Jan 9, 2026 at 1:41=E2=80=AFPM Dirschel, Steve-CW < > Steve.Dirschel@bestbuy.com> wrote: > > > > Aurora Postgres version 17.4 > > > > ... > > > > The app sessions will show as wait_event_type and wait_event as null > which I understand means they are on CPU > > > > ... > > > Not necessarily. It also might be an uninstrumented wait event. > > Do the spikes of "CPU" AAS (I prefer to call them "CPU*") correspond well > to the spikes of high usage? > > If you have N active sessions marked as CPU in ASH, does it match to the > CPU load of similar scale? > > If the VM has much less than 400 vCPUs and you see overall CPU load far > from 100%, then we should suspect some missing wait event. > > Nik > --0000000000002635c40647fc0f3a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
BTW, what are you logging settings for slow queries?<= /div>
(log_min_duration_statement, auto_explain.log_min_duration)
=

On Fri, Jan 9, 2026 at 2:27=E2=80=AFPM Nikolay Samokh= valov <nik@postgres.ai> wrote:=
On Fri, Jan 9, 2026 at 1:41=E2=80=AFPM Dirschel, Steve-CW <Steve.Dirschel@bestbuy= .com> wrote:
>
> Aurora Postgres version 17.4
>> ...
>
> The app sessions will show as wait_event_type and= wait_event as null which I understand means they are on CPU
>
>= ; ...


Not necessarily. It also might be an uninstrumented wait e= vent.

Do the spikes of "CPU" AAS (I prefer to call them &q= uot;CPU*") correspond well to the spikes of high usage?

If you = have N active sessions marked as CPU in ASH, does it match to the CPU load = of similar scale?

If the VM has much less than 400 vCPUs and you see= overall CPU load far from 100%, then we should suspect some missing wait e= vent.

Nik
--0000000000002635c40647fc0f3a--