[JAVA-702] java.net.SocketException: Too many open files in Linux Created: 27/Nov/12  Updated: 10/Mar/13  Resolved: 10/Mar/13

Status: Closed
Project: Java Driver
Component/s: Cluster Management
Affects Version/s: 2.9.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Ravi Chiripurapu Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux
Windows



 Comments   
Comment by Jeffrey Yemin [ 27/Nov/12 ]

There's a page in our docs on this for the server: http://www.mongodb.org/display/DOCS/Too+Many+Open+Files. Most of the advice in there should apply to the client as well.

Comment by Ravi Chiripurapu [ 27/Nov/12 ]

We have created two different replica sets on Windows & Linux Environments

In Windows Environment, We are using Physical Boxes
In Linux Environment, we are using VMware Images.

Each setup has six mongodb instances.
One Primary
One Arbiter
Four Secondary

As part of the load test, I have created a Apache JMeter Test.
In the Thread Group of JMeter Test, I have added 100 threads that query the database.

In both the environments we are getting exceptions at a certain point.

Exception in Linux Environment: java.net.SocketException: Too many open files
Exception in Windows Environment: No buffer space available (maximum connections reached)

Generated at Thu Feb 08 08:52:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.