Excerpts from Sisavang SAYAVONG's message of 2017-02-28 00:18:14 -0800:
> Hello,
>
> The output of rpm -qa | grep -i gearman :
> rpm -qa | grep -i gearman
> mod_gearman2-2.1.1-1.el6.x86_64
> gearmand-0.33-2.x86_64
> gearmand-server-0.33-2.x86_64
> gearmand-devel-0.33-2.x86_64
>
That release is now 5 years old:
https://launchpad.net/gearmand/1.0/0.33
It's possible a bug has been fixed that would make it close dead
connections faster.
If nothing else, maybe try 1.0.6, which is 4 years old, but has a fair
amount of bug fixes:
https://launchpad.net/gearmand/1.0/1.0.6
1.1.x are a bit more aggressive, and are available on github:
https://github.com/gearman/gearmand/releases
>
> gearmand has crashed twice and my script catched the list of open files
> while crashing. the gearmand reached the limit of open files (22000) and I
> thought I will find out the worker that opens a lot of connections but I
> didn't.
> In the output, we have a lot of "can't identify protocol", at least 19000
> ...
>
> Maybe I should exec a netstat while gearmand crashes ?
>
netstat -pan should give you the most information to track down the
connections. You'll need that to run as root.
> Thank you,
> Sisa
>
> Le lundi 23 janvier 2017 10:22:27 UTC+1, Алексей Пастухов a écrit :
> >
> > If you use a newest gearmand release with mod-gearman, it could be blamed
> > for the issue.
> > See
> > Mod Gearman supported dependencies
> > <
https://labs.consol.de/nagios/mod-gearman/index.html#_supported_dependencies>
> > "Too many open files" in combination with mod-gearman
> > <
https://github.com/sni/mod_gearman/issues/105#issuecomment-273863998>
> >
> > On Thursday, 19 January 2017 12:08:06 UTC+1, Sisavang SAYAVONG wrote:
> >>
> >> Hello,
> >>
> >> Thank you for your reply. It's not a bad idea to catch which worker
> >> floods the gearmand.
> >> I'm going to write a little script to get the list of open sockets when
> >> gearmand reaches the limit.
> >> Then I will check the log of the mod-gearman that floods.
> >>
> >> Thank you again
> >>
> >> Sisavang
> >>
> >> Le mercredi 18 janvier 2017 11:32:17 UTC+1, Алексей Пастухов a écrit :
> >>>
> >>> Hi Sisavang.
> >>> You are using mod-gearman. There is an an other issue describes
> >>> misbehaviour of gearmand with mod-gearman on github
> >>> <
https://github.com/gearman/gearmand/issues/7>.
> >>> Maybe it's a mod-gearman issue. See the brianlmoon's message from 30
> >>> October 2015 14:12:07 UTC+1, brianlmoon.
> >>> I'll open an issue in mod-gearman github repo
> >>> <
https://github.com/sni/mod_gearman/issues>.