Hi,
We have been running a XMPP server. The clients connect to the server using TCP connection. We have been observing a higher number of file handler usage when compared to total number of sockets consumed. For example, we have 10,000 active TCP connection where as the 40,000 file descriptor usage.
I have also run the pfiles on the pid and found the following,
a) S_IFSOCK : we have 39k of S_IFSOCK allocation
b) No peername: we are observing file handler allocated with out the peername
S_IFSOCK mode:0666 dev:276,0 ino:59589 uid:0 gid:0 size:0
O_RDWR|O_NONBLOCK
SOCK_STREAM
SO_REUSEADDR,SO_SNDBUF(409600),SO_RCVBUF(49152),IP_NEXTHOP(0.192.0.0)
sockname: AF_INET xx.xx.xx.xx port: 5222
xx.xx.xx.xx - Local host ip address
c) Socket name "0.0.0.0":
S_IFSOCK mode:0666 dev:276,0 ino:43441 uid:0 gid:0 size:0
O_RDWR|O_NONBLOCK
SOCK_STREAM
SO_REUSEADDR,SO_SNDBUF(409600),SO_RCVBUF(409600),IP_NEXTHOP(0.64.6.0)
sockname: AF_INET 0.0.0.0 port: 0
Can someone explain the cause for such behavior.
Thanks in advance.
Nirmal