tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier (tomcat) ...@ice-sa.com>
Subject Re: CLOSE_WAIT between Application (Tomcat) and Apache HTTPD
Date Thu, 11 May 2017 15:42:43 GMT
On 11.05.2017 17:32, Adhavan Mathiyalagan wrote:
> Hi,
>
> 8030 is the port where the application is running.

/What/ application ?
Is that a stand-alone application ?

For Tomcat, I cannot say (because it is not clear below what value ${HTTP_PORT} has.
But from your front-end balancer, it looks like it is forwarding to a series of ports, 
none of which are 8030.


And please stop top-posting..


>
> Regards,
> Adhavan.M
>
> On Thu, May 11, 2017 at 8:53 PM, André Warnier (tomcat) <aw@ice-sa.com>
> wrote:
>
>> On 11.05.2017 16:57, Adhavan Mathiyalagan wrote:
>>
>>> Hi Chris,
>>>
>>> *Tomcat Configuration*
>>>
>>> HTTP/1.1  and APR
>>>
>>> <Connector port="${HTTP_PORT}" protocol="HTTP/1.1"
>>>
>>>                  connectionTimeout="20000"
>>>
>>>                  redirectPort="8443"  maxHttpHeaderSize="8192" />
>>>
>>>
>>> <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
>>>
>>>       <Manager pathname=""
>>> className="org.apache.catalina.session.StandardManager"
>>> maxActiveSessions="400"/>
>>>       <!--
>>>       <Manager pathname="" />
>>>       -->
>>>
>>>
>>> *HTTPD Configuration*
>>>
>>>
>>>
>>> ServerTokens OS
>>> ServerRoot "/etc/httpd"
>>>
>>> PidFile run/httpd.pid
>>>
>>> Timeout 60
>>> KeepAlive Off
>>> MaxKeepAliveRequests 100
>>> KeepAliveTimeout 15
>>> <IfModule prefork.c>
>>> StartServers    256
>>> MinSpareServers    100
>>> MaxSpareServers    500
>>> ServerLimit    2000
>>> MaxClients    2000
>>> MaxRequestsPerChild  4000
>>> </IfModule>
>>>
>>> <IfModule worker.c>
>>> StartServers         4
>>> MaxClients         300
>>> MinSpareThreads     25
>>> MaxSpareThreads     75
>>> ThreadsPerChild     25
>>> MaxRequestsPerChild  0
>>> </IfModule>
>>>
>>>
>>>
>>> ServerName *
>>> Timeout 300
>>> ProxyPreserveHost On
>>> ProxyRequests Off
>>> <Proxy balancer://wsiservices>
>>> BalancerMember http://dl360x3799:8011/admx_ecms/view/services retry=60
>>> status=+H route=dl360x3799.8011
>>> BalancerMember http://dl360x3799:8012/admx_ecms/view/services retry=60
>>> status=+H route=dl360x3799.8012
>>> ProxySet stickysession=JSESSIONID
>>> ProxySet lbmethod=byrequests
>>> </Proxy>
>>> 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
>>> <Proxy balancer://wsiinstances>
>>> BalancerMember http://dl360x3806:8035/custcare_cmax/services/ws_cma3
>>> retry=60  route=dl360x3806.8035
>>> BalancerMember http://dl360x3806:8036/custcare_cmax/services/ws_cma3
>>> retry=60  route=dl360x3806.8036
>>> ProxySet stickysession=JSESSIONID
>>> ProxySet lbmethod=byrequests
>>> </Proxy>
>>> 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
>>> <Proxy balancer://admxcluster>
>>> BalancerMember http://dl360x3799:8011/admx_ecms retry=60 status=+H
>>> route=dl360x3799.8011
>>> BalancerMember http://dl360x3799:8012/admx_ecms retry=60 status=+H
>>> route=dl360x3799.8012
>>> ProxySet stickysession=JSESSIONID
>>> ProxySet lbmethod=byrequests
>>> </Proxy>
>>> ProxyPass /admx_ecms balancer://admxcluster
>>> ProxyPassReverse /admx_ecms balancer://admxcluster
>>> <Proxy balancer://cmaxcluster>
>>> BalancerMember http://dl360x3799:8021/custcare_cmax retry=60 status=+H
>>> route=dl360x3799.8021
>>> BalancerMember http://dl360x3799:8022/custcare_cmax retry=60 status=+H
>>> route=dl360x3799.8022
>>> BalancerMember http://dl360x3806:8035/custcare_cmax retry=60
>>> route=dl360x3806.8035
>>> BalancerMember http://dl360x3806:8036/custcare_cmax retry=60
>>> route=dl360x3806.8036
>>> ProxySet stickysession=JSESSIONID
>>> ProxySet lbmethod=byrequests
>>> </Proxy>
>>> ProxyPass /custcare_cmax balancer://cmaxcluster
>>> ProxyPassReverse /custcare_cmax balancer://cmaxcluster
>>> <Proxy balancer://mxcluster>
>>> BalancerMember http://dl360x3805:8089/mx route=dl360x3806.8089
>>> ProxySet stickysession=JSESSIONID
>>> ProxySet lbmethod=byrequests
>>> </Proxy>
>>> ProxyPass /mx balancer://mxcluster
>>> ProxyPassReverse /mx balancer://mxcluster
>>> <Location /ecmsbm>
>>> SetHandler balancer-manager
>>> </Location>
>>> <Location /ecms-server-status>
>>> SetHandler server-status
>>> </Location>
>>> 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=
>>>> =YwUt
>>>> -----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
>>
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message