Windows 相当于 ulimit -n
Windows 中相当于 unix 命令“ulimit -n”的命令是什么?
基本上,我想通过命令提示符设置最大 fd 限制。
What is the windows equivalent of the unix command " ulimit -n" ?
Basically, i want to set the maximum fd limit via command prompt.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不认为当前的 Windows 操作系统对文件描述符的总数有限制,但是 MS 运行时库 (
msvcrt.dll
) 有一个 >每个进程的限制为 2048,尽管据我所知操作系统并未强制执行。据称,只能通过从源代码构建您自己的 MS 运行时库版本来增加它。
I don't believe that current Windows O/S have a limit on the total number of file descriptors, but the MS runtime library (
msvcrt.dll
) has a per process limit of 2048, albeit as far as I know that's not enforced by the O/S.It can allegedly be increased only by building your own version of the MS runtime library from source.
嗯...我之前可能错了 - setmaxstdio (请参阅此处) - 但它是每个进程的,而不是系统范围的。
我可能是错的,但我不认为 Windows 中有设置限制...但除非你能说出这与编程有何关系,否则我预计这个答案很快就会结束。如果您处于“IT 专业”领域(而不是开发领域),那么有一个姊妹网站 serverfault.com - 即将推出,可解答此类问题。
hmm... I may have been wrong before - setmaxstdio (see here) - but it is per-process, not system wide.
I may be wrong, but I didn't think there was a limit to set in Windows...but unless you can say how this relates to programming, I expect this answer will be closed soon.If you are in the "IT Pro" area (rather than development), then there is a sister-site, serverfault.com - coming soon for this type of question.