question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:25 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
smaddox-sfcommented, Oct 22, 2021

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!

3reactions
lcamposcommented, Feb 2, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found