Hi everybody,
I am very new to Arduino development, three days old in fact.
I just wrote my first code for two different projects and I had in a few circumstances more than one sketch open.
I am running IDE 2.0.0-rc9 on a Apple MacbookPro M1 running Monterey 12.3. 8Mo RAM.
I realized that IDE becomes slower and slower as I am writing and testing code during the day. A look at the performance monitor shows that IDE takes more and more CPU ressources over time.
If I quit and restarts IDE it just works fine again... It takes a few hours to be slow but it is always running slower over time.
Hi @papymouzot . Thanks for giving the Arduino IDE 2.0.0 release candidate a try, and for your report.
This issue is being tracked by the Arduino IDE developers here:
opened 08:47PM - 22 Dec 21 UTC
closed 07:02AM - 10 Aug 22 UTC
conclusion: resolved
topic: code
type: imperfection
topic: language server
criticality: high
**Describe the bug**
- High CPU and RAM usage for the IDE process, when working… on a sketch for longer than 30mins.
- Indexing and building never stops after 60+ mins
- Scrolling the editor is extremely slow and choppy after 60+ mins
- Hovering the pointer over variables never brings up additional info about them, after 30+ mins
- (The IDE has never crashed for me though, even after 4+ h usage)
(all the CPU and RAM usages are for the IDE 2.0 process)
1. (Time since IDE launch: 0mins) CPU 0% and RAM about 400MB. Indexing completes in less than 2s.
2. (Time since IDE launch: 30mins) CPU 47% and RAM constantly jumping between 1100->500MB, indexing and building sketch takes longer and longer after even the tiniest edit.
3. (Time since IDE launch: 60mins) CPU jumping between 57-49% and RAM jumping between 2300->1200MB. Memory graph in Task manager looks like a saw blade. Indexing and building never finishes.
4. (Time since IDE launch: 0mins) Saving and restarting the IDE brings the CPU down to 2% and RAM to 500MB.
**To Reproduce**
1. Load up a sketch
2. Edit, verify and upload for at least 30 to 60mins
**Workaround**
Restart the IDE every 30min
**Hardware/Software**
- OS: Windows 10
- IDE: 2.0 nightly 20211219
- CPU: i5-6200U
- Board: Nano clone
**Additional context**
Possibly related issues:
https://github.com/arduino/arduino-ide/issues/431
https://github.com/arduino/arduino-ide/issues/709
If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.
You might be interested in the previous discussion on this forum topic:
I run IDE 2.0.0-rc3 but even in 2.0.0 beta I noticed that the CPU utilization for Arduino related tasks is very high. even when it is doing "nothing" no compile, no upload, ...
[image]
my system configuration:
[image]
I'm happy to tell you that there is work in progress now to improve on this situation:
arduino:main
← arduino:#714-vol2
opened 09:48AM - 26 Jul 22 UTC
### Motivation
The LS is still slow according to users.
### Change descr… iption
- Debounced the connectivity status update.
- Silent the output channel for the Arduino LS.
- Delay the problem markers update with 500ms.
- Do not update the status bar on every `keypress` event.
- Debounced the tab-bar toolbar updates when typing in editor.
- Fixed electron menu contribution binding.
- Aligned the editor widget factory's API to Theia.
- Set the zoom level when the app is ready (Closes https://github.com/arduino/arduino-ide/issues/1244)
- Fixed event listener leak (Closes https://github.com/arduino/arduino-ide/issues/1062)
### Other information
Closes #1244
Closes #1062
Closes #1191
### Reviewer checklist
* [ ] PR addresses a single concern.
* [ ] The PR has no duplicates (please search among the [Pull Requests](https://github.com/arduino/arduino-ide/pulls) before creating one)
* [ ] PR title and description are properly filled.
* [ ] Docs have been added / updated (for bug fixes / features)
system
Closed
January 22, 2023, 10:59am
3
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.