From users-return-268792-archive-asf-public=cust-asf.ponee.io@tomcat.apache.org Sun Nov 24 12:29:39 2019 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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 35D0E180643 for ; Sun, 24 Nov 2019 13:29:39 +0100 (CET) Received: (qmail 72161 invoked by uid 500); 24 Nov 2019 12:29:35 -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 72150 invoked by uid 99); 24 Nov 2019 12:29:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Nov 2019 12:29:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C5BA6C02AE for ; Sun, 24 Nov 2019 12:29:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 7X-SU-A0x4pa for ; Sun, 24 Nov 2019 12:29:33 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::e43; helo=mail-vs1-xe43.google.com; envelope-from=mladen.adamovic@gmail.com; receiver= Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 91F8A7DD9E for ; Sun, 24 Nov 2019 12:29:32 +0000 (UTC) Received: by mail-vs1-xe43.google.com with SMTP id 190so8089424vss.8 for ; Sun, 24 Nov 2019 04:29:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=cb6PfAAPr5D6r9PGv/NfHKvCjsqr3xpoJK2YkgItgtk=; b=E1eE7ht97fHuq0wd4LfEye7daPJ1s1JsRCbO7WYUROABIzSJLeXmyZY9lmXODwMQyU U6MPA2BSRRVVQ8K+tf/KdpnXCgZseTb2e1s6mvCHOJLaN6JyLM6cb4l1Jok8eCB6ej6M acz57aHrpfA/JkKd4lFuLYP2BiXJgPgczFYkQRO1A8yD2HEnrh0va4GVXKUdrqRx63G4 th9TqfPHETkJtplcg4YZ5ySHFM9XB/w/Pwmq4z/aI2EA6nByFQcjygGNRRAekiUNh9RT Bf8lnHfqq7ezZpZ/p718gYj+NMSg4PaR+/zQ+VWPzwHr/nIDFihcZQw9e6q5rjL2qgU1 upGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=cb6PfAAPr5D6r9PGv/NfHKvCjsqr3xpoJK2YkgItgtk=; b=d9KGnPHklYZu257DLdoKckfjAo3qiCKaA0IwMvEWLv4/FYAdgXJTpFEGYmp34vU7ai RHpuaA117YfhJ0g3Wq9oWIJbA0Uhc95yeWdVTnGRLTWpj2Zyq9WrEw6zsKI97gy8APrM cRLVlHNeFEKMk5Ony33Eb+H44mV4OVwNHSufMlf60NWCFTKQ8m2PQDLRjGY5niCoEkXz tiGMD24zRr3NJz4L+CXtRool0Bx73zs04GsUEVsPsKRS/h0z25bpL61dcnphMnbW6L54 OSoHN7G0jvTjo+9q4MI8nDvks0ZtjKR/qWG5sl3c5QjgXWbJxTr/4YZAofG0OiUbFRNR d1uQ== X-Gm-Message-State: APjAAAXeR4VH6XRsojPVeV6QRzRMQHhENovaOZhIKnFEpo7WerJr+1cq SugBEdzC4TSIEZ/BR9fJJk/eIncVr4J8R+u+p2y6S32hBEw= X-Google-Smtp-Source: APXvYqxfY0OkfFoZa+RCt5pZxR5dL7dGKnznslP8fvVKh1fvfQdwlvomEENbxO8oyCLqUQ9pS6WZxGIUosxchx8E0/Q= X-Received: by 2002:a67:3195:: with SMTP id x143mr16338063vsx.74.1574598571200; Sun, 24 Nov 2019 04:29:31 -0800 (PST) MIME-Version: 1.0 References: <05ee1b9e-9367-0495-dedf-e4569270414b@apache.org> In-Reply-To: <05ee1b9e-9367-0495-dedf-e4569270414b@apache.org> From: =?UTF-8?Q?Mladen_Adamovi=C4=87?= Date: Sun, 24 Nov 2019 13:29:20 +0100 Message-ID: Subject: Re: CPU high usage, the reason org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run To: Tomcat Users List Content-Type: multipart/alternative; boundary="0000000000008014c5059816ccc7" --0000000000008014c5059816ccc7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Tomcat 8.5.5 Java 1.8.0_101 OS: Ubuntu 4.4.0-38-generic On Sun, Nov 24, 2019 at 11:36 AM Mark Thomas wrote: > Tomcat version? > > Operating system? > > Java version? > > Mark > > > On 24/11/2019 09:57, Mladen Adamovi=C4=87 wrote: > > I couldn't find the explanation of this in other threads, I've tried to > > search the archive. > > > > I have a high load average on a server and the reason for that is kerne= l > > function futex_wait invoked by java thread. > > > > By doing jstack, I see a lot of BLOCKED threads like these: > > Thread 1725: (state =3D BLOCKED) > > - sun.misc.Unsafe.park(boolean, long) @bci=3D0 (Compiled frame; > information > > may be imprecise) > > - java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, > long) > > @bci=3D20, line=3D215 (Compiled frame) > > - > > > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awa= itNanos(long) > > @bci=3D78, line=3D2078 (Compiled frame) > > - java.util.concurrent.LinkedBlockingQueue.poll(long, > > java.util.concurrent.TimeUnit) @bci=3D62, line=3D467 (Compiled frame) > > - org.apache.tomcat.util.threads.TaskQueue.poll(long, > > java.util.concurrent.TimeUnit) @bci=3D3, line=3D85 (Compiled frame) > > - org.apache.tomcat.util.threads.TaskQueue.poll(long, > > java.util.concurrent.TimeUnit) @bci=3D3, line=3D31 (Compiled frame) > > - java.util.concurrent.ThreadPoolExecutor.getTask() @bci=3D134, line= =3D1066 > > (Compiled frame) > > - > > > java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.Th= readPoolExecutor$Worker) > > @bci=3D26, line=3D1127 (Compiled frame) > > - java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=3D5, line= =3D617 > > (Compiled frame) > > - org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run() > @bci=3D4, > > line=3D61 (Compiled frame) > > - java.lang.Thread.run() @bci=3D11, line=3D745 (Compiled frame) > > > > > > > > What does this > > org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run() actual= ly > > does when BLOCKED? > > > > Should I perhaps lower some tomcat config values or just forget about > > measuring system resources if the server works? My tomcat is configured > as > > follows: > > > > > > my Tomcat is configured as follows: > > > protocol=3D"org.apache.coyote.http11.Http11AprProtocol" > > SSLCertificateFile=3D"/etc/letsencrypt/live/ > numbeo.com/cert.pem" > > SSLCertificateKeyFile=3D"/etc/letsencrypt/live/ > > numbeo.com/privkey.pem" > > SSLCertificateChainFile=3D"/etc/letsencrypt/live/ > > numbeo.com/chain.pem" > > SSLVerifyClient=3D"optional" > SSLProtocol=3D"TLSv1+TLSv1.1+TLSv1.2" > > connectionTimeout=3D"20000" acceptCount=3D"30000" > > acceptorThreadCount=3D"2" > > compression=3D"on" maxConnections=3D"50000" maxThreads=3D= "500" > > > > > compressableMimeType=3D"text/html,text/xml,text/plain,text/css,text/javas= cript,application/javascript,image/svg+xml,image/svg,image/png,image/jpeg" > > > > useSendfile=3D"false" > > maxHttpHeaderSize=3D"16392" SSLEnabled=3D"true" > > enableLookups=3D"false" > > scheme=3D"https" secure=3D"true" clientAuth=3D"false" > > useBodyEncodingForURI=3D"true" > > URIEncoding=3D"UTF-8" > > /> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --0000000000008014c5059816ccc7--