title: How to increase maximum open file limit in Red Hat Enterprise Linux 5?
body: <p>As the title says.</p>
  
  <p>I've found this question:
  <a href="https://stackoverflow.com/questions/21515463/how-to-increase-maximum-file-open-limit-ulimit-in-ubuntu">How to increase Neo4j&#39;s maximum file open limit (ulimit) in Ubuntu?</a></p>
  
  <p>But I don't even has this file: /etc/init.d/neo4j-service, I'm guessing it's because I'm using RHEL5, not Debian, as the responder was using.</p>
  
  <p>Then I've added both two lines:</p>
  
  <p>root soft  nofile 40000
  root hard  nofile 40000</p>
  
  <p>into my /etc/security/limits.conf</p>
  
  <p>Then after logging out and logging in again, $ulimit -Sn and $ulimit -Hn still returns 1024,</p>
  
  <p>Also, I don't even has this file:
  /etc/pam.d/common-session under pam.d directory. Should I create this file myself and just one that one line in here? I don't think this should be the way out.</p>
  
  <p>Any ideas please?</p>
  
  <p>Thanks</p>