Supervisord and ulimit for java application

I am using supervisord to run a java application. The application works fine, but my ulimit nofiles are not installed. I could do this on one machine using debian. but on the second machine there is a problem that this configuration does not work. Basically, I run my application using a script:

#!/bin/sh

iscsiJar="/mnt/cache/jscsi/udrive.jar"

ulimit -SHn 32768

# função para iniciar a aplicação
java -XX:MaxHeapFreeRatio=70 -Xmx2048M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=dump.hprof -jar $iscsiJar

But my cat / proc / 4171 / limits command keeps saying:

Max. open files 4096 4096 files

Any hint? I have searched everywhere on the Internet ... I could try about this> nohup to create new files nohup.out by day

+3
source share
2 answers

, Java . #!/bin/bash #!/bin/sh, Linux .

serverfault, .

+2

All Articles