Skip to content

JAVA/REST API Stress client system reports sockets on CLOSE_WAIT on java stress program after about 3 hours in netstat #258

@sammefford

Description

@sammefford

The following issue was shared with me by Ajit George:

Ran a JAVA / REST API Stress test with failover on 7.0 nightly (ML Server 7.0-20150210) for more than 3hrs. Some time after this, it was noticed that the rest app server was not handling any new request, though the server itself is very responsive.

There were no new documents being written into the database.

The stress client Java program log in one of the test run reported :
com.sun.jersey.api.client.ClientHandlerException: org.apache.http.NoHttpResponseException: The target server failed to respond
Caused by: org.apache.http.NoHttpResponseException: The target server failed to respond

Looking at the netstat -p JavaClient output on the server where Stress program is being produced a list of 100 CLOSE_WAIT socket connections on port 8011. 8011 is the port for restappserver on the E Node.

Here is a snippet of netstat -p command. Was able to reproduce this on multiple runs.

builder@rh6-intel64-6$ netstat -p 10467
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:21416 localhost:sunrpc TIME_WAIT -
tcp 0 0 localhost:785 localhost:cadview-3d TIME_WAIT -
tcp 0 0 localhost:787 localhost:cadview-3d TIME_WAIT -
tcp 0 0 srv-403k.colo.marklogic:ssh ageorge-z620.marklogi:43084 ESTABLISHED -
tcp 0 0 srv-403k.colo.marklogic:ssh ageorge-z620.marklogi:44150 ESTABLISHED -
tcp 0 0 srv-403k.colo.marklogic:799 homer2.marklogic.com:nfs ESTABLISHED -
tcp 0 0 localhost:11076 localhost:sunrpc TIME_WAIT -
tcp 1 0 srv-403k.colo.marklog:39966 srv-410h.colo.marklogi:8011 CLOSE_WAIT 10467/java
tcp 1 0 srv-403k.colo.marklog:39901 srv-410h.colo.marklogi:8011 CLOSE_WAIT 10467/java
tcp 1 0 srv-403k.colo.marklog:39961 srv-410h.colo.marklogi:8011 CLOSE_WAIT 10467/java
tcp 1 0 srv-403k.colo.marklog:39884 srv-410h.colo.marklogi:8011 CLOSE_WAIT 10467/java

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions