phyton.exe - always high CPU usage

Hi!

 

If I start the PlexConnect script with phyton on Windows7, the CPU usage is still at 50% (Dual-Core, so one Core is still at 80-90%). It doesn't matter if PlexServer is running on the same system in the background or not, it's just the PlexConnect script.

 

That's a deal breaker for me, because this triggers the system fan of my miniPC to run like hell.

 

I guess that it's based on some "dirty coding" and a waiting loop.

 

Any hints?

 

Thanks

McD

Well, that would be "dirty coding". I am fully with you on that one.

It's just...

- PlexConnect's main loop - see PlexConnect.py, run(...) - actually extensively uses the system's sleep() command, giving processing time to the OS.

- the underlying processes (DNS, WebServer) spend their time in python utility modules waiting for network activity, which shouldn't use all the processing power, either.

- on my system (OSX), the four python processes idle at 0.0% load.

- you are the first one complaining about such an issue.

Are you sure, this is related to PlexConnect? Which version are you running? Which part of PlexConnect is responsible for the excessive load? Does it also happen, when you disconnect the machine form the network?

Please provide logs...

Windows7 SP1 x64 4GB Core2Duo P8700

Python2.7

PlexConnect... don't know, some files are from 05.07.2013.

Plain Windows, no tools and python.exe plexconnect.py it's just going up to 50% CPU utilization and stays there for all time. But everything (Plex/streaming) is working fine.

As you wrote "Which version", I downloaded the latest version and tested it: problem gone - stays now below <20%.

Thanks, man!