首页 > Linux操作系统 > Linux操作系统 > Linux Maven的安装
ERROR:
One day some builds in your enterprise start to fail with “Too many open files”. Not all of them and it is hard to reproduce. If let untreated, your buildchain will become unstable. That means more time, more errors unrelated to code. In the end, you will face “too many file handles” problem everywhere, nothing will build… Better idea would be to understand the problem and fix it as soon as possible.
Maven2 really holds many file handles. How to know, that’s your case? You can profile the build as described above. If the average number of open file handles remains similar, that’s not a memory leak or code problem, that’s just a feature of maven.
How many file handles can maven hold?
In our really big reactor project it was 300-900 open file handles with average maybe around 450. Rarely, number spiked over 900 handles.
One popular case is during the exec of external program.
add to /etc/security/limits.conf following lines
Restart computer
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25969737/viewspace-1051809/ ,如需转载,请注明出处,否则将追究法律责任。