Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

unraid-api causing high CPU usage

Featured Replies

Hey,

 

so I've noticed on multiple occasions that the MyServers plugin will lose connection and then cause a high CPU usage.  

It also spawns a lot of "sh" subprocesses without ever successfully establishing a connection again.

 

 

unraid-api.thumb.png.92ea2ea1ea09ccdeb51df5bbd65c6eec.png

 

unraid-api2.thumb.png.163805268ba10c219eb3b02e259f9eb2.png

 

executing 'unraid-api restart' solves this for at least a day or two. No more spawned 'sh' childs anymore too.  

Should I just restart via a user script every 24 hours as a workaround or is this a more general issue that can be fixed in the plugin code?  

 

All else kept the same, after a restart of unraid-api my load average drops from around 1.60 1.75 1.89 to 0.38 0.76 1.36 after about 10 minutes or so. This is significant CPU load and thus power usage that is completely wasted.   

 

If there are any logs I can provide I'll happily do so. The system log doesn't show any anomalies tho.

 

 

Edited by Thx And Bye

Can I ask which version of the plugin you're on?

  • Author
On 11/16/2021 at 8:08 PM, OmgImAlexis said:

Can I ask which version of the plugin you're on?

 

I'm on version 2021.10.12.1921 currently, so it should be the most recent one. But this issue is present at least for a few versions now.

  • 1 month later...

Any news on this? I see the same issue with the high CPU load on my Unraid Sysem (6.9.2) with MyServers version 2021.10.12.1921. A unraid-api restart helps, but after a day or two high cpu for the unraid-api process is back.

I believe the next update should address this issue. I don’t know exactly when that’ll be though. Sorry. 

  • 3 weeks later...
  • Author
On 12/24/2021 at 1:03 AM, monarc said:

Any news on this?

 

For now I'm running a user script on a daily schedule as a workaround:

#!/bin/bash
/usr/local/bin/unraid-api/unraid-api restart

 

Edited by Thx And Bye

21 minutes ago, Thx And Bye said:

 

For now I'm running a user script on a daily schedule as a workaround:

#!/bin/bash
/usr/local/bin/unraid-api/unraid-api restart

 

Just to check do any of your containers have health checks?

  • Author
3 hours ago, OmgImAlexis said:

Just to check do any of your containers have health checks?

Yes, two of them have. plexinc/pms-docker has it build in and I've created my own that checks that my VPN container is properly connected.

On 1/8/2022 at 11:23 PM, Thx And Bye said:

Yes, two of them have. plexinc/pms-docker has it build in and I've created my own that checks that my VPN container is properly connected.

Okay, is there any chance you could try running the api without those containers or healthchecks and see if you notice the CPU still spiking? If that resolves it then the next plg update should fix this for you.

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.