title: "Too many open files" when executing gatling on Mac
body: <p>When executing gatling (load test tools) from shell on Mac iOS (El Capitan) on my Macbook Pro 15 ' (16 Giga of RAM, 4 physical cores),   i've the error "Too many open files".</p>
  
  <p>I spend days to fix this problem, without any success :</p>
  
  <ul>
  <li><p>I created a file in /Library/LaunchDaemons/limit.maxfiles.plist  with a XML file content copied from the web, no result.</p></li>
  <li><p>sudo ulimit -n 15000 doesn't work.</p></li>
  <li><p>I created a file /etc/sysctl.conf with the following content </p></li>
  </ul>
  
  <blockquote>
    <p>kern.maxfiles=20480<br>
    kern.maxfilesperproc=20480</p>
  </blockquote>
  
  <ul>
  <li>I tried the command "sudo launchctl limit maxfiles 20480 20480" without any result.</li>
  </ul>
  
  <p>I think that the xml file in "/Library/LaunchDaemons/" seem have some effect, because when i change the value of the maxfiles, the command "sudo launchctl limit" display to me the value i entered in the XML file, and when calling "ulimit -n" with some value, it accept every values less than this value, but when i call "ulimit -n", the result is everytime the same "4096".</p>
  
  <p>I saw that in Java, the limit is 10240, so i tried the VM option (-XX:-MaxFDLimit) without any effect.</p>
  
  <p>On strange thing, when i executed Gatling from Intellij (IDE), i ca go until 10 200 sockets. The same thing, give differents effects, even after executing all commands in all combinaisons (ulimit, sysctl, launchctl, ...).</p>
  
  <p>Best regards</p>