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

node js script exits when input is large #28319

Closed
ayrat555 opened this issue Jun 20, 2019 · 2 comments
Closed

node js script exits when input is large #28319

ayrat555 opened this issue Jun 20, 2019 · 2 comments
Labels
linux Issues and PRs related to the Linux platform. question Issues that look for answers.

Comments

@ayrat555
Copy link

ayrat555 commented Jun 20, 2019

node v11.6.0
Linux 4.15.0-45-generic #48~16.04.1-Ubuntu SMP Tue Jan 29 18:03:48 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

I have a node js script with custom arguments. When I pass a string argument with size larger than 170_000 node js returns an empty string with exit status 7. The script is not even started

system limit

getconf ARG_MAX      
2097152
@mscdex
Copy link
Contributor

mscdex commented Jun 20, 2019

getconf ARG_MAX does not tell the whole story. See this answer on StackOverflow for more details. In short, the limit is lower than that, more like 128k.

@bnoordhuis
Copy link
Member

See #9137 (comment) for a related report. It's a kernel limitation and as such not under our control. I'll close this out.

@bnoordhuis bnoordhuis added linux Issues and PRs related to the Linux platform. question Issues that look for answers. labels Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linux Issues and PRs related to the Linux platform. question Issues that look for answers.
Projects
None yet
Development

No branches or pull requests

3 participants