-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Enable a way to limit the max thread pool size (100% cpu in cpptools-srv for days followed by a crash) #10874
Comments
Is this with cpptools or cpptools-srv. You description says cpptools, but the call stack indicates cpptools-srv. While it's using the 100% CPU, can you break into the debugger and provide a call stack of the thread that appears to be doing the work? |
Thank you for your response. We have continued debugging the issue and found out it stems from cpptools creating too many threads, in our case 448 (the number of cores). Is it possible to fix this issue in thread_pool by capping the thread count? for example when an environment variable is set in the user's .bashrc? Thanks T |
Yeah, the thread pool uses hardware_concurrency. |
This is resolved in https://github.com/microsoft/vscode-cpptools/releases/tag/1.16.0. |
Fix is now available in release version 1.16.2. |
Environment
cpp-tools is at 100% cpu for days (reproducable).
Flamegraph attached, it is in strncasecmp_l_sse2 blocking on a futex spin lock.
after a few days it always crashes with this stack:
We can provide a coredump.
Bug Summary and Steps to Reproduce
Reproduces 100% on our development server using Remote SSH.
We cannot reproduce on small VMs.
Please note this server has 448 cores.
We are willing to run experiments to debug.
Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: