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 BBC0C200C63 for ; Thu, 11 May 2017 19:06:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BA42D160BC7; Thu, 11 May 2017 17:06:46 +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 B1BA6160BB3 for ; Thu, 11 May 2017 19:06:45 +0200 (CEST) Received: (qmail 61461 invoked by uid 500); 11 May 2017 17:06:44 -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 61450 invoked by uid 99); 11 May 2017 17:06:44 -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 17:06:44 +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 B058FC1817 for ; Thu, 11 May 2017 17:06:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.381 X-Spam-Level: ** X-Spam-Status: No, score=2.381 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_05_10=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 KQbS0IDEVxeU for ; Thu, 11 May 2017 17:06:40 +0000 (UTC) Received: from mail-qt0-f170.google.com (mail-qt0-f170.google.com [209.85.216.170]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 097365FC8A for ; Thu, 11 May 2017 17:06:40 +0000 (UTC) Received: by mail-qt0-f170.google.com with SMTP id t26so22571770qtg.0 for ; Thu, 11 May 2017 10:06: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=6am/3JzyoTHV6MFoJgkSpX8igGjrz34WRUKGdm5BZKI=; b=HhlG+VguVDFkdFlOQh0rMw6w6yBNO7d2AcRZ0pCYg608/pni4NZOO5Y16BQk962Xih 0m9QdHZMWPMBZ1CoFpklkreDFYnhmN6Q4YK3nhYvGwVefYUZT5Py4C/32zN4pf9E34ab ZhUZEhsFSfeq7g4r5R6lz4BrpODjmxDS1aOo0OuMwdhxcRSblJGqVAg+hohkJvhuIN8q dxfat6UL1dC761RhXvI6ZsWWG5jkEqMi6gspLtRUQrXND6DUoDHAhV6+t8MAVbv3Z0GZ W0ua1efC8Fy6I4DO1cgGz1CU2FG6zJPf0p22L0tx64Si3127ul65b8EqfLGM6WgCrBlM eF7g== 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=6am/3JzyoTHV6MFoJgkSpX8igGjrz34WRUKGdm5BZKI=; b=NdhVUNOa4+ufEvK4AR0RJd5JArOjupFTz9XFCsOLENnrCiT/2Hrbm4vxdCPn6fT/OM o+J0/QgVY5DHq/GI5k4lc83UMY9ArDv7l4zy38fVM17WaUziUy9WU2kceX0guy8O9STZ CeNwzkHUUBCLrFnivjt52zs5kaGvPwTkzYPmjisDtAjvflwtvXHjjeaA4ZG946/FbELu GJd9++jlDr8Uk6C77ye6emvqJAuvcSm+dZLcaWwzMg/SMlEU3qZ+zKtQq8iwXNkeBUPW zrDzu2MA6Gne/s1sGCKLVqq0yzumEmxBZzjEHEvGf+86biJHeeciQ1Y8LBIeZKF/OEZZ +olw== X-Gm-Message-State: AODbwcCF2BxUR3WCks2LlbEKM5dTFDfIx+ZXz08VqtvW0UdqV9TR9/w1 cGuHl1CegF5h5OoSk92/d/Zj38cLb8MD X-Received: by 10.200.50.81 with SMTP id y17mr174925qta.108.1494522399454; Thu, 11 May 2017 10:06:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.38.198 with HTTP; Thu, 11 May 2017 10:06:38 -0700 (PDT) In-Reply-To: References: <4bdcb598-8d2a-39b0-61cb-09a5c8fedd39@christopherschultz.net> <591481D8.30109@ice-sa.com> From: Adhavan Mathiyalagan Date: Thu, 11 May 2017 22:36:38 +0530 Message-ID: Subject: Re: CLOSE_WAIT between Application (Tomcat) and Apache HTTPD To: Tomcat Users List Content-Type: multipart/alternative; boundary=001a113f4c42ba7a57054f429cfb archived-at: Thu, 11 May 2017 17:06:46 -0000 --001a113f4c42ba7a57054f429cfb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, The Application port is configured in the catalina.properties file # String cache configuration. tomcat.util.buf.StringCache.byte.enabled=3Dtrue #tomcat.util.buf.StringCache.char.enabled=3Dtrue #tomcat.util.buf.StringCache.trainThreshold=3D500000 #tomcat.util.buf.StringCache.cacheSize=3D5000 SHUTDOWN_PORT=3D-1 HTTP_PORT=3D8030 JVM_ROUTE=3Ddl360x3805.8030 With regard to the HTTPD configuration , the members are configured in the another file (balancer.conf) which is included in the httpd.conf Include /etc/httpd/conf/balancer.conf BalancerMember http://dl360x3806:8030/custcare_cmax/view/services retry=3D6= 0 route=3Ddl360x3806.8030 Regards, Adhavan.M On Thu, May 11, 2017 at 9:06 PM, Christopher Schultz < chris@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Adhavan, > > On 5/11/17 11:32 AM, Adhavan Mathiyalagan wrote: > > 8030 is the port where the application is running. > > Port 8030 appears nowhere in your configuration. Not in server.xml > (where you used ${HTTP_PORT}, which could plausibly be 8030) and not > in httpd.conf -- where you specify all port numbers for mod_proxy_http > and none of them were port 8030. > > - -chris > > > On Thu, May 11, 2017 at 8:53 PM, Andr=C3=A9 Warnier (tomcat) > > wrote: > > > >> On 11.05.2017 16:57, Adhavan Mathiyalagan wrote: > >> > >>> Hi Chris, > >>> > >>> *Tomcat Configuration* > >>> > >>> HTTP/1.1 and APR > >>> > >>> >>> > >>> connectionTimeout=3D"20000" > >>> > >>> redirectPort=3D"8443" maxHttpHeaderSize=3D"8192" /> > >>> > >>> > >>> ${catalina.base}/conf/web.xml > >>> > >>> > >>> > >>> className=3D"org.apache.catalina.session.StandardManager" > >>> maxActiveSessions=3D"400"/> > >>> > >>> > >>> *HTTPD Configuration* > >>> > >>> > >>> > >>> ServerTokens OS ServerRoot "/etc/httpd" > >>> > >>> PidFile run/httpd.pid > >>> > >>> Timeout 60 KeepAlive Off MaxKeepAliveRequests 100 > >>> KeepAliveTimeout 15 StartServers 256 > >>> MinSpareServers 100 MaxSpareServers 500 ServerLimit > >>> 2000 MaxClients 2000 MaxRequestsPerChild 4000 > >>> > >>> StartServers 4 MaxClients > >>> 300 MinSpareThreads 25 MaxSpareThreads 75 > >>> ThreadsPerChild 25 MaxRequestsPerChild 0 > >>> > >>> > >>> > >>> ServerName * Timeout 300 ProxyPreserveHost On ProxyRequests > >>> Off BalancerMember > >>> http://dl360x3799:8011/admx_ecms/view/services retry=3D60 > >>> status=3D+H route=3Ddl360x3799.8011 BalancerMember > >>> http://dl360x3799:8012/admx_ecms/view/services retry=3D60 > >>> status=3D+H route=3Ddl360x3799.8012 ProxySet > >>> stickysession=3DJSESSIONID ProxySet lbmethod=3Dbyrequests > >>> ProxyPass /custcare_cmax/view/services balancer://wsiservices > >>> ProxyPassReverse /custcare_cmax/view/services > >>> balancer://wsiservices ProxyPass /admx_ecms/view/services > >>> balancer://wsiservices ProxyPassReverse > >>> /admx_ecms/view/services balancer://wsiservices >>> balancer://wsiinstances> BalancerMember > >>> http://dl360x3806:8035/custcare_cmax/services/ws_cma3 retry=3D60 > >>> route=3Ddl360x3806.8035 BalancerMember > >>> http://dl360x3806:8036/custcare_cmax/services/ws_cma3 retry=3D60 > >>> route=3Ddl360x3806.8036 ProxySet stickysession=3DJSESSIONID > >>> ProxySet lbmethod=3Dbyrequests ProxyPass > >>> /custcare_cmax/services/ws_cma3 balancer://wsiinstances > >>> ProxyPassReverse /custcare_cmax/services/ws_cma3 > >>> balancer://wsiinstances ProxyPass /admx_ecms/services/ws_cma3 > >>> balancer://wsiinstances ProxyPassReverse > >>> /admx_ecms/services/ws_cma3 balancer://wsiinstances >>> balancer://admxcluster> BalancerMember > >>> http://dl360x3799:8011/admx_ecms retry=3D60 status=3D+H > >>> route=3Ddl360x3799.8011 BalancerMember > >>> http://dl360x3799:8012/admx_ecms retry=3D60 status=3D+H > >>> route=3Ddl360x3799.8012 ProxySet stickysession=3DJSESSIONID > >>> ProxySet lbmethod=3Dbyrequests ProxyPass /admx_ecms > >>> balancer://admxcluster ProxyPassReverse /admx_ecms > >>> balancer://admxcluster > >>> BalancerMember http://dl360x3799:8021/custcare_cmax retry=3D60 > >>> status=3D+H route=3Ddl360x3799.8021 BalancerMember > >>> http://dl360x3799:8022/custcare_cmax retry=3D60 status=3D+H > >>> route=3Ddl360x3799.8022 BalancerMember > >>> http://dl360x3806:8035/custcare_cmax retry=3D60 > >>> route=3Ddl360x3806.8035 BalancerMember > >>> http://dl360x3806:8036/custcare_cmax retry=3D60 > >>> route=3Ddl360x3806.8036 ProxySet stickysession=3DJSESSIONID > >>> ProxySet lbmethod=3Dbyrequests ProxyPass /custcare_cmax > >>> balancer://cmaxcluster ProxyPassReverse /custcare_cmax > >>> balancer://cmaxcluster > >>> BalancerMember http://dl360x3805:8089/mx route=3Ddl360x3806.8089 > >>> ProxySet stickysession=3DJSESSIONID ProxySet lbmethod=3Dbyrequests > >>> ProxyPass /mx balancer://mxcluster ProxyPassReverse > >>> /mx balancer://mxcluster SetHandler > >>> balancer-manager > >>> SetHandler server-status ExtendedStatus On > >>> TraceEnable Off SetEnv force-proxy-request-1.0 1 SetEnv > >>> proxy-nokeepalive 1 > >>> > >>> > >>> > >> Hi. Your netstat screenshot showed the CLOSE_WAIT connections on > >> port 8030, like : > >> > >> tcp 509 0 ::ffff:10.61.137.49:8030 > >> ::ffff:10.61.137.47:60903 CLOSE_WAIT > >> > >> But I do not see any mention of port 8030 in your configs above. > >> So what is listening there ? ("netstat --tcp -aopn" would show > >> this) > >> > >> > >> > >> On Thu, May 11, 2017 at 7:20 PM, Christopher Schultz < > >>> chris@christopherschultz.net> wrote: > >>> > >>> -----BEGIN PGP SIGNED MESSAGE----- > >>>> Hash: SHA256 > >>>> > >>>> Adhavan, > >>>> > >>>> On 5/11/17 9:30 AM, Adhavan Mathiyalagan wrote: > >>>> > >>>>> The connections in the CLOSE_WAIT are owned by the > >>>>> Application /Tomcat process. > >>>>> > >>>> > >>>> Okay. Can you please post your configuration on both httpd > >>>> and Tomcat sides? If it's not clear from your configuration, > >>>> please tell us which type of connector you are using (e.g. > >>>> AJP/HTTP and BIO/NIO/APR). > >>>> > >>>> - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - > >>>> http://gpgtools.org Comment: Using GnuPG with Thunderbird - > >>>> http://www.enigmail.net/ > >>>> > >>>> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlkUbAoACgkQHPApP6U8 > >>>> > >>>> > pFjWZQ/9EfGcfgvvkM92bIaRBYYh93ET2X7tKP6xQnusKfJ6D0xubfAOU5E+P77c > >>>> BM/3jS1rNyP29zOouHxsGj3h8VzHR4w5ieo6SHHZzkRiOngULSd8hIAbtYdE1UfD > >>>> > >>>> > 4LX8D86KkOZ7HlIxQOQMphP/Lta7KaJ+90FFRmuvEzj3UfYM0JOpzgND/e9609hs > >>>> 6XhpPzmWlSpxdGrnAqoVpMow6F+X1lwolWaZxFCAevQ8gUFqnBVFxfT+zmkwT5mH > >>>> > >>>> > dqk/jPlaAsTUOf4bz4ly8xrXmD3uAldODzRzVpIMCAtPIvkVGWazyIUltF6w5o1X > >>>> Bz4Z8efsc6mKGrfqcTAar/mpbzAdlbkUVusAhWurXfM+NIneAER7cuR8c1DfldOA > >>>> > >>>> > x1L3owirmTIM9+qf+KV9d+bnsdMfEuGnnNEnx2SYXaCGh4+2sZOG4Zbb4oRO5RlM > >>>> b+7emzY+Y4JVnbFYVQD1D/RSUS5V+jX69ewm7hfksRPUJYLLDR8smJ1vbAR4MMHB > >>>> > >>>> > rdqIajl3tAAxCylTQA2hnVfbhu60Iz/Eky4kWATLY0kO5aR7YsXPQFxIQYnkYVZa > >>>> 0o9TjRVJvhoLwSv10RmD1JxEXCXbpr3qeD+zvDK+TJSowCPqu2xnx+DqGkjpiWk6 > >>>> > >>>> > eSHDyxaSJqfuz02HeDXWivhYmRE/iWKSETox5Na8UR2MjOdLnPw=3D > >>>> =3DYwUt -----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 > >> > >> > > > -----BEGIN PGP SIGNATURE----- > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlkUhRUACgkQHPApP6U8 > pFhTxQ/7BgctMYiMwQaSpmo7BoIGXu/k65Trdo8PhLJ1aOXfKiHduUu/4axzd4ll > x72a4clplXJ7ZNyTPxmhISb+YOVWvbJMIdRgNzeeCVJvjdpup1btJ3Mh2F7PWPsh > h74nVvOngxGbsLihe42I1dyGUcDDmj0UUdMtuGp11ewErFLY33JUxQcnizAGYfrf > 1i95vOQM7UVVWOpDWuYMveS1vCtpBn9GRSfnVnMHKvBX5cqhgavwKBJQOFqGPe++ > 9J4fRIXVWgG1YmwqxL4Kg3RX4igsmoQLZgOvFU+8LKwfUEChG+KB86eewf3C0oyd > S2cfMP3vZatYFoq5G8OdIajaTMelkucXR3Gaj5fXuWT9SWFUlyuDlQhWy3f4qLqX > LQ89RHMbnVDk5iymP/Bbf9RPrILq3UgqcgvN4xjweBtsbNBRDYdYGlk0+nw2QAHa > giiTdDdwfz2Js58CxrNIqDgZmpBsItiuTdlbfDyEAEtonMOVNeVAvsf9BusNWZgM > ffCZsiCbPJpQ4JQKMy6umxzJ6JYF162N4pDNHa+u8LeGzCI5hL+dzbMnq9iwW6yN > uaybjPDbbUEpcFmCsA0eG4sAjUw+L4ERKaU+daFus6XZHrdjF+QffzQuHqto+knH > t7JWavcnZau5oOPcCJxeLy6UqbzDbPuPe2ty2x5ZsPCQ9B/vpis=3D > =3DT9cJ > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --001a113f4c42ba7a57054f429cfb--