PaddyB - Getting very high cpu usage from AMA s...
Getting very high cpu usage from AMA serial connections, was OK recently but this morning Grafana was very slow & some hunting tracked it down to the serial AMA connections. cat /dev/ttyAMA2 seems OK. Any ideas? Messed up the last card backup so can't go back. Loaded 2.14.1 but same. Any ideas??
13 Replies
Any chance the connection gets closed and re-opened a lot? Messages in the log about MaxListeners?
server log seems OK 🤔
Running in a terminal & nothing obvious.
turned off most plugins


that cpu usage isn't completely crazy. Mine runs 40-50%. Which pi are you on?
(and remember that the CPU usage is of just one of the cores)
(hopefully that is still correct 🤣 )
and on second thought, with that throughput number, it is very high
I'm doing 267 deltas/second
which plugins did you leave on?
pretty much everything was turned off. But... there was no "firmware" directory in the boot partition which seems bit odd, trying fresh install now 🤞
clean openplotter install with no updates shows 3% so at least it's not the Pi 😎 Off out but will dig deeper later. And this time must really really write a little bash script to set up a new SD card 😂😂. Will update if i find anything 👍
posting along the way. Managd to get the old card seeming to work fine again with node v18.20.8. Then ran the openplotter signalk update app, now
pi@openplotter:~ $ node -v
v20.5.1
back to high usage. ´60%

will have a look ate different bode versionns & see what happenns
node v20 seems like the culpret. Ran
curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -
sudo apt-get install -y nodejs
so v24.3.0 and much more like it should be 😎

interesting… btw, we don’t officially support v24 yet
Glad to know that it is working though
doh! Meant to install v22. node-red wouldn't run in 24, happy again in v22
oh right!