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 1nRTaf-00030P-SX for pgsql-performance@arkaria.postgresql.org; Tue, 08 Mar 2022 06:45:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nRTae-0007Bs-NK for pgsql-performance@arkaria.postgresql.org; Tue, 08 Mar 2022 06:45:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRTae-0007B3-Dd for pgsql-performance@lists.postgresql.org; Tue, 08 Mar 2022 06:45:00 +0000 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nRTac-0005DR-2H for pgsql-performance@lists.postgresql.org; Tue, 08 Mar 2022 06:44:59 +0000 Received: by mail-io1-xd2c.google.com with SMTP id x4so3874948iom.12 for ; Mon, 07 Mar 2022 22:44:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=xAExGlxFys5G3qh/t+RMB0WOmbGUI+qLROfRWhU6X20=; b=dfJ95wtReGkPa+8yjXejBG7VQKGd0deThN3Fs6vGNP3TWV5DXGXHqzALtVFTRT6P8p spXQr44H2Jd0jAlMHQw84BuK0Iwr5nefyLd+OFFZrxyuj28mSgvJ2VS/sMICbkoAVFh8 vOdZpTz+65WAlai5+sq6xXOQkazSsKf9ML0VdZGZ69kKppnHT/51C07/GDxXskrt0RRv QG2C0MKY3NTXNWkhc65KUFpwTjOGdalSy/iRu2wj8eSZCMOrt2swnZyIMp7R9Z+291wP a6LjXJM2yDIurkIXOBYDI/XvLXkCDzME5qF3LQeq/8VpLRN459vDLcfWetzA7pLbTRJo XlrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=xAExGlxFys5G3qh/t+RMB0WOmbGUI+qLROfRWhU6X20=; b=iY1Uklod/6Qgc+AXxhF6rcWK0zLZdY17atEChkxiW9lkZ4UdmPRjO4aRkwEPzA++JW L5ok9GYwG9LvgJFXc0a0LmSmQdNEwCtq03o5rbvjsHaOsrN6m8VxPzjfimcyQEuSbULx JYy4jjOKeTIrarbzxs3953bImyxd3L4XO2qs4x2I1HMePBqUe5UgLJ8p76gpCRtQLRI5 rwt0SW/g4DSBId7TWXf5xAc1ZdVQYDCkfedOreAtWJeKs7DlBqd5eUOpf2JQTpFLCkNt t0svvgZltis2GRDTCSDlEEuejsF4QXc06uRtkc3iTzGxD2OVlhn6i0lLDkSAr5oev07w M3OA== X-Gm-Message-State: AOAM530B+EMcZ6Qbjl/952dTI1jLzNfnWmUFoS6tq9HvsS24yOpIn4Gu BKbnFTH/VZXnKVJ0j6fG0Azvew== X-Google-Smtp-Source: ABdhPJy0jR1g8Jw1u4faltFlSWi8fEsLQpdIB6/xqyzT1TmE7bBTNVLzaBeGP5f/fKcWOba82R3qmg== X-Received: by 2002:a02:294a:0:b0:317:3541:3b9a with SMTP id p71-20020a02294a000000b0031735413b9amr13574619jap.101.1646721897367; Mon, 07 Mar 2022 22:44:57 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id j9-20020a056e02154900b002c5f02e6eddsm12616028ilu.76.2022.03.07.22.44.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Mar 2022 22:44:56 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 099A880064E; Tue, 8 Mar 2022 00:44:55 -0600 (CST) Date: Tue, 8 Mar 2022 00:44:55 -0600 From: Justin Pryzby To: Luiz Felipph Cc: pgsql-performance@lists.postgresql.org Subject: Re: Optimal configuration for server Message-ID: <20220308064455.GT27651@telsasoft.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Mar 07, 2022 at 08:51:24AM -0300, Luiz Felipph wrote: > My current problem: > > under heavyload, i'm getting "connection closed" on the application > level(java-jdbc, jboss ds) Could you check whether the server is crashing ? If you run "ps -fu postgres", you can compare the start time ("STIME") of the postmaster parent process with that of the persistent, auxilliary, child processes like the checkpointer. If there was a crash, the checkpointer will have restarted more recently than the parent process. The SQL version of that is like: SELECT date_trunc('second', pg_postmaster_start_time() - backend_start) FROM pg_stat_activity ORDER BY 1 DESC LIMIT 1; -- Justin