Skip to content
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

wsl2: ulimit: value exceeds hard limit #6564

Closed
thep0y opened this issue Feb 18, 2021 · 3 comments
Closed

wsl2: ulimit: value exceeds hard limit #6564

thep0y opened this issue Feb 18, 2021 · 3 comments

Comments

@thep0y
Copy link

thep0y commented Feb 18, 2021

Environment

Windows build number: 10.0.19042.804
Your Distribution version: Debian 10
Whether the issue is on WSL 2 and/or WSL 1: WSL 2

Steps to reproduce

Increase ulimit:

ulimit -n 65535

Then get the output:

ulimit: value exceeds hard limit

Expected behavior

ulimit -n can only be 1024 and cannot be increased.
Ulimit can be increased in wsl1.
This problem occurred when I switched linux to wsl2.

@therealkenc
Copy link
Collaborator

/dupe #4575. Looks like the hard default was increased on more recent builds. If your hard limit is 1024, it can be increased with prlimit. There is a discussion thread at #6226.

image

@ghost
Copy link

ghost commented Feb 18, 2021

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

@ghost ghost closed this as completed Feb 18, 2021
@ghost ghost added the duplicate label Feb 18, 2021
@qaqRose
Copy link

qaqRose commented Dec 6, 2021

i solve my problem by su username
see #1688

image

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants