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
Scott Bender
Scott Bender4mo ago
Any chance the connection gets closed and re-opened a lot? Messages in the log about MaxListeners?
PaddyB
PaddyBOP4mo ago
server log seems OK 🤔 Running in a terminal & nothing obvious.
PaddyB
PaddyBOP4mo ago
turned off most plugins
PaddyB
PaddyBOP4mo ago
No description
PaddyB
PaddyBOP4mo ago
No description
Scott Bender
Scott Bender4mo ago
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?
PaddyB
PaddyBOP4mo ago
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 👍
PaddyB
PaddyBOP4mo ago
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%
No description
PaddyB
PaddyBOP4mo ago
will have a look ate different bode versionns & see what happenns
PaddyB
PaddyBOP4mo ago
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 😎
No description
Scott Bender
Scott Bender4mo ago
interesting… btw, we don’t officially support v24 yet Glad to know that it is working though
PaddyB
PaddyBOP4mo ago
doh! Meant to install v22. node-red wouldn't run in 24, happy again in v22
Scott Bender
Scott Bender4mo ago
oh right!

Did you find this page helpful?