CSP-10415 - Too many open files

Product: Confluence

Environment

Operating System  
Affect Version/s 2.5.3
JVM  
Database  
Application Server  

Error Message

The application is not processing some requests (Apache front-end reports "service not available") due to *too many open files* error.

{noformat}
Caused by: java.io.FileNotFoundException: /nfs/common/confluence/data/index/_36ku.del (Too many open files)
at java.io.RandomAccessFile.open(Native Method)
{noformat}

Symptom

  • indexing failing
  • too many file handles used by the OS

Diagnostics/Test

Root Cause

When Lucene indexes a content in Confluence it uses indexing file handles for a specific content piece. If there is too much content stored, Lucene needs 'many file handles' to proceed with the action.

Solution

Increase FileHandle

JIRA issue CONF-7401

I would recommend for you to do the following:
1. Shut down your server
2. Remove the <confluence-home>/index directory
3. Restart your server
4. Perform manual indexing

Labels