High CPU usage on pfSense router's miniupnpd service caused by Jami install on Linux after resuming from sleep
Bug report form
Describe your environment
Please specify the following:
- OS: Trisquel 10
- Jami version: Astarte - Build ID: 202412200244
- What build you are using: https://dl.jami.net/stable/ubuntu_20.04/
Steps to reproduce
Note: Better the scenario is, better we will be able to reproduce and debug.
-
Can you reproduce the bug: occasionally
-
Steps:
- Install pfSense as the router for the network and enable the UPnP service.
- Install Jami on a PC, sign in, and enable UPnP.
- Put the computer to sleep.
- Resume from sleep.
- SSH into pfSense, start a shell, run 'top' and check for consistent high CPU usage of the miniupnpd process.
- Quit Jami on PC. Watch the CPU usage of miniupnpd drop back down to normal (~1%).
- Start Jami again. Watch for increased CPU usage as Jami connects, then watch it drop back down to normal.
-
Actual result: pfSense's UPnP service jumps to 95%-100% CPU usage and stays there, slowing down the router and network.
-
Expected result: UPnP service should behave normally, increasing its CPU usage to process new requests, but then returning to normal when completed.
Additional information
I suspect this is not exclusive to pfSense. Jami may be overloading other routers as well when running UPnP. Note that this problem seems to happen at random, possibly after long periods of sleep when the UPnP port reservation has expired and needs to be renewed.