[SERVER-24020] Increase open file limit on Windows Created: 03/May/16  Updated: 06/Dec/22  Resolved: 27/Jun/16

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Luke Prochazka Assignee: Backlog - Storage Execution Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-17010 Reduce file handle usage in File base... Closed
related to SERVER-62051 Increase file handle limit in Windows... Closed
Assigned Teams:
Storage Execution
Participants:

 Description   

While running a large aggregation query (with at-rest-encryption enabled) on Windows 2012, the query generates an error "errno:24 Too many open files".



 Comments   
Comment by Igor Solodovnikov [ 06/Dec/21 ]

Modern Microsoft documentation allows values up to 8192: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/setmaxstdio?view=msvc-170

Comment by Ian Whalen (Inactive) [ 27/Jun/16 ]

We can not increase the limit of open file handles as was requested in this issue, but we do plan to reduce our number of open files required for sorting operations in aggregation. You can follow along with that work in SERVER-17010.

Comment by Mark Benvenuto [ 03/May/16 ]

The limit on the C api in Windows as already raised to 2048. It cannot be raised any higher. In order to fix this, we will have to move away from the C api and to the Windows API for file operations in Aggregation to fix this problem.

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