-
-
Notifications
You must be signed in to change notification settings - Fork 440
Massive CPU usage, slow start #2238
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
Comments
Hi @dronus. Thanks for your report.
Please provide the text of the output printed to the terminal in a comment here on the GitHub issue. If the quantity exceeds the maximum limit of text for a comment, you can save it to a |
Hello, same issue here (Ubuntu 22.04, Arduino IDE 2.2.1). Stopping the Language Server solved my problem, see here. Apparently slow startup and heavy CPU load had been an issue in IDE 2.0.0, see here. Back then the issue was eventually closed as "solved". So I guess it either was re-introduced again with newer IDE version - or it hadn't been solved for Linux/Ubuntu...? For now I can live without Language Server |
@gicking - Just curious, can you say how much RAM and what sort of storage device (rotating hard drive, SATA SSD, NVME SSD) your computer has? I definitely do not see this problem with IDE 2.2.1 running on my Ubuntu 22.04 desktop. But I'm using 96GB RAM and Intel 905P (the lowest latency NVME on today's market). Maybe the problem is related to RAM and swapping? Or maybe it's storage related, requiring more I/O ops per second than higher latency storage can provide? Or it could be something completely unrelated to hardware. Just blind guessing, but knowing what sort of hardware you're running could help shine some light on the situation. |
@PaulStoffregen - I have the following setup:
Attached please find a screenshot of the task manager during indexing. As you can see swapping is not active. Actually I don't believe it's an issue of my hardware, as I didn't have that issue with older versions of the Arduino IDE. |
I feel like there is definitely an LSP problem somewhere. Any amount of typing induces max fan ramp on my system that persists until typing stops. Otherwise the IDE seems stable and loads up quickly. (Gentoo Linux) |
Describe the problem
On Ubuntu 22.04, the IDE version 2.2.1 does start very slowly and continues to use a massive amount of CPU even when idling for quite some while.
--renderer
command line option. This loads at minimum a single core for at least 1.5 minutes.To reproduce
Start the IDE 2.2.1 from the .zip release with a simple project (Arduino 8-bit, eg blink example) opened at the last run. Run from terminal to see output.
Expected behavior
IDE starting up in a sane amount of time and use no or a miniscule amount of CPU on idling.
Arduino IDE version
2.2.1
Operating system
Linux
Operating system version
Ubuntu 22.04
Additional context
Problems are there since first 2.x release, and never really got better.
Related
Issue checklist
The text was updated successfully, but these errors were encountered: