Too Many Open Files on Client Side

The Aerospike Knowledge Base has moved to https://support.aerospike.com. Content on https://discuss.aerospike.com is being migrated to either https://support.aerospike.com or https://docs.aerospike.com. Maintenance on articles stored in this repository ceased on December 31st 2022 and this article may be stale. If you have any questions, please do not hesitate to raise a case via https://support.aerospike.com.

Too Many Open Files on Client Side

Problem Description

The following error is returned on Aerospike clients and want to determine if it is the client or server that is running into the open file limit.

018-07-21T07:11:00,516 ERROR - Aeropsike object(net.aerospike.Test) key: Test:711_713, operation : WRITE 
com.aerospike.client.AerospikeException$Connection: Error Code -8: SocketChannel open error: Too many open files
com.aerospike.client.AerospikeException$Connection: Error Code -8: SocketChannel open error: Too many open files 
...

Explanation / Solution

This is a client side error. The error is raised when the client tries to open a new socket file descriptor. Check the file descriptor limits on the machine where the client runs and increase them if necessary, or review the overall sizing of the system (more client hosts may be needed for the throughput, or the cluster may need to be tuned or sized to avoid clients opening too many connections which sometimes are simply a result of compensating for slow transactions).

Keywords

CLIENT FILES DESCRIPTOR LIMIT

Timestamp

07/16/2018