New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open file descriptor limits not updating or being overridden #1576

Open
JKhawaja opened this Issue Jan 7, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@JKhawaja

JKhawaja commented Jan 7, 2017

Windows Version: Microsoft Windows [Version 10.0.14393]

Appending session required pam_limits.so to the /etc/pam.d/common-session and /etc/pam.d/common-session-noninteractive files, and then updating the /etc/security/limits.conf by appending:

*              soft     nofile          35000
*              hard     nofile          35000

and restarting Windows, still does not actually update the ulimit -n value (or ulimit -Hn). It is stuck at 2048 and I am wondering if it can even be changed or if it is being overridden by some process manager, script, or the like?

@stehufntdev

This comment has been minimized.

Show comment
Hide comment
@stehufntdev

stehufntdev Jan 9, 2017

Collaborator

Thanks for reporting the issue. Most of the limits are not currently supported, but we are tracking the work. Please give us feedback for this scenario on uservoice so we can prioritize - https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/category/161892-bash.

Collaborator

stehufntdev commented Jan 9, 2017

Thanks for reporting the issue. Most of the limits are not currently supported, but we are tracking the work. Please give us feedback for this scenario on uservoice so we can prioritize - https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/category/161892-bash.

@stehufntdev stehufntdev added the feature label Jan 9, 2017

@ddumontatibm

This comment has been minimized.

Show comment
Hide comment
@ddumontatibm

ddumontatibm Feb 10, 2017

So I just ran into this today as well.

I found that with those settings, I could do

su - myusername

and for that session the ulimit would be set according to limits.conf

I don't want to have to do that all the time though...

ddumontatibm commented Feb 10, 2017

So I just ran into this today as well.

I found that with those settings, I could do

su - myusername

and for that session the ulimit would be set according to limits.conf

I don't want to have to do that all the time though...

@JKhawaja

This comment has been minimized.

Show comment
Hide comment
@JKhawaja

JKhawaja Feb 11, 2017

Starting a session with su - myusername only allowed me to change ulimit -n if I decreased it less than it's current value (whatever it's current value is set at). I was not able to ever increase the value. So, this must be some sort of bug?

For example, ulimit -n defaults at 2048, but after setting ulimit -n 2000 I am no longer able to change the value to anything greater than 2000.

EDIT: Lol, in fact I can set the ulimit -n lower without using su. Perhaps, I didn't understand what exactly you are doing @ddumontatibm

JKhawaja commented Feb 11, 2017

Starting a session with su - myusername only allowed me to change ulimit -n if I decreased it less than it's current value (whatever it's current value is set at). I was not able to ever increase the value. So, this must be some sort of bug?

For example, ulimit -n defaults at 2048, but after setting ulimit -n 2000 I am no longer able to change the value to anything greater than 2000.

EDIT: Lol, in fact I can set the ulimit -n lower without using su. Perhaps, I didn't understand what exactly you are doing @ddumontatibm

@sunilmut

This comment has been minimized.

Show comment
Hide comment
@sunilmut

sunilmut Mar 2, 2017

Member

@ddumontatibm - Thanks for your post. Can you please describe your scenario that is blocked by this? Also, as per @stehufntdev, please open a user voice ticket if you would like us to prioritize it.

Member

sunilmut commented Mar 2, 2017

@ddumontatibm - Thanks for your post. Can you please describe your scenario that is blocked by this? Also, as per @stehufntdev, please open a user voice ticket if you would like us to prioritize it.

@ddumontatibm

This comment has been minimized.

Show comment
Hide comment
@ddumontatibm

ddumontatibm Mar 2, 2017

@sunilmut Sure.

I'm using bash on windows to try to build a project with node and webpack. There are many file that are opened during that process. Even with my workaround to set limits in conf files and use su, I was unable to complete the build due to file limit.

ddumontatibm commented Mar 2, 2017

@sunilmut Sure.

I'm using bash on windows to try to build a project with node and webpack. There are many file that are opened during that process. Even with my workaround to set limits in conf files and use su, I was unable to complete the build due to file limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment