wso2 / maven-tools

Apache License 2.0
44 stars 61 forks source link

Too many open files issue when using maven-car-plugin: #19

Open NisalaNiroshana opened 6 years ago

NisalaNiroshana commented 6 years ago

Description: It seems that "Too many open files" error occurred when using the maven-car plugin. This can be happened due to unclosed input streams.

Suggested Labels: Bug

OS, DB, other environment details and versions:
java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

Steps to reproduce: Use maven-capp or maven car plugins with around 100-120 files. It will give the above mentioned "too many open files" issue.

ezleyton commented 6 years ago

Any update on this bug? It started happening to me today on a freshly installed ubuntu 18.04, my project was compiling fine in 16.04. The only workaround I found to work is to set ulimit -n 4096 (or any higher value) before running maven.