JBoss’s approach for monitoring application descriptor files can cause the “Too many open files” on *nix machines with a low limit of open files per user. The current solution is to increase the number of file handles or to disable JBoss URLDeploymentScanner from
The limit of open files can be verified by
ulimit -a. Increasing of the limit requires root privileges and can be done for the application server via
sudo bash -c 'ulimit -n 8192; sudo -u yourUserName ./appServerStartupScript'. Permanent user configuration is done by editing the
/etc/security/limits.conf and adding the lines
yourUserName hard nofile 8192 and
yourUserName soft nofile 8192 at the end of this file.