OPNsense Forum

English Forums => Hardware and Performance => Topic started by: 9axqe on June 05, 2024, 03:50:35 PM

Title: How to best troubleshoot rare and short CPU spikes
Post by: 9axqe on June 05, 2024, 03:50:35 PM
Since a week, from time to time, once a day or once every two days, it appears opnsense is locking up.

Symptoms are:
* it lasts for 10-20s
* network down – I can't ping outside anymore, I can't ping opnsense anymore
* Home Assistant looses connection to opnsense, when opnsense API comes back, CPU is still very high.

By the time I log into the GUI, CPU is back to normal.

I have a DEC695. What would be the best approach to understand what is happening during this brief moments?
Title: Re: How to best troubleshoot rare and short CPU spikes
Post by: newsense on June 05, 2024, 05:31:51 PM
Keep an SSH session running with top or better yet htop (from mimugmail's repo)

Unsure what CPU that DEC has, but these freezes are likely due to some large updates that may take a bit to process, either Unbound DNSBL or similar from AGH, or aliases. If having many aliases with lists that auto update make sure they don't start at the same time as well
Title: Re: How to best troubleshoot rare and short CPU spikes
Post by: 9axqe on June 13, 2024, 01:27:38 PM
Thanks. After troubleshooting, it appears it's a layer 1 issue before the opnsense router, I'm going to have a lot of fun... =\