icodesign Posted August 18, 2021 Share Posted August 18, 2021 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. Link to comment
OmgImAlexis Posted August 19, 2021 Share Posted August 19, 2021 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 ? Link to comment
icodesign Posted August 19, 2021 Author Share Posted August 19, 2021 Thanks for replying. The plugin seems to be up-to-date and attached diagnostics.zip. Link to comment
OmgImAlexis Posted August 19, 2021 Share Posted August 19, 2021 Thank you. In a terminal on that server can you run "unraid-api restart" and just see if that makes any difference. Link to comment
ljm42 Posted August 19, 2021 Share Posted August 19, 2021 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. Link to comment
icodesign Posted August 19, 2021 Author Share Posted August 19, 2021 (edited) 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, 2021 by icodesign Link to comment
der.max Posted September 22, 2021 Share Posted September 22, 2021 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 Link to comment
OmgImAlexis Posted September 22, 2021 Share Posted September 22, 2021 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. Link to comment
der.max Posted September 22, 2021 Share Posted September 22, 2021 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 Link to comment
der.max Posted September 22, 2021 Share Posted September 22, 2021 (edited) 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, 2021 by der.max Link to comment
icodesign Posted September 22, 2021 Author Share Posted September 22, 2021 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... Link to comment
der.max Posted September 22, 2021 Share Posted September 22, 2021 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 Link to comment
Gico Posted September 27, 2021 Share Posted September 27, 2021 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 Link to comment
Recommended Posts