FAQ  •  Register  •  Login

High CPU usage with no library content

<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Tue Sep 20, 2016 6:05 pm

High CPU usage with no library content

Found with a previous update the service would end up consuming a large - 80%plus - amount of CPU resources.
I've removed the entire media library config so no files are present, I've uninstalled, rebooted, reinstalled and still the CPU usage goes sky high.
Log file seems to indicate it's looking for playlist changes?

Any pointers where to start?

Thanks in advance
<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Tue Sep 20, 2016 6:41 pm

Re: High CPU usage with no library content

I've set debug mode and will post log file once the services runs away with it self again..
<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Tue Sep 20, 2016 10:57 pm

Re: High CPU usage with no library content

Took 4 hours to run away but the serviio service hit 96% cpu usage.
Attachments
serviio.log
(408.42 KiB) Downloaded 399 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Sep 21, 2016 7:38 am

Re: High CPU usage with no library content

Hmm, nothing suspicious in the log.

Do you see the same when you run via bin/serviio.bat rather than the Windows service? (you'll have to stop the service first)
<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Wed Sep 28, 2016 12:06 am

Re: High CPU usage with no library content

Having not seen it over the last couple of days having launched Serviio via the batch file rather than the service, the Java process has run away with itself and is averaging 90% cpu.
Attachments
serviio.log
(428.4 KiB) Downloaded 390 times
<<

Paul C

DLNA master

Posts: 283

Joined: Wed Feb 17, 2016 3:46 pm

Location: Essex, UK

Post Fri Sep 30, 2016 1:45 pm

Re: High CPU usage with no library content

Had the same CPU usage problem on installing version 1.7 as CPU and disk usage was at maximum. Also had exactly the same problem when installing a previous update release.

It runs on my PC (with slow processor and small memory) for around a day or so before it sorts itself out. My server is on 24/7 anyway.
Seems like it is reindexing the library but a very long time even for that.
I have 8500 audio, 6000 images and 100 video files in my media library for size comparison. I use the Serviio service as I find it works well.
After long patience the high usage sorts itself out and is now working perfectly again with normal CPU usage without further intervention or action.
Serviio Pro v2.3, DBpoweramp & Asset UPnP (R7.4), HP Elitebook, HP Pavilion, Windows 10 Pro, Linn Majik DS/1, NEET AirstreamPro renderer, Naim NAC72/NAP140 (x2), Celestion Ditton 25 and Spendor A5 speakers, WD TV Media Player (x2), Panasonic Blu-ray DMP-BDT360, Panasonic TV, Amazon Fire 7 HDX, Kazoo & BubbleUPnP apps, Qobuz Studio Hi-Res.
<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Fri Sep 30, 2016 2:00 pm

Re: High CPU usage with no library content

Just for comparison my PC is running a 6th gen i5 6600K with 16GB RAM
<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Sat Oct 01, 2016 6:58 am

Re: High CPU usage with no library content

Barely 2 minutes into boot and it's 90+% leaving the entire system unresponsive...
Attachments
serviio.log
(484.89 KiB) Downloaded 397 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Oct 03, 2016 12:42 pm

Re: High CPU usage with no library content

there are some problems with acquiring the IP address to use, check the log file. Did you select a bound IP address in the console? Is that still valid?
<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Mon Oct 03, 2016 1:21 pm

Re: High CPU usage with no library content

I had noticed that in the logs, it was originally trying to bind to a device that's no longer connected, bind settings are currently set to automatically detect, but still get the lockups.

I've just now set an IP reservation to a different address, will see if that makes a difference
<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Mon Oct 03, 2016 10:36 pm

Re: High CPU usage with no library content

Well, the initial attempt at a different IP via dhcp reservation failed, set a static IP at 20:11 and approx 4 hours later the service ran away at 90% + cpu again..
Attachments
serviio.log
(91.4 KiB) Downloaded 380 times
<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Fri Oct 14, 2016 7:28 pm

Re: High CPU usage with no library content

A couple of posts to follow with debug logs timed from 8:40 this morning till 7:20ish this evening.

At some point during this time something happened again to cause the serviio service to consume 96% cpu, it also started this last night and I left it running overnight to see if it would clear but still 90+% at 7.40am
Last edited by Dave400 on Fri Oct 14, 2016 7:38 pm, edited 1 time in total.
<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Fri Oct 14, 2016 7:36 pm

Re: High CPU usage with no library content

2nd post with first 3 logs (in time order)

Note, had to edit these ones removing the date to reduce the file size enough.
Attachments
serviio5.log
08:41 - 09:54
(471.18 KiB) Downloaded 402 times
serviio4.log
09:54 - 11:35
(471.58 KiB) Downloaded 389 times
serviio3.log
11:35 - 13:28
(471.47 KiB) Downloaded 398 times
Last edited by Dave400 on Fri Oct 14, 2016 7:39 pm, edited 1 time in total.
<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Fri Oct 14, 2016 7:38 pm

Re: High CPU usage with no library content

3rd post with the last of the logs - in time order
again had to edit 2 of these to get the file size down, simply removed todays date
Attachments
serviio2.log
13:28 - 15:46
(470.66 KiB) Downloaded 389 times
serviio1.log
15:46 - 18:04
(470.94 KiB) Downloaded 388 times
serviio.log
18:04 - 19:29
(349.3 KiB) Downloaded 383 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Oct 17, 2016 7:57 am

Re: High CPU usage with no library content

Thanks, there is nothing in the logs that looks out of order. That makes me think it's something to do with your system, or in particular how Java / system libraries talk to each other.

If you want to try digging, download VisualVM https://visualvm.github.io/

You will be able to attach to the Serviio process and see used memory, CPU etc. Ypu might be able to figure out which thread is taking all the CPU. You can also take a snapshot (when it's running high) and send that to me to have a look myself.
<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Mon Oct 17, 2016 1:01 pm

Re: High CPU usage with no library content

Hi, thanks for the link, is running, but how do I attach the Serviio process?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Oct 17, 2016 5:59 pm

Re: High CPU usage with no library content

If you're running Serviio on the same PC it should be under Local folder on the left.
<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Mon Oct 17, 2016 7:43 pm

Re: High CPU usage with no library content

Have twigged that VisualVM won't pick it up if it's running as a service so have launched via the batch file as mentioned previously in the thread..

Will report back with results.
<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Mon Oct 17, 2016 11:53 pm

Re: High CPU usage with no library content

Hi Petr

Application snapshot attached, compressed as .apps extension wasn't allowed..
Attachments
application-1476747984234.zip
(100.68 KiB) Downloaded 245 times
<<

Dave400

Serviio newbie

Posts: 16

Joined: Fri Dec 20, 2013 10:00 pm

Post Tue Oct 18, 2016 6:58 am

Re: High CPU usage with no library content

and again overnight, included threaddump this time, heap dump is huge..
Attachments
threaddump-1476773620757.zip
(6.57 KiB) Downloaded 208 times
application-1476773609345.zip
(129.41 KiB) Downloaded 223 times
Next

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot] and 74 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.