reverb: High CPU usage
Reverb Version
v1.0.0-beta4
Laravel Version
11.0.8
PHP Version
8.2.17
Description
After a day or so, I’m getting 100% CPU usage on the reverb:start process. If I restart reverb, it goes down to 1% CPU.
It’s currently doing 160 odd users online in presence channel and that’s about it. Had the same problem with this package: https://github.com/beyondcode/laravel-websockets/issues/379
Steps To Reproduce
Have a reverb server running via reverb:start for a day with many presence connections (150+).
About this issue
- Original URL
- State: open
- Created 3 months ago
- Comments: 17 (7 by maintainers)
I’ve set
REVERB_APP_PING_INTERVAL=3600and I’ve restarted reverb. Back to 0-1% CPU and will run the monitoring for the process.Must be something to do with the amount of pings along with the connections subscribe/unsubscribe.
I use it as an online list and it’s included on most pages, so page change will be a disconnect/connect.