I have a Java web application set up to start within a script in /etc/init.d/application The application fails with a "too many open files" error but if I execute the same script from my user it won't have any problem.
I already increased the limits in /etc/security/limits.conf but what I don't understand is why this happens only when the machine starts (I tried many times)
Could this be related with the runlevel where the script is executed?
The OS is Redhat 5.4