Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

bash: fork: retry: Resource temporarily unavailable #2017

Closed
gaozhidf opened this issue Apr 30, 2020 · 5 comments
Closed

bash: fork: retry: Resource temporarily unavailable #2017

gaozhidf opened this issue Apr 30, 2020 · 5 comments

Comments

@gaozhidf
Copy link

Environment data

  • VSCode Version: 1.43.2
  • Local OS Version: MacOS 10.15.4
    image
  • Remote OS Version: Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux
  • Remote Extension/Connection Type: SSH

Expected behaviour

Actual behaviour

  1. vscode(almost python-language-server) created too much processes in my remote server, and make it resource temporarily unavailable
bash: fork: retry: Resource temporarily unavailable
bash: fork: retry: Resource temporarily unavailable
bash: fork: retry: Resource temporarily unavailable
bash: fork: retry: Resource temporarily unavailable
bash: fork: Resource temporarily unavailable
bash: wait_for: No record of process 2393
bash: fork: retry: Resource temporarily unavailable
bash: fork: retry: Resource temporarily unavailable

image
image

Logs

XXX

Code Snippet / Additional lnformation

XXX
@gaozhidf
Copy link
Author

also open the same issue(microsoft/vscode-remote-release#2774) in vscode-remote-release

@jakebailey
Copy link
Member

You ran ps -eLf, which shows threads. Each of those threads appear to be associated with the same LS process (17042). The language server doesn't fork (except perhaps to call out to python, which on UNIX-y systems is fork/exec).

Can you run ps without the flag that displays threads (or use a tool like htop) to confirm that it's really only a single LS process?

@MikhailArkhipov
Copy link

Does not seem to be LS related. There is no forking in the code. Sounds like VSC remoting issue.

@gaozhidf
Copy link
Author

gaozhidf commented May 11, 2020

Sorry, so late to reply.
@jakebailey it's only one LS process, but too many threads. And it took about 1 hour to make thread count from 2139 to 4904.
image

@jakebailey
Copy link
Member

Similar to #2007, then. Making too many threads. Thanks for checking.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants