LinuxFeature Pack 5 or laterOracle

Troubleshooting: Too many open files error

An exception related to Too many open files occurs with a WebSphere Commerce search file path.

Problem

An exception message similar to the following example occurs:

java.lang.RuntimeException: java.io.FileNotFoundException: 
/opt/WebSphere/CommerceServer70/instances/demo/search/solr/home/MC_10001/en_US/CatalogEntry/unstructured/data/index/_4.fdx (Too many open files)

Solution

To solve this problem, you must increase the file open limitation. For example, run the following command:

ulimit -n `expr 8192 \* 6`