High cpu usage with Serviio Media Browser

Discussion in 'Quality Control' started by offguard, Feb 25, 2014.

  1. offguard

    offguard Beta Tester

    Joined:
    Dec 12, 2013
    Messages:
    44
    Hi,

    Adguard Service using a full core when i try to watch media via Serviio Media Browser over local connection. (i.e. 127.0.0.1 or 192.168.x.x)

    Step 1: Install Serviio (http://download.serviio.org/releases/serviio-1.4-win-setup.exe)
    Step 2: Open Media Browser from serviio console then login. (localhost:23424/mediabrowser/)
    Step 3: Play a video
    Result: Adguard Service goes crazy and using 1 full core.

    Thanks.
     
  2. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    2,874
    How high does it go?

    Thinking about it some, the higher memory usage/spikes might be something we have to live with due to Adguard processing video and other resource-heavy web tasks and applets like Flash and Java. Also I'm not sure how much .NET code is still used in Adguard, if any, but as far as I know .NET applications are known to use larger amounts of resources too. Perhaps avatar has some ideas to reduce memory spikes and overall resource usage but seeing how web browsers also seem to spike in resource usage when visiting resource-heavy sites, I'm not so sure. Still, I'm curious here.

    Resource usage isn't an issue for me since I have ample amounts of RAM and CPU power to spare.
     
  3. rickyoh

    rickyoh Beta Tester

    Joined:
    Feb 3, 2012
    Messages:
    565
    confirmed, though in my case all cores are taxed with AdguardSvc using an average 18% CPU. it seems the only way to return CPU use to normal is to restart Adguards service. also @offguard have you found that watching videos on serviio is slower with Adguard protection enabled ?
     
    Last edited by a moderator: Feb 26, 2014
  4. offguard

    offguard Beta Tester

    Joined:
    Dec 12, 2013
    Messages:
    44
    It uses a full core when video playing (actually freeze/stutter) and drops to half when video closed.

    ssfullcore.png
    sshalfcore.png
     
  5. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,677
    Please try again with new beta-version.

    We won't remove CPU usage at all but it should be less now.
     
  6. offguard

    offguard Beta Tester

    Joined:
    Dec 12, 2013
    Messages:
    44
    I've tried latest beta but I'm usually getting a "303: Failed to load a resource: Unable to load resources: Error #2036" message at first when playing video. If the video plays fine, i can pause/continue without skipping during playback. But the video gets stuck after i skip to another part. With Adguard disabled no problem at loading/skipping.

    Also no high cpu usage while playing.
     
    Last edited: Feb 26, 2014
  7. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    2,874
    That's probably the critical bug they found, hence why they pulled the beta.
     
  8. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,677
    Please try again with the latest beta-version (build 5441).
     
  9. offguard

    offguard Beta Tester

    Joined:
    Dec 12, 2013
    Messages:
    44
    Thanks, its working now with b5441.
     
  10. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,677
    And what with high CPU/Memory usage?
     
  11. offguard

    offguard Beta Tester

    Joined:
    Dec 12, 2013
    Messages:
    44
    CPU usage ~15%
    Memory usage 70-130 MB (avg. 100)

    but AdguardSvc crashed once with an error:
    Code:
    Application: AdguardSvc.exe
    Framework Version: v4.0.30319
    Description: An unhandled exception occurred and the process was terminated.
    Exception Info: System.OutOfMemoryException
    Stack:
       at System.Runtime.Fx+IOCompletionThunk.UnhandledExceptionFrame(UInt32, UInt32, System.Threading.NativeOverlapped*)
       at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
    AdguardSvc_crash01.png

    Adguard 5.9.1063.5441 Beta
     
    Last edited: Mar 2, 2014
  12. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,677
    Wow, this is rare.

    Could you please send us Adguad and Windows logs:
    http://kb.adguard.com/index.php?/Knowledgebase/Article/View/23/10/how-can-i-get-adguard-log-files
    http://kb.adguard.com/index.php?/Knowledgebase/Article/View/27/10/how-can-i-get-windows-log-files
     
  13. offguard

    offguard Beta Tester

    Joined:
    Dec 12, 2013
    Messages:
    44
    Sorry, I don't know why but i deleted Windows logs after my previous post. If you want the rest of the logs i can send them to you.
     
  14. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,677
    I need windows logs for one thing only - to find out precise time of the service crash.