August 18, 20214 yr I notice my unraid server continuously have about 50% CPU load (not sure if it's common) and "unraid-api" is always the top one. Any guidance on what this for and how I can lower the CPU load. See attached screenshot.
August 19, 20214 yr That's our API that's installed when you install the my servers plugin. I'd expect it to be using a lot less CPU usage though. Could you confirm you're on the latest version of the plugin and can I get a copy of your diagnostics.zip ?
August 19, 20214 yr Author Thanks for replying. The plugin seems to be up-to-date and attached diagnostics.zip.
August 19, 20214 yr Thank you. In a terminal on that server can you run "unraid-api restart" and just see if that makes any difference.
August 19, 20214 yr This isn't related to your issue, but I'd recommend going to Settings -> Scheduler -> Mover Settings and disabling "Mover logging". That is only meant to be on if you are troubleshooting issues with mover.
August 19, 20214 yr Author 49 minutes ago, ljm42 said: This isn't related to your issue, but I'd recommend going to Settings -> Scheduler -> Mover Settings and disabling "Mover logging". That is only meant to be on if you are troubleshooting issues with mover. Interesting. I just checked my settings and "Mover logging" is already disabled. 1 hour ago, OmgImAlexis said: Thank you. In a terminal on that server can you run "unraid-api restart" and just see if that makes any difference. Restarting seems to work for now. I need keep monitoring to see if it goes up again. Thank you! Edited August 19, 20214 yr by icodesign
September 22, 20214 yr Hi just had the same issue with Unraid API. The load was at 25 % (~12% by Unraid API). After the restart command the load is just going down again. Any knowledge about this? Regards
September 22, 20214 yr 26 minutes ago, der.max said: Hi just had the same issue with Unraid API. The load was at 25 % (~12% by Unraid API). After the restart command the load is just going down again. Any knowledge about this? Regards Could I please get a copy of your diagnostics.zip? That does look high compared to what I’d expect.
September 22, 20214 yr 2 minutes ago, OmgImAlexis said: Could I please get a copy of your diagnostics.zip? That does look high compared to what I’d expect. I will have a look in parallel. If the load is again high I will not restart the API for some test. diagnostics-20210922-1108.zip
September 22, 20214 yr Just had a look into Grafana. It looks like that is a slow process and some process is just need more resource over the time. You can see the increase here: Edited September 22, 20214 yr by der.max
September 22, 20214 yr Author 9 minutes ago, der.max said: Just had a look into Grafana. It looks like that is a slow process and some process is just need more resource over the time. You can see the increase here: Guess we should add a cron job to restart the process? LOL...
September 22, 20214 yr Just now, icodesign said: Guess we should add a cron job to restart the process? LOL... That was also my idea. But this is just a workaround
September 27, 20214 yr I'm not sure if this is related to the OP issue, but I had an issue with "My Servers" constantly backing up the flash every minute. Flash backup initialization solved that. I kept watching the server, found UNRAID-API taking up CPU resources, and this was in the log. I stop the flash backup and started it again on 14:26 through the GUI, and so far all is OK. Sep 27 11:03:57 Juno flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup.php update Sep 27 11:04:57 Juno flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup.php update Sep 27 11:05:58 Juno flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup.php update Sep 27 11:18:45 Juno dhcpcd[2116]: br0: failed to renew DHCP, rebinding Sep 27 12:51:29 Juno emhttpd: cmd: /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin update unassigned.devices.plg Sep 27 12:51:29 Juno root: plugin: running: anonymous Sep 27 12:51:29 Juno root: plugin: creating: /boot/config/plugins/unassigned.devices/unassigned.devices-2021.09.26.tgz - downloading from URL https://github.com/dlandon/unassigned.devices/raw/master/unassigned.devices-2021.09.26.tgz Sep 27 12:51:30 Juno root: plugin: checking: /boot/config/plugins/unassigned.devices/unassigned.devices-2021.09.26.tgz - MD5 Sep 27 12:51:30 Juno root: plugin: creating: /tmp/start_unassigned_devices - from INLINE content Sep 27 12:51:30 Juno root: plugin: setting: /tmp/start_unassigned_devices - mode to 0770 Sep 27 12:51:30 Juno root: plugin: skipping: /boot/config/plugins/unassigned.devices/unassigned.devices.cfg already exists Sep 27 12:51:30 Juno root: plugin: skipping: /boot/config/plugins/unassigned.devices/samba_mount.cfg already exists Sep 27 12:51:30 Juno root: plugin: skipping: /boot/config/plugins/unassigned.devices/iso_mount.cfg already exists Sep 27 12:51:30 Juno root: plugin: skipping: /tmp/unassigned.devices/smb-settings.conf already exists Sep 27 12:51:30 Juno root: plugin: skipping: /tmp/unassigned.devices/config/smb-extra.conf already exists Sep 27 12:51:30 Juno root: plugin: skipping: /tmp/unassigned.devices/add-smb-extra already exists Sep 27 12:51:30 Juno root: plugin: setting: /tmp/unassigned.devices/add-smb-extra - mode to 0770 Sep 27 12:51:30 Juno root: plugin: skipping: /tmp/unassigned.devices/remove-smb-extra already exists Sep 27 12:51:30 Juno root: plugin: setting: /tmp/unassigned.devices/remove-smb-extra - mode to 0770 Sep 27 12:51:30 Juno root: plugin: running: anonymous Sep 27 14:22:34 Juno unraid-api[10980]: ⚠️ Caught exception: WebSocket is not open: readyState 0 (CONNECTING) Sep 27 14:22:34 Juno unraid-api[10980]: ⚠️ UNRAID API crashed with exit code 1 Sep 27 14:26:36 Juno flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup.php update
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.