title: Why are my ulimit settings ignored in the shell?
body: <p>I have to execute a .jar, and I need to use ulimit before this execution, so I wrote a shell script:</p>
  
  <pre><code>#!/bin/sh
  ulimit -S -c unlimited
  /usr/java/jre1.8.0_91/bin/java -jar /home/update.jar
  </code></pre>
  
  <p>But the ulimit seems to be ignored, because I have this error :</p>
  
  <blockquote>
    <p>java.lang.InternalError: java.io.FileNotFoundException: /usr/java/jre1.8.0_91/lib/ext/localedata.jar (Too many open files)</p>
  </blockquote>