I run a java application (server-side, third party product) on Solaris (SunOS fixdev 5.6 Generic_105181-19 sun4u sparc SUNW,Ultra-1). The applications listens on a specified port. I observe that even after killing the application, the port remains blocked for ever. The port gets freed in around 5 min if I run the same application SunOS etsdev0 5.6 Generic_105181-21 sun4u sparc SUNW,Ultra-80. The ports are freed instantaneosly on NT.
If I do netstat, I get the following:
I also noted that the last line of netstat (SYN_SENT) appears intermittently.
> netstat -a| grep 8549
86: *.8549 *.* 0 0 0 0 LISTEN
96:fixdev.8549 172.20.17.48.1500 8760 0 8670 0 CLOSE_WAIT
97:fixdev.8549 gsdev.33023 33580 0 0 0 ESTABLISHED
98:fixdev.8549 fixdev.33758 32768 0 32683 0 CLOSE_WAIT
99:fixdev.8549 172.20.17.48.1503 8760 0 8670 0 CLOSE_WAIT
100:fixdev.8549 172.20.17.48.1504 8760 0 8670 0 CLOSE_WAIT
101:fixdev.8549 fixdev.33759 32768 0 32683 0 CLOSE_WAIT
102:fixdev.8549 172.20.17.48.1505 8760 0 8670 0 CLOSE_WAIT
103:fixdev.8549 172.20.17.48.1506 8760 0 8670 0 CLOSE_WAIT
104:fixdev.8549 172.20.17.48.1508 8760 0 8670 0 CLOSE_WAIT
105:fixdev.8549 fixdev.33766 32768 0 32683 0 CLOSE_WAIT
106:fixdev.8549 172.20.17.48.1509 8760 0 8670 0 CLOSE_WAIT
107:fixdev.8549 172.20.17.48.1510 8760 0 8670 0 CLOSE_WAIT
108:fixdev.8549 fixdev.33775 32768 0 32683 0 CLOSE_WAIT
109:fixdev.8549 172.20.17.48.1511 8760 0 8670 0 CLOSE_WAIT
110:fixdev.8549 172.20.17.48.1512 8760 0 8670 0 CLOSE_WAIT
111:fixdev.8549 fixdev.33776 32768 0 32683 0 CLOSE_WAIT
112:fixdev.8549 172.20.17.48.1513 8760 0 8670 0 CLOSE_WAIT
113:fixdev.8549 172.20.17.48.1514 8760 0 8670 0 CLOSE_WAIT
114:fixdev.8549 fixdev.33789 32768 0 32683 0 CLOSE_WAIT
115:fixdev.8549 172.20.17.48.1515 8760 0 8670 0 CLOSE_WAIT
116:fixdev.8549 172.20.17.48.1517 8760 0 8670 0 CLOSE_WAIT
117:fixdev.8549 172.20.17.48.1518 8760 0 8670 0 CLOSE_WAIT
118:fixdev.8549 fixdev.33790 32768 0 32683 0 CLOSE_WAIT
119:fixdev.8549 172.20.17.48.1519 8760 0 8670 0 CLOSE_WAIT
120:fixdev.8549 172.20.17.48.1520 8760 0 8670 0 CLOSE_WAIT
121:fixdev.8549 fixdev.33797 32768 0 32683 0 CLOSE_WAIT
122:fixdev.8549 172.20.17.48.1521 8760 0 8670 0 CLOSE_WAIT
123:fixdev.8549 172.20.17.48.ingreslock 8760 0 8670 0 CLOSE_WAIT
124:fixdev.8549 fixdev.33804 32768 0 32683 0 CLOSE_WAIT
125:fixdev.8549 172.20.17.48.1525 8760 0 8670 0 CLOSE_WAIT
126:fixdev.8549 172.20.17.48.1527 8760 0 8670 0 CLOSE_WAIT
127:fixdev.8549 172.20.17.48.1528 8760 0 8670 0 CLOSE_WAIT
128:fixdev.8549 fixdev.33806 32768 0 32683 0 CLOSE_WAIT
129:fixdev.8549 172.20.17.48.1529 8760 0 8670 0 CLOSE_WAIT
130:fixdev.8549 172.20.17.48.1530 8760 0 8670 0 CLOSE_WAIT
131:fixdev.8549 fixdev.33817 32768 0 32683 0 CLOSE_WAIT
132:fixdev.8549 172.20.17.48.1531 8760 0 8670 0 CLOSE_WAIT
133:fixdev.8549 172.20.17.48.1532 8760 0 8670 0 CLOSE_WAIT
134:fixdev.8549 fixdev.33822 32768 0 32683 0 CLOSE_WAIT
135:fixdev.8549 172.20.17.48.1533 8760 0 8670 0 CLOSE_WAIT
136:fixdev.8549 172.20.17.48.1534 8760 0 8670 0 CLOSE_WAIT
137:fixdev.8549 172.20.17.48.1536 8760 0 8670 0 CLOSE_WAIT
138:fixdev.8549 fixdev.33823 32768 0 32683 0 CLOSE_WAIT
139:fixdev.8549 172.20.17.48.1537 8760 0 8670 0 CLOSE_WAIT
140:fixdev.8549 172.20.17.48.1539 8760 0 8670 0 CLOSE_WAIT
141:fixdev.8549 fixdev.33836 32768 0 32683 0 CLOSE_WAIT
142:fixdev.8549 172.20.17.48.1540 8760 0 8670 0 CLOSE_WAIT
143:fixdev.8549 172.20.17.48.1541 8760 0 8670 0 CLOSE_WAIT
144:fixdev.8549 fixdev.33837 32768 0 32683 0 CLOSE_WAIT
145:fixdev.8549 172.20.17.48.1542 8760 0 8670 0 CLOSE_WAIT
146:fixdev.8549 172.20.17.48.1543 8760 0 8670 0 CLOSE_WAIT
147:fixdev.8549 172.20.17.48.1544 8760 0 8670 0 CLOSE_WAIT
148:fixdev.8549 fixdev.33846 32768 0 32683 0 CLOSE_WAIT
149:fixdev.8549 172.20.17.48.1547 8760 0 8670 0 CLOSE_WAIT
150:fixdev.8549 172.20.17.48.1548 8760 0 8670 0 CLOSE_WAIT
151:fixdev.8549 fixdev.33853 32768 0 32683 0 CLOSE_WAIT
152:fixdev.8549 172.20.17.48.1549 8760 0 8670 0 CLOSE_WAIT
153:fixdev.8549 172.20.17.48.1550 8760 0 8670 0 CLOSE_WAIT
154:fixdev.8549 172.20.17.48.1551 8760 0 8670 0 CLOSE_WAIT
155:fixdev.8549 fixdev.33854 32768 0 32683 0 CLOSE_WAIT
156:fixdev.8549 172.20.17.48.1552 8760 0 8670 0 CLOSE_WAIT
157:fixdev.8549 172.20.17.48.1553 8760 0 8670 0 CLOSE_WAIT
158:fixdev.8549 fixdev.33869 32768 0 32683 0 CLOSE_WAIT
159:fixdev.8549 172.20.17.48.1555 8760 0 8670 0 CLOSE_WAIT
160:fixdev.8549 172.20.17.48.1556 8760 0 8670 0 CLOSE_WAIT
161:fixdev.8549 fixdev.33870 32768 0 32683 0 CLOSE_WAIT
162:fixdev.8549 172.20.17.48.1557 8760 0 8670 0 CLOSE_WAIT
163:fixdev.8549 172.20.17.48.1558 8760 0 8670 0 CLOSE_WAIT
164:fixdev.8549 172.20.17.48.1559 8760 0 8670 0 CLOSE_WAIT
165:fixdev.8549 fixdev.33877 32768 0 32683 0 CLOSE_WAIT
166:fixdev.8549 172.20.17.48.1560 8760 0 8670 0 CLOSE_WAIT
167:fixdev.8549 172.20.17.48.1561 8760 0 8670 0 CLOSE_WAIT
168:fixdev.8549 fixdev.33884 32768 0 32683 0 CLOSE_WAIT
169:fixdev.8549 172.20.17.48.1562 8760 0 8670 0 CLOSE_WAIT
170:fixdev.8549 172.20.17.48.1564 8760 0 8670 0 CLOSE_WAIT
171:fixdev.8549 fixdev.33885 32768 0 32683 0 CLOSE_WAIT
178:fixdev.36337 fixdev.8549 0 0 32768 0 SYN_SENT