[ https://issues.apache.org/jira/browse/HBASE-9393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754912#comment-13754912 ]
Enis Soztutar commented on HBASE-9393: -------------------------------------- We have also observed a similar situation which rendered some of the regionservers unusable because master was not able to open more sockets to the regionserver. {code} $ for i in `cat allnodes`; do echo $i; ssh $i "netstat -to | grep CLOSE_WAIT" ; done horn04 tcp 22 0 horn04.gq1.ygridcore:49853 horn04.gq1.ygridcore:50010 CLOSE_WAIT off (0.00/0/0) tcp 1 0 horn04.gq1.ygridcore:49812 horn04.gq1.ygridcore:50010 CLOSE_WAIT off (0.00/0/0) horn05 tcp 76 0 horn05.gq1.ygridcore:40253 horn05.gq1.ygridcore:50010 CLOSE_WAIT off (0.00/0/0) tcp 1 0 horn05.gq1.ygridcore:39667 horn05.gq1.ygridcore:50010 CLOSE_WAIT off (0.00/0/0) tcp 166 0 horn05.gq1.ygridcore:39919 horn05.gq1.ygridcore:50010 CLOSE_WAIT off (0.00/0/0) tcp 97 0 horn05.gq1.ygridcore:40631 horn05.gq1.ygridcore:50010 CLOSE_WAIT off (0.00/0/0) tcp 5 0 horn05.gq1.ygridcore:40227 horn05.gq1.ygridcore:50010 CLOSE_WAIT off (0.00/0/0) tcp 32 0 horn05.gq1.ygridcore:39707 horn05.gq1.ygridcore:50010 CLOSE_WAIT off (0.00/0/0) {code} I was not able to nail down the root cause at that time though. > Hbase dose not closing a closed socket resulting in many CLOSE_WAIT > -------------------------------------------------------------------- > > Key: HBASE-9393 > URL: https://issues.apache.org/jira/browse/HBASE-9393 > Project: HBase > Issue Type: Bug > Affects Versions: 0.94.2 > Environment: Centos 6.4 - 7 regionservers/datanodes, 8 TB per node, > 7279 regions > Reporter: Avi Zrachya > > HBase dose not close a dead connection with the datanode. > This resulting in over 60K CLOSE_WAIT and at some point HBase can not connect > to the datanode because too many mapped sockets from one host to another on > the same port. > The example below is with low CLOSE_WAIT count because we had to restart > hbase to solve the porblem, later in time it will incease to 60-100K sockets > on CLOSE_WAIT > [root@hd2-region3 ~]# netstat -nap |grep CLOSE_WAIT |grep 21592 |wc -l > 13156 > [root@hd2-region3 ~]# ps -ef |grep 21592 > root 17255 17219 0 12:26 pts/0 00:00:00 grep 21592 > hbase 21592 1 17 Aug29 ? 03:29:06 > /usr/java/jdk1.6.0_26/bin/java -XX:OnOutOfMemoryError=kill -9 %p -Xmx8000m > -ea -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode > -Dhbase.log.dir=/var/log/hbase > -Dhbase.log.file=hbase-hbase-regionserver-hd2-region3.swnet.corp.log ... -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira