FAQ  •  Register  •  Login

ServiioService.exe (32bit) using 70-100% cpu

<<

tuhsheen

Serviio newbie

Posts: 10

Joined: Sat Sep 24, 2016 2:40 pm

Post Sat Sep 24, 2016 3:01 pm

ServiioService.exe (32bit) using 70-100% cpu

Hello

Let me start with saying that I have been puzzled with this problem for a while now. I have tried searching google + the serviio support forums, tried the listed solutions but without any luck so I decided to make a topic myself with as much info as possible.

The problem
ServiioService.exe will sometimes start using loads of cpu power, more than a normal amount. The only way to make it stop, is to stop the service and restart it again. This sometimes occurs when I have freshly booted the system or just randomly when using the pc.

What I've tried
* I have changed several settings in the serviio console:
-Turning off automatic library refresh
-Turning off search for updates of currently shared files
-Turning off all the metadata settings
-Enable access for new devices is turned off
-Only the ip address of my Samsung TV is allowed
-The network settings are bound to the IP address of my ethernet connection
-Installed the latest java

* I have tried all the serviio versions from 1.4.1 upto 1.7
* Tried to disable the windows font cache services

My system
i7 6700k
Maximus viii hero
Nvidia GTX 770
16gb ram
Windows 10 64bit

Some extra info
I never had this problem when I was running windows 7 64bit. I can't remember what version I was using then but it was definitely the one with the old GUI.
Currently only my series folder is shared in Serviio. The folder consists of 44 series all correctly named according to the metadata info. I think all in total there are approx 4500 files.

I have included a detailed log in debug mode. I've copy pasted the log entries from the time I noticed the problem again.

I don't understand much of the log to be honest, the only things that I find weird is that different ip's are listed in there. 247 is my ethernet connection, 149 is my samsung tv.
Sometimes 70 and now recently 212 will come up. I don't understand why.

Hoping anyone can help out, thanks in advance.
Let me know if any more info is needed, I'll be keeping a very close eye on this thread.
Attachments
ServiioLog.txt
(71.87 KiB) Downloaded 510 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Sep 26, 2016 7:15 pm

Re: ServiioService.exe (32bit) using 70-100% cpu

The log is fine.

I'm not sure if the OS-based file change notification can take the CPU for a lot of (sub)folders. You could try to swap to the polling library strategy. http://wiki.serviio.org/doku.php?id=lib ... er_scanner
<<

tuhsheen

Serviio newbie

Posts: 10

Joined: Sat Sep 24, 2016 2:40 pm

Post Tue Sep 27, 2016 3:05 pm

Re: ServiioService.exe (32bit) using 70-100% cpu

zip wrote:The log is fine.

I'm not sure if the OS-based file change notification can take the CPU for a lot of (sub)folders. You could try to swap to the polling library strategy. http://wiki.serviio.org/doku.php?id=lib ... er_scanner



So far this solution seems to be working perfect. Serviio is now using 8-12% cpu. When I've checked the log it was busy updating all the metadata information. [MediaFileIndexer] was the entry in the log while doing this.

I'm quite sure when it's done updating all the files, it'll go to using 0-0.5% cpu, like when it's totally idle.


Awesome fix Zip, thank you very much!
<<

tuhsheen

Serviio newbie

Posts: 10

Joined: Sat Sep 24, 2016 2:40 pm

Post Tue Sep 27, 2016 7:36 pm

Re: ServiioService.exe (32bit) using 70-100% cpu

Seems like the problem hasn't been completely fixed. It was ok until now, time of posting.
I'm not sure how long the console has been running at high cpu because I've been away from the pc.

I did notice that it was adding files into the library when I've checked it out, even though I haven't added or updated any files of the shared library.

I've changed the log mode to debug, disabled the options "search for updates of currently shared files" and "keep library automatically updated"

I'll keep this updated.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Sep 28, 2016 6:17 pm

Re: ServiioService.exe (32bit) using 70-100% cpu

You could try to give it some more memory, so that the process doesn't run garbage collection.

Edit ServiioService.exe.vmoptions and change the -Xmx value to a higher number. Then restart the service / or PC.
<<

tuhsheen

Serviio newbie

Posts: 10

Joined: Sat Sep 24, 2016 2:40 pm

Post Wed Sep 28, 2016 8:12 pm

Re: ServiioService.exe (32bit) using 70-100% cpu

zip wrote:You could try to give it some more memory, so that the process doesn't run garbage collection.

Edit ServiioService.exe.vmoptions and change the -Xmx value to a higher number. Then restart the service / or PC.


After changing the "search for updates of currently shared files" option and the "keep library automatically updated" option it still ran on 70-100% cpu.

I've changed the Xmx value from 512 to 1024 to start with. If it doesn't help I might try 2048. Guessing with 16gb ram it shouldn't really be a problem?

I've included another log to this post. I'm quite sure there was high cpu usage around 21.15 - 22.00, hope it helps.

Edit: I also want to add that currently all the metadata settings are on.
Edit2: It's probably normal, but I just noticed that when I start the serviio service I have 2 running processes in the task manager.. One serviioservice.exe 32bit and a second serviioservice.exe 32 bit that I can click open. If I click it open it just says "serviio" underneath it. The first process uses around 70mb of memory, the second one 0-1mb. This is when idle. Anyay just FYI, like I said, quite sure it's normal.

Thanks for your time and effort so far.
Attachments
ServiioLog2.txt
(372.02 KiB) Downloaded 486 times
<<

tuhsheen

Serviio newbie

Posts: 10

Joined: Sat Sep 24, 2016 2:40 pm

Post Sat Oct 01, 2016 9:20 am

Re: ServiioService.exe (32bit) using 70-100% cpu

So far none of the changes are helping.

The service has run over 12 hours on high cpu and it hasn't made any difference.

The log is almost full with the same entries:
2016-10-01 11:09:17,575 DEBUG [SearchManager] Committing search index
2016-10-01 11:09:22,481 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 22066)
2016-10-01 11:09:22,481 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2016-10-01 11:09:27,482 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 22066)
2016-10-01 11:09:27,485 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2016-10-01 11:09:32,480 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 22066)
2016-10-01 11:09:32,480 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2016-10-01 11:09:37,481 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 22066)
2016-10-01 11:09:37,481 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2016-10-01 11:09:42,482 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 22066)
2016-10-01 11:09:42,482 DEBUG [MediaItemDAOImpl] Getting counts of media items by type

Seems like it's indexing but it's not getting anywhere?

Any suggestions?
<<

tuhsheen

Serviio newbie

Posts: 10

Joined: Sat Sep 24, 2016 2:40 pm

Post Sat Oct 01, 2016 9:44 pm

Re: ServiioService.exe (32bit) using 70-100% cpu

Also tried to bump up the xmx value to 2048 instead of 1024 but when I do this I can't even start the serviio service anymore :/
<<

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:31 pm

Re: ServiioService.exe (32bit) using 70-100% cpu

Those log messages are caused by the console checking number of files in the library. What if you turn off the console all together? (you don't need it for streaming)
<<

tuhsheen

Serviio newbie

Posts: 10

Joined: Sat Sep 24, 2016 2:40 pm

Post Tue Oct 04, 2016 7:27 pm

Re: ServiioService.exe (32bit) using 70-100% cpu

zip wrote:Those log messages are caused by the console checking number of files in the library. What if you turn off the console all together? (you don't need it for streaming)


If you mean the actual program where you add folders and change settings and stuff like that, that didn't make a difference. It must of been coincidence that the app was open at the time.
I do need the service running of course, otherwise I can't see Serviio in my TV menu (but you know that :D)

I think this issue will have to remain unsolved for now. I'm 99% sure it's something to do with Windows 10. I was also having issues with some other programs I use on my pc so I swapped back to Windows 7 and I must say I've never been happier.

I was having some random program crashes, the high cpu usage of serviio and now under windows 7 all these problems have vanished. Serviio is hardly using any cpu power and is using more than half the memory it was doing in Windows 10.

If you'd like me to troubleshoot further and maybe pinpoint the problem so you can make a fix I'll install Windows 10 on another drive if you like.


Anyway, I'd like to thank you for your time and efforts. You've got an awesome MediaServer here and I wouldn't want to change it for anything. Keep up the nice work :)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Oct 04, 2016 7:28 pm

Re: ServiioService.exe (32bit) using 70-100% cpu

Thanks for coming back with a feedback.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 55 guests

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