PDA

View Full Version : TIME_WAIT and zabbix_agentd - dozens of sockets always open


pyite
23-08-2007, 04:41
This is a serious problem for me, there are a ton of sockets being left open.

Is there any way for zabbix_agent and zabbix_server to keep one socket open and re-use it instead of re-connecting all of the time?

swaterhouse
23-08-2007, 14:21
please do a search this has been discussed many times before.

pyite
23-08-2007, 15:13
Thank you for your kind reply.

I did about an hour's worth of searches, and none ended up with a proper solution; there was an option to set NoTimeWait=1, but that was considered "experimental" and "dangerous". Is there a better answer, or is NoTimeWait the way to go?

Alexei
23-08-2007, 15:51
This is a serious problem for me, there are a ton of sockets being left open.
What exactly is the problem? Does the ton of open sockets hurt your system or something? This is absolutely normal situation for busy WEB, FTP, whatever servers including ZABBIX.

pyite
23-08-2007, 19:11
Thanks again for the reply.

Perhaps I will just get used to it. I was having performance problems and was looking at a lot of netstats.

I am using OpenVZ with about 15 VM's on this box, each one with dozens of sockets open from zabbix. The problem turned out to be on the browser side, though, actually it ended up being a DSL modem that was randomly shutting down sockets. Quite strange.