Apex Extension not loading before it can be activated (high CPU usage)
See original GitHub issue- Issue Type:
Performance
- Extension Name:
salesforcedx-vscode-apex
- Extension Version:
50.7.0
- OS Version:
Windows_NT x64 10.0.18363
- VSCode version:
1.51.1
⚠️ Make sure to attach this file from your home-directory: ⚠️`c:\Users\VRAJEN~1\AppData\Local\Temp\salesforce.salesforcedx-vscode-apex-unresponsive.cpuprofile.txt salesforce.salesforcedx-vscode-apex-unresponsive.cpuprofile.txt salesforce.salesforcedx-vscode-core-unresponsive.cpuprofile.txt
`
Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:25 (8 by maintainers)
Top Results From Across the Web
Sfdx vs code Extension causes high cpu load
It's usually an extension acting up. In the command palette, run this to see all extensions and their startup time:
Read more >What Is 'Apex CPU Time Limit Exceeded' & How to Solve It?
It means that Apex Code, declarative tools or a combination in a transaction, must not exceed a ~10-second limit. The CPU time error...
Read more >CPU Usage - Apex One - Trend Micro
Apex One uses more CPU resource in the process but because CPU consumption is optimal, endpoint performance is not drastically affected. When CPU...
Read more >Troubleshooting Common Issues | Salesforce for VSCode
VS Code uses the Apex Language Server to show outlines of Apex classes and ... into the progress of the language server and...
Read more >Creating an App Extension - Apple Developer
If you see evidence of performance problems, such as an unusual spike in CPU usage, you can use Instruments to profile your extension...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We have taken several steps to better optimize the Apex language server. From our internal testing & benchmarks, we see significant improvement. For large projects running on machines with limited horsepower, you can still see some latency & performance issues. (Documentation forthcoming that should help provide more guidance on what project size is suitable for different machine sizes.) We hope that the improvements have resolved most issues for most users, so I am closing this issue. Please open a new issue with details if you experience further Apex performance issues. Thank you to all who contributed information to help us diagnose the underlying causes!
Hi @jonathanwiesel, we are doing different things to address the different performance issues with webpack being one of the tools being used but not limited to it. We are currently refactoring the extensions in order to cut down on our dependencies. We are also working on making some of those dependencies significantly smaller.
Some of the issues are related to the language servers and not the extensions themselves, so we are currently working on profiling them and testing new changes to make the code more efficient.