{"id":103,"date":"2017-08-14T00:17:21","date_gmt":"2017-08-14T00:17:21","guid":{"rendered":"http:\/\/www.mrmarkyoung.com\/oracle\/?p=103"},"modified":"2018-06-14T16:31:19","modified_gmt":"2018-06-14T06:31:19","slug":"close-waits","status":"publish","type":"post","link":"http:\/\/www.mrmarkyoung.com\/oracle\/2017\/08\/14\/close-waits\/","title":{"rendered":"Close Waits"},"content":{"rendered":"<p>How to resolve close waits from the OS<br \/>\nLets look at the close waits and see how many and the offending port.<\/p>\n<p>The following will show us the port and IPof the close wait<br \/>\nnetstat -an |grep -i close<\/p>\n<pre class=\"lang:default decoe:true \" >\r\ntcp        1      0 icudbaup02-priv.xxx.:53494 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53447 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53451 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53452 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53454 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53470 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53415 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53418 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53421 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53435 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53436 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53376 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53400 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53119 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53114 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53115 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53112 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53113 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53096 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53095 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53088 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\ntcp        1      0 icudbaup02-priv.xxx.:53085 icudbaup01-priv.xxx.:61020 CLOSE_WAIT\r\n<\/pre>\n<p>The following will show us the offending process (note, this must be done as the root user<\/p>\n<pre class=\"lang:default decode:true \" >sudo lsof -I :53494<\/pre>\n<pre class=\"lang:default decode:true \" >cat \/usr\/local\/grid\/log\/grac2\/cssd\/ocssd.log | egrep -i 'Removal|evict|30000|network HB'<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to resolve close waits from the OS Lets look at the close waits and see how many and the offending port. The following will show us the port and IPof the close wait netstat -an |grep -i close tcp 1 0 icudbaup02-priv.xxx.:53494 icudbaup01-priv.xxx.:61020 CLOSE_WAIT tcp 1 0 icudbaup02-priv.xxx.:53447 icudbaup01-priv.xxx.:61020 CLOSE_WAIT tcp 1 0 icudbaup02-priv.xxx.:53451 &#8230; <a title=\"Close Waits\" class=\"read-more\" href=\"http:\/\/www.mrmarkyoung.com\/oracle\/2017\/08\/14\/close-waits\/\" aria-label=\"Read more about Close Waits\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[64],"class_list":["post-103","post","type-post","status-publish","format-standard","hentry","category-unix","tag-oracle"],"_links":{"self":[{"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/posts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/comments?post=103"}],"version-history":[{"count":5,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":310,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/posts\/103\/revisions\/310"}],"wp:attachment":[{"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}