I am using supervisord to start my java app. The application is working OK, but my ulimit nofiles is not set. I could do it in one machine, using debian. but there is a problem on the second machine that this configuration is not working. Basically, I start my app with 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 command cat /proc/4171/limits keeps saying:
Max open files 4096 4096 files
Any hint? I already search everywhere at internet.... I could try this way on this question> nohup create new files nohup.out by day