Too many open files exception failing SonarQube 7.2.1 Analysis

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) - SonarQube Community Edition Version 7.2.1 (build 14109),
    SonarQube Scanner for Jenkins 2.6.1

  • what are you trying to achieve - SonarQube analysis happening through Jenkins for some java projects are failing with below error, Need to identify and fix, if it is happening for huge code base.

Caused by: java.lang.IllegalStateException: Failed to write to ‘/opt/app/sonarqube-7.2.1/temp/ce/384354281754340130/2505083469986804733/hashes-446’
Caused by: java.nio.file.FileSystemException: /opt/app/sonarqube-7.2.1/temp/ce/384354281754340130/2505083469986804733/hashes-446: Too many open files

  • what have you tried so far to achieve this - We upgraded to 7.2.1 version and still this issue is not resolved.

Please assist me to fix this issue. Let me know if you need more info on the issue.

Hi. Please see the requirements for Linux servers.

If you’re running on Linux, you must ensure that:

  • vm.max_map_count is greater or equals to 262144
  • fs.file-max is greater or equals to 65536
  • the user running SonarQube can open at least 65536 file descriptors
  • the user running SonarQube can open at least 2048 threads

(there’s more info in the link about how to check and set theses values)

1 Like

Thanks for your response Scott

Sorry for delayed reply from my side.


Please suggest on the above


This strikes me as relevant:



I went through the suggested article seems not relevant to my issue.