Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHtVg-0000uN-Mv for pgsql-performance@arkaria.postgresql.org; Wed, 22 Jul 2015 12:52:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZHtVf-0005Za-Jc for pgsql-performance@arkaria.postgresql.org; Wed, 22 Jul 2015 12:52:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZHtU4-0003ir-Ut for pgsql-performance@postgresql.org; Wed, 22 Jul 2015 12:50:53 +0000 Received: from evolu-s.it ([94.23.66.144] helo=smtp.evolu-s.it) by magus.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZHtTx-0004fv-LU for pgsql-performance@postgresql.org; Wed, 22 Jul 2015 12:50:52 +0000 Received: from [192.168.1.241] ([93.54.81.21]) by smtp.evolu-s.it ; Wed, 22 Jul 2015 14:50:45 +0200 To: pgsql-performance@postgresql.org From: Moreno Andreo Subject: How to find the culprit in server load spikes? Message-ID: <55AF91A8.70904@evolu-s.it> Date: Wed, 22 Jul 2015 14:50:48 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -3.1 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Hi everyone, I host a Postgresql server on Ubuntu 12.04 and I am facing server load spikes (if I run top, it goes up to 25-30 on a 4-core system)... In some cases, I have to restart potgresql service because users call us complaining of the slowness, but in some cases I can leave things on their way and I see that after a bunch of minutes (about 5-10) the situations drops to the normality (0.50-2 load). The problem is, as in the most cases, the I/O, but I need a small hand to know some methods or tools that can help me to investigate who or what is causing me these spikes. Any help would be appreciated. Best regards, Moreno. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance