On Linux you might encounter an issue with too many files open at the same time during the building of the maven project or running while running the application server: To fix the issue do the following:
- Edit "/etc/sysctl.conf" as a super user:
sudo gedit /etc/sysctl.conf
- Make sure the below flag is set to 200000 or higher:
#set to 2^18 = 262144
fs.file-max = 262144