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 C7AFB200C63 for ; Thu, 11 May 2017 16:45:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C659B160BC7; Thu, 11 May 2017 14:45:45 +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 E4CDB160BB2 for ; Thu, 11 May 2017 16:45:44 +0200 (CEST) Received: (qmail 20769 invoked by uid 500); 11 May 2017 14:45:43 -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 20758 invoked by uid 99); 11 May 2017 14:45:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 May 2017 14:45:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1364CC184A for ; Thu, 11 May 2017 14:45:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.766 X-Spam-Level: X-Spam-Status: No, score=0.766 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, HTML_OBFUSCATE_10_20=1.162, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id QUlIHDetF9Yu for ; Thu, 11 May 2017 14:45:41 +0000 (UTC) Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C3DFF5F521 for ; Thu, 11 May 2017 14:45:40 +0000 (UTC) Received: by mail-qk0-f171.google.com with SMTP id k74so24252554qke.1 for ; Thu, 11 May 2017 07:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=7fbIBOO+AgxWEVduqcj/8j3Wnqg6AIyqStc9QdHiIwA=; b=YofvLGns3xNIdkJU7k9zH7VJsBsaNhB3Wep3IKbxfZSZWgJdTvo3liAkZx7FHDHnww LidL03CGn0N+l8gI7AMw04QqFVrxxRXBcXYDTXm09hj/zFcKQR05fPKT/uxBqPtoJLpm jo4ozCRj18U2RIEuOMx4jnQw2PHUOVSpKNICW+QKgw5fHBjGdQWywVWJaBfI4vekwzkc 6Iy9vtCfUaTyQPSSmZy1gTps4Ch4V1N9NPWhHPNtzx6/X5ozC5hGoLVGfypi1M9CWmzv MRlkXiHZxoP9woY9oblJ5XqxgZt1X2XA1RbKo9kQedDb4xpNIo6UZWScfMKgZp5ChVbx eiKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=7fbIBOO+AgxWEVduqcj/8j3Wnqg6AIyqStc9QdHiIwA=; b=swqggXo9wFLLZZvFqUHFaGIvzoK4PLxgtghXuEmm8pu95mcKObIQ7D9KC0bumAvhqH KhEq1Au0ewg+tMQeSB5AWht3rQY9aMYDeTsguhF2WzQueNekRhyV4kUJucAQr6bVRyYZ hXtaRpwVhQ7t1U15+NFYgr2uH9o3sSujFXOjKLsAA/Qn7l1sgOELV0T+BO2fuGLMCj3p wJBQ7nMxEw2NTE++fMMnXjTnXJ0CmYfqdcRlV7k6YHJvYxo2kiIARbcUoZ0+57Xj6k/m /DN2fZcjNVl+pTd/37KNVnCyHCkKMTc0vgnZlj87ga64EexhC8pjEb8r/RMb1tIUJW/R btEg== X-Gm-Message-State: AODbwcAqxkZfRwXVk8xBdMSXA0Uk8duyKbTodqQjB6yP9md8f++1hi32 kg2rEP4KJhZEaS5oUMo557K9zMWcMgPC X-Received: by 10.55.24.155 with SMTP id 27mr775066qky.161.1494513940211; Thu, 11 May 2017 07:45:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.38.198 with HTTP; Thu, 11 May 2017 07:45:39 -0700 (PDT) In-Reply-To: <591468F0.6090805@ice-sa.com> References: <4bdcb598-8d2a-39b0-61cb-09a5c8fedd39@christopherschultz.net> <591468F0.6090805@ice-sa.com> From: Adhavan Mathiyalagan Date: Thu, 11 May 2017 20:15:39 +0530 Message-ID: Subject: Re: CLOSE_WAIT between Application (Tomcat) and Apache HTTPD To: Tomcat Users List Content-Type: multipart/alternative; boundary="001a114417b484b3bf054f40a412" archived-at: Thu, 11 May 2017 14:45:46 -0000 --001a114417b484b3bf054f40a412 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Chris, The netstat O/P below for the CLOSE_WAIT connections tcp 509 0 ::ffff:10.61.137.49:8030 ::ffff:10.61.137.47:60903 CLOSE_WAIT tcp 491 0 ::ffff:10.61.137.49:8030 ::ffff:10.61.137.47:24856 CLOSE_WAIT tcp 360 0 ::ffff:10.61.137.49:8030 ::ffff:10.61.137.47:12328 CLOSE_WAIT tcp 511 0 ::ffff:10.61.137.49:8030 ::ffff:10.61.137.47:24710 CLOSE_WAIT tcp 479 0 ::ffff:10.61.137.49:8030 ::ffff:10.61.137.47:33175 CLOSE_WAIT tcp 361 0 ::ffff:10.61.137.49:8030 ::ffff:10.61.137.47:58084 CLOSE_WAIT tcp 531 0 ::ffff:10.61.137.49:8030 ::ffff:10.61.137.47:42030 CLOSE_WAIT tcp 971 0 ::ffff:10.61.137.49:8030 ::ffff:10.61.137.47:17692 CLOSE_WAIT tcp 361 0 ::ffff:10.61.137.49:8030 ::ffff:10.61.137.47:60303 CLOSE_WAIT 10.61.137.49 -> Application IP 10.61.137.47 -> Load balancer IP Regards, Adhavan.M On Thu, May 11, 2017 at 7:06 PM, Andr=C3=A9 Warnier (tomcat) wrote: > On 11.05.2017 15:30, Adhavan Mathiyalagan wrote: > >> Hi Chris, >> >> The connections in the CLOSE_WAIT are owned by the Application /Tomcat >> process. >> > > Can you provide an example output of the "netstat" command that shows suc= h > connections ? (not all, just some) > (copy and paste it right here) > -> > > > >> Regards, >> Adhavan.M >> >> On Thu, May 11, 2017 at 6:53 PM, Christopher Schultz < >> chris@christopherschultz.net> wrote: >> >> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA256 >>> >>> Adhavan, >>> >>> On 5/10/17 12:32 PM, Adhavan Mathiyalagan wrote: >>> >>>> Team, >>>> >>>> Tomcat version : 8.0.18 >>>> >>>> Apache HTTPD version : 2.2 >>>> >>>> >>>> There are lot of CLOSE_WAIT connections being created at the >>>> Application(tomcat) ,when the traffic is routed through the Apache >>>> HTTPD load balancer to the Application running over tomcat >>>> container. This leads to slowness of the port where the >>>> Application is running and eventually the application is not >>>> accessible through that particular PORT. >>>> >>> >>> Please clarify: are the connections in the CLOSE_WAIT state owned by th= e >>> httpd process or the Tomcat process? >>> >>> In case of the traffic directly reaching the Application PORT >>>> without HTTPD (Load balancer) there is no CLOSE_WAIT connections >>>> created and application can handle the load seamlessly. >>>> >>> >>> - -chris >>> -----BEGIN PGP SIGNATURE----- >>> Comment: GPGTools - http://gpgtools.org >>> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ >>> >>> iQIyBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlkUZcoACgkQHPApP6U8 >>> pFgiuA/4uARxnF+2c6E+oAIUVX+j2vb+RBicYKAuO6KW67cXtP5UBBFmR5jlLOyr >>> uz6M8qDB0H89IkEgny3oQeaZYVvDeFokthAwTe3SCrtfsWb0d39EHGUoNfxZQnCZ >>> hjygWvxmmuO84RqNrO0Q1+UNWYlPB0cK3SLFZRmh59zJg+C8FBDG2OAIEpevXw0O >>> yPdnSHq6KwX3kZA3KZWx03YUBwjjTk1TLvfq8vfmMmp96THd4QXqvhI46xOcV/sp >>> KBUrRIQhjTDPsm7EH268ffve0kgcXIkmh7qj2cCl07+CrVn6TbPXSwQEm5j5CjIF >>> toMywVs9szCwT0qRlOaLALQyXdUJnuUwBNjTp+DIPIukeUZ1BqwC/DopTHftzr6u >>> oT7ZWurZBFCZUSCsbfyi6c7FTRs/jqT3eIo2he5Q3AxtZ2CayzC4xgx2vxqrBTkV >>> OEESNhnzH3QdJTFnDDQCLtrr7lHyZ6/4MKDUK9Ax2LjVt63kRdIW31VWs0Y2KqbW >>> OGd9apwNe9FrTEGn7zAw+lXKKmWr/2DMEViawmKUxtoZMQsrW6NPTvlNmKX4zgYM >>> eU0ZHE5d1SMYwfPXzH+w/Cqv+hZMssNfKMZ9rdjPd+rf8xgzL27tvMvg/rjvrRfF >>> kuiNtfFcA34CDfR+bEed2eYAAUMizb+uzPUHhVAZMaR8T8CXGQ=3D=3D >>> =3DnMBw >>> -----END PGP SIGNATURE----- >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: users-help@tomcat.apache.org >>> >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --001a114417b484b3bf054f40a412--