Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CEEC8200B76 for ; Tue, 30 Aug 2016 15:12:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CD892160ABA; Tue, 30 Aug 2016 13:12:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 209C3160AA8 for ; Tue, 30 Aug 2016 15:12:26 +0200 (CEST) Received: (qmail 67952 invoked by uid 500); 30 Aug 2016 13:12:25 -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 67941 invoked by uid 99); 30 Aug 2016 13:12:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2016 13:12:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 37972180298 for ; Tue, 30 Aug 2016 13:12:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.323 X-Spam-Level: * X-Spam-Status: No, score=1.323 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_INFOUSMEBIZ=0.75, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id aeFlIWAZ929n for ; Tue, 30 Aug 2016 13:12:21 +0000 (UTC) Received: from BAY004-OMC2S19.hotmail.com (bay004-omc2s19.hotmail.com [65.54.190.94]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 5427960CD1 for ; Tue, 30 Aug 2016 13:12:20 +0000 (UTC) Received: from BAY406-EAS244 ([65.54.190.125]) by BAY004-OMC2S19.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Tue, 30 Aug 2016 06:12:13 -0700 X-TMN: [Xav2MDERK94Wn4eb4TIH5qqex3dV4mw+] X-Originating-Email: [chen_levy@hotmail.com] Message-ID: MIME-Version: 1.0 To: Tomcat Users List From: Chen Levy Subject: High CPU Consumption with Tomcat 8.5.4 NIO and SSL Date: Tue, 30 Aug 2016 09:11:14 -0400 Importance: normal X-Priority: 3 Content-Type: multipart/alternative; boundary="_2564E8BE-6EBF-413C-8A9E-5C878F288606_" X-OriginalArrivalTime: 30 Aug 2016 13:12:13.0328 (UTC) FILETIME=[1F8A0100:01D202C0] archived-at: Tue, 30 Aug 2016 13:12:28 -0000 --_2564E8BE-6EBF-413C-8A9E-5C878F288606_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Hello All Since Tomcat 8.0.x development is about to be stopped, we=E2=80=99ve decide= d to switch to 8.5.4, but since are facing the following issue: A few hours after startup, the Java process starts consuming 100% CPU, and = while Tomcat is still responsive, it is very slow. This is consistent, been= going on for a couple of weeks and is only resolved each time by restartin= g Tomcat. I=E2=80=99ve tried a few things: Reverted back to Tomcat 8.0.33 -> problem solved Switched from NIO to NIO2 -> problem solved, but other issues appeared with= connections ending prematurely, so not a valid option Switched to the new connector configuration scheme -> problem persists Setup:=20 Current Amazon Linux, Tomcat 8.5.4, Java 1.8.0_92-b14, no APR Analyzing the threads, there=E2=80=99s one which takes all of the CPU time: "https-jsse-nio-8443-ClientPoller-0" daemon prio=3D5 RUNNABLE sun.misc.Unsafe.unpark(Native Method) java.util.concurrent.locks.LockSupport.unpark(LockSupport.java:141) java.util.concurrent.locks.AbstractQueuedSynchronizer.unparkSuccessor(Abst= ractQueuedSynchronizer.java:662) java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueu= edSynchronizer.java:1264) java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:457) java.util.concurrent.LinkedBlockingQueue.signalNotEmpty(LinkedBlockingQueu= e.java:176) java.util.concurrent.LinkedBlockingQueue.offer(LinkedBlockingQueue.java:43= 0) org.apache.tomcat.util.threads.TaskQueue.offer(TaskQueue.java:74) org.apache.tomcat.util.threads.TaskQueue.offer(TaskQueue.java:31) java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:13= 61) org.apache.tomcat.util.threads.ThreadPoolExecutor.execute(ThreadPoolExecut= or.java:163) org.apache.tomcat.util.threads.ThreadPoolExecutor.execute(ThreadPoolExecut= or.java:141) org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint= .java:828) org.apache.tomcat.util.net.NioEndpoint$Poller.processKey(NioEndpoint.java:= 850) org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:826) java.lang.Thread.run(Thread.java:745) This is similar to an issue on a Windows machine reported here: http://marc.info/?l=3Dtomcat-user&m=3D147082413626214&w=3D2 I=E2=80=99ll appreciate any insight or advice Thanks in advance Chen --_2564E8BE-6EBF-413C-8A9E-5C878F288606_--