From users-return-264072-archive-asf-public=cust-asf.ponee.io@tomcat.apache.org Mon Mar 5 22:29:35 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 03E39180608 for ; Mon, 5 Mar 2018 22:29:34 +0100 (CET) Received: (qmail 14112 invoked by uid 500); 5 Mar 2018 21:29:33 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 14102 invoked by uid 99); 5 Mar 2018 21:29:33 -0000 Received: from mail-relay.apache.org (HELO mailrelay1-lw-us.apache.org) (207.244.88.152) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2018 21:29:33 +0000 Received: from [192.168.23.12] (host81-156-46-215.range81-156.btcentralplus.com [81.156.46.215]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id 4C4E5503 for ; Mon, 5 Mar 2018 21:29:32 +0000 (UTC) Subject: Re: Infinite loop in Poller run - Tomcat 8.5.16 with APR native 1.2.10 To: Tomcat Users List References: From: Mark Thomas Message-ID: <7c61d140-e21e-995c-0d26-6f6f2838c9c9@apache.org> Date: Mon, 5 Mar 2018 21:29:31 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit On 05/03/18 16:42, Prakash Saraf wrote: > Hi Team, > > We are observing the high CPU utilization often in our sandbox and > production environment. We are using Tomcat 8.5.16 with APR native 1.2.10. > > It looks, the Poller thread is going in infinite loop while adding sockets > which are waiting to the poller. java/org/apache/tomcat/util/ > net/AprEndpoint.java > > - > Line#1605, within the loop, if socket wrapper is found null, code simply > continues without fetching the next SocketInfo from list (which is done in > end of while loop). This seems to throw the server in infinite loop. > > > Shouldn't we be pulling the next info from list? Can someone please take a > look and suggest if my understanding is correct? Yes, you are correct. I'll get that fixed shortly. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org