Hello Minato,

Minato Namikaze <camusen...@hotmail.com> writes:

> socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = -1 EMFILE (Too many 
> open files)
> socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = -1 EMFILE (Too many 
> open files)

thanks for your further investigation.  Can you please copy more lines
above these last ones?


By the way, this command can help you to find the biggest file
descriptor (it is the first solution that came in my mind).

I get 4 open file descriptors.

strace -e open,socket wget -q  -nc -r -l inf --no-remove-listing \
          http://www.website.com 2>&1 \
  | awk '/^.+[0-9]+$/ { if ($NF > max) max = $NF } END {print max}'

Cheers,
Giuseppe

Reply via email to