title: Max number of socket on Linux
body: <p>It seems that the server is limited at ~32720 sockets...
  I have tried every known variable change to raise up this limit.
  But the server stay limited at 32720 opened socket, even if there is still 4Go of free memory and 80% of idle cpu...</p>
  
  <p>Here's the configuration</p>
  
  <pre><code>~# ulimit -a
  core file size          (blocks, -c) 0
  data seg size           (kbytes, -d) unlimited
  scheduling priority             (-e) 0
  file size               (blocks, -f) unlimited
  pending signals                 (-i) 63931
  max locked memory       (kbytes, -l) 64
  max memory size         (kbytes, -m) unlimited
  open files                      (-n) 798621
  pipe size            (512 bytes, -p) 8
  POSIX message queues     (bytes, -q) 819200
  real-time priority              (-r) 0
  stack size              (kbytes, -s) 2048
  cpu time               (seconds, -t) unlimited
  max user processes              (-u) 63931
  virtual memory          (kbytes, -v) unlimited
  file locks                      (-x) unlimited
  
  net.netfilter.nf_conntrack_max = 999999
  net.ipv4.netfilter.ip_conntrack_max = 999999
  net.nf_conntrack_max = 999999
  </code></pre>
  
  <p>Any thoughts ?</p>