Half-closed file descriptor

From: Xue Junchao <profxjc@dont-contact.us>
Date: Fri, 3 Mar 2000 18:12:23 +0800

Hello,

I found my squid server offten reaches out of file descriptor.
Of course, I can change the FD value to increase it.
At the time, I also check "Process Filedescriptor Allocation"
by Cache Manager. There are many half-closed file descriptors
occured from one same IP, please read the following contents
from Cache Manager:

Active file descriptors:
File Type Tout Nread * Nwrite * Remote Address Description
---- ------ ---- -------- -------- --------------------- ------------------------------
... ... ... ...
  26 Socket 1414 202* 434 159.226.185.105.3669 half-closed
  27 Socket 1390 206* 437 159.226.185.105.1445 half-closed
  28 Socket 1386 204* 436 159.226.185.105.1133 half-closed
  29 Socket 0 323* 214 159.226.179.246.1050 Reading next request
  30 Socket 1390 202* 434 159.226.185.105.1405 half-closed
  33 Socket 1439 279* 0 159.226.173.70.1058 half-closed
  34 Socket 1383 204* 435 159.226.185.105.4786 half-closed
  35 Socket 1398 204* 436 159.226.185.105.2127 half-closed
... ... ... ...
  93 Socket 1387 204* 435 159.226.185.105.1205 half-closed
  94 Socket 1402 202* 434 159.226.185.105.2504 half-closed
  95 Socket 1407 204* 435 159.226.185.105.2977 half-closed
... ... ... ...
 446 Socket 1416 204* 435 159.226.185.105.3814 half-closed
 447 Socket 1391 202* 434 159.226.185.105.1501 half-closed
 448 Socket 1418 204* 435 159.226.185.105.4091 half-closed
 449 Socket 1422 202* 434 159.226.185.105.4431 half-closed
 463 Socket 1420 206* 437 159.226.185.105.4221 half-closed
 464 Socket 1376 204* 436 159.226.185.105.4254 half-closed
 470 Socket 1415 206* 437 159.226.185.105.3732 half-closed
 472 Socket 1388 204* 436 159.226.185.105.1228 half-closed
 477 Socket 1376 204* 435 159.226.185.105.4255 half-closed
 479 Socket 1390 202* 433 159.226.185.105.1404 half-closed
 488 Socket 1394 204* 435 159.226.185.105.1780 half-closed
 489 Socket 1375 204* 436 159.226.185.105.4159 half-closed
 490 Socket 1375 204* 435 159.226.185.105.4160 half-closed
 492 Socket 1410 202* 433 159.226.185.105.3271 half-closed
 494 Socket 1408 204* 436 159.226.185.105.3035 half-closed
 497 Socket 1395 204* 436 159.226.185.105.1880 half-closed
 498 Socket 1392 202* 434 159.226.185.105.1614 half-closed
 506 Socket 1412 204* 435 159.226.185.105.3464 half-closed
 507 Socket 1423 202* 433 159.226.185.105.4482 half-closed
 526 Socket 1403 204* 436 159.226.185.105.2587 half-closed
 528 Socket 1413 204* 435 159.226.185.105.3587 half-closed
 538 Socket 1408 202* 434 159.226.185.105.3049 half-closed
 539 Socket 1405 202* 433 159.226.185.105.2828 half-closed
 546 Socket 1415 202* 434 159.226.185.105.3769 half-closed
 547 Socket 1392 204* 436 159.226.185.105.1528 half-closed
 549 Socket 1397 204* 435 159.226.185.105.2069 half-closed
 574 Socket 1411 204* 435 159.226.185.105.3346 half-closed
 577 Socket 1392 204* 435 159.226.185.105.1559 half-closed
 579 Socket 1412 206* 437 159.226.185.105.3508 half-closed
... ... ... ...
 762 Socket 1402 204* 435 159.226.185.105.2529 half-closed
 773 Socket 1419 202* 433 159.226.185.105.4135 half-closed
 775 Socket 1416 202* 433 159.226.185.105.3887 half-closed
 778 Socket 1404 204* 436 159.226.185.105.2709 half-closed
 779 Socket 1418 204* 436 159.226.185.105.4078 half-closed
 782 Socket 1401 202* 434 159.226.185.105.2386 half-closed
... ... ... ...

I think this may be an error or bug. I don't know what this meaning is.
Can we resolve this? This matter decreases the efficiency of squid server,
it uses many file descriptors so that others cannot use them.
159.226.185.105 is one of our clients. Our IP address is from 159.226.171.0 to
159.226.186.255. 159.226.236.0/24 is also our IP address.

Xue Junchao
------------------------------------------------------------------
System Developer & Administrator
Tianjin Scientific & Technical Network Center
URL: http://www.tjst.net http://profxjc.freeservers.com
E-mail: profxjc@tjlink.tisti.ac.cn
BP: 1921312267
TEL: 86-22-23519150
FAX: 86-22-23519296
Addr: No.22, Wu Jiayao Street, Hexi District in Tianjin, China
ZIP: 300074
Received on Fri Mar 03 2000 - 03:34:23 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:51:53 MST