While working with the system installed tomcat6, we have to change files in /usr/share/tomcat6/conf to global read/write.
Posted in Lang Code | No Comments »
It is because open file limit is not enough. After change open file limit to 10000, it works fine.
Add a file in /etc/security/limits.d/, say nofile.conf
* soft nofile 1024 * hard nofile 65535
Edit /etc/pam.d/login, adding the line:
session required pam_limits.so
we can change the open limit by:
unlimt -n 10000
show current file limit:
ulimit -n
show all limit:
ulimit -a
show all hard limit:
ulimit -aH