Page 1 of 2
High CPU usage with no library content

Posted:
Tue Sep 20, 2016 6:05 pm
by Dave400
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
Re: High CPU usage with no library content

Posted:
Tue Sep 20, 2016 6:41 pm
by Dave400
I've set debug mode and will post log file once the services runs away with it self again..
Re: High CPU usage with no library content

Posted:
Tue Sep 20, 2016 10:57 pm
by Dave400
Took 4 hours to run away but the serviio service hit 96% cpu usage.
Re: High CPU usage with no library content

Posted:
Wed Sep 21, 2016 7:38 am
by zip
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)
Re: High CPU usage with no library content

Posted:
Wed Sep 28, 2016 12:06 am
by Dave400
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.
Re: High CPU usage with no library content

Posted:
Fri Sep 30, 2016 1:45 pm
by Paul C
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.
Re: High CPU usage with no library content

Posted:
Fri Sep 30, 2016 2:00 pm
by Dave400
Just for comparison my PC is running a 6th gen i5 6600K with 16GB RAM
Re: High CPU usage with no library content

Posted:
Sat Oct 01, 2016 6:58 am
by Dave400
Barely 2 minutes into boot and it's 90+% leaving the entire system unresponsive...
Re: High CPU usage with no library content

Posted:
Mon Oct 03, 2016 12:42 pm
by zip
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?
Re: High CPU usage with no library content

Posted:
Mon Oct 03, 2016 1:21 pm
by Dave400
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
Re: High CPU usage with no library content

Posted:
Mon Oct 03, 2016 10:36 pm
by Dave400
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..
Re: High CPU usage with no library content

Posted:
Fri Oct 14, 2016 7:28 pm
by Dave400
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
Re: High CPU usage with no library content

Posted:
Fri Oct 14, 2016 7:36 pm
by Dave400
2nd post with first 3 logs (in time order)
Note, had to edit these ones removing the date to reduce the file size enough.
Re: High CPU usage with no library content

Posted:
Fri Oct 14, 2016 7:38 pm
by Dave400
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
Re: High CPU usage with no library content

Posted:
Mon Oct 17, 2016 7:57 am
by zip
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.
Re: High CPU usage with no library content

Posted:
Mon Oct 17, 2016 1:01 pm
by Dave400
Hi, thanks for the link, is running, but how do I attach the Serviio process?
Re: High CPU usage with no library content

Posted:
Mon Oct 17, 2016 5:59 pm
by zip
If you're running Serviio on the same PC it should be under Local folder on the left.
Re: High CPU usage with no library content

Posted:
Mon Oct 17, 2016 7:43 pm
by Dave400
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.
Re: High CPU usage with no library content

Posted:
Mon Oct 17, 2016 11:53 pm
by Dave400
Hi Petr
Application snapshot attached, compressed as .apps extension wasn't allowed..
Re: High CPU usage with no library content

Posted:
Tue Oct 18, 2016 6:58 am
by Dave400
and again overnight, included threaddump this time, heap dump is huge..