Trying to change default open file limit value for spring-boot application (in Debian based system), which is started as init (System V) script, but I have difficulties finding a solution:
- General recommendation is to add
ulimit -n
line to /etc/init.d/. Not possible, since in spring-boot case it's just a symlink to jar file. - spring-boot itself does not provide environment property or any convenient mechanism to do that.
/etc/security/limits.conf
is not a solution either (does not effect daemons started during init)
Any ideas? Thanks