Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YyPpm-0001vC-G2 for pgsql-performance@arkaria.postgresql.org; Fri, 29 May 2015 19:20:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YyPpl-0006ez-Ko for pgsql-performance@arkaria.postgresql.org; Fri, 29 May 2015 19:20:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YyPpf-0006V2-IU for pgsql-performance@postgresql.org; Fri, 29 May 2015 19:20:39 +0000 Received: from mail-wg0-f54.google.com ([74.125.82.54]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YyPpc-0003hj-HC for pgsql-performance@postgresql.org; Fri, 29 May 2015 19:20:38 +0000 Received: by wgv5 with SMTP id 5so70606110wgv.1 for ; Fri, 29 May 2015 12:20:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=DcfXCLWenU8hbsG58+iXP6X9e+QcXsdYQET6O0rJcIQ=; b=fQB443BjARjGSVTKyI3HOhmLlmpolhH+lJKxSqSExe/wGVwJSZuNUyb2f+ZeHeB5iT +tlbCMtjaA1kEsUdp4C2zoeZMtKiWuYDmGVq0/b0wZnTbBsfHAbxbRTcU97nNc+fCJPE vYXvC2PrUBJQIDFLmzoo2tzxRf5sx6CIcbZtcFKpoLIMjPRMLXOkUEQR9ovGmLRYo+l3 0OCfYUM1rERXG+N2VGVesM0lwDhHzFRBt/pv/xuELGuRu7iMhzTAvJ76MokxFNyoOvQx vtucdiJN2s9YrI6r/zmYw2+XCPqlWUCb+c6cRWtYAYlqDyGCRe9cBOxgWrKqMJPkZNIx 6rvQ== X-Gm-Message-State: ALoCoQncAo/MntOdjVbaUgFSFUM5W0+XZIF/uV/CHgNakUx2diLa4EiqRcCawW8FRRoqxHxWjbJ+GgkuNakMSM66b0km0IAq4ykNtQF7cS76LlEzNv2xuaULzG+nKav66of1czB8yTXGBIZylEwz33o/EJTvrGHdWAgOmuhWbe8XYfX0yIOkbuJYHqXYzshnqXbCHYlgF4cMT4Jrzjg8eEihhK9UwfLXlw== X-Received: by 10.194.193.71 with SMTP id hm7mr18317637wjc.40.1432927234467; Fri, 29 May 2015 12:20:34 -0700 (PDT) Received: from [10.137.2.12] (ip-78-45-136-74.net.upcbroadband.cz. [78.45.136.74]) by mx.google.com with ESMTPSA id l6sm4392772wib.18.2015.05.29.12.20.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 May 2015 12:20:33 -0700 (PDT) Message-ID: <5568BBFF.8080807@2ndquadrant.com> Date: Fri, 29 May 2015 21:20:31 +0200 From: Tomas Vondra User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Postgres is using 100% CPU References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 05/29/15 20:10, Ashik S L wrote: > Hi All, > > I am using postgresDB on redhat machine which is having 4GB RAM > machine. As soon as it starts to Inserting rows into the postgres DB > it will reach 100%cpu. It will comedown to normal after 40 minutes. I > tried perform some tuning on the postgres DB, But result was same.I > am not postgres DB expert. Even we are not seeing in all machine. > Only few machines we are seeing this issue. Any help on this would > be appreciated. Ashik, before pointing you to this list, I asked for some basic information that are needed when diagnosing issues like this - database size, postgres version etc. We can't really help you without this info, because right now we only know you're doing some inserts (while before you mentioned updates), and it's slow. Also, can you please provide info about the configuration and what changes have you done when tuning it? Have you seen this? https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance