Multiple instances of PlexScriptHost.exe ! 100% CPU !

As said, after I leave PMS running for a while , it generates 4 Phyton.exe that use up to 100% cpu.
I’ve seen that multiple people seem to have the same issue and I’ve tried their fixes.
While using Process Explorer this is what I got so far:

The said dll has 2 states:
One in which it as 7 lines and always ends up in some Pyhton dll

And other that appears after I refresh a couple times, which is way longer

From what I’ve looked up, this ntdll.dll can be related to drivers/corrupted runtimes.
Still I’m not sure what to next.
PS: I did toggle library scan options and I’ve not reinstalled Plex Media Server yet.

what channels have you installed?

PlexScriptHost.exe is the process that executes each channel, it’s somewhat common for a channel to do something dodgy and cause this.

@trudge said:
what channels have you installed?

PlexScriptHost.exe is the process that executes each channel, it’s somewhat common for a channel to do something dodgy and cause this.

I’ve installed Webtools, Trakt.tv and SubZero Subtitles. I noticed something for the first time though.
I’ve restarted PMS and the Subzero addon only starts after a while, along with the 4 Python.exe.

Some input in case it is relevant:

The only time where we had a looping PlexScriptHost.exe process was when users ran third party product networx a bandwidth monitor program

If the 127.0.0.1 internal connections get closed then we get a loop. This was seen to arise with networx and the loop was reproduced by doing just that. So if you have any third party software that may be killing of 127.0.0.1 back to back connections for the PlexScriptHost.exe process then that would lead to a loop

Other than that - need to look into what plugins are doing

@sa2000 said:
Some input in case it is relevant:

The only time where we had a looping PlexScriptHost.exe process was when users ran third party product networx a bandwidth monitor program

If the 127.0.0.1 internal connections get closed then we get a loop. This was seen to arise with networx and the loop was reproduced by doing just that. So if you have any third party software that may be killing of 127.0.0.1 back to back connections for the PlexScriptHost.exe process then that would lead to a loop

Other than that - need to look into what plugins are doing

I have only considered 3 programs:
Bitdefender Firewall
Glasswire
Wireshark ( which is not even running)

Is there anyway these have that networx embedded or something?

The way I trapped it was capturing the disconnection in ProcMon

But you should be able to see if it is that by using Process Explorer

Select Properties for the process and then the TCP tab and see what state the connections are in
When running normally there would be two back to back connections for 127.0.0.1

Glasswire seems to be similar to networx

See https://www.itechtics.com/4-free-networx-alternatives-real-time-bandwidth-monitoring/

@sa2000 said:
Glasswire seems to be similar to networx

See 4 Free NetWorx Alternatives For Real-time Bandwidth Monitoring

Unistalled glasswired , didnt solve the issue.

@trudge said:
what channels have you installed?

PlexScriptHost.exe is the process that executes each channel, it’s somewhat common for a channel to do something dodgy and cause this.

Any other possible fix?

@sa2000 said:
The way I trapped it was capturing the disconnection in ProcMon

But you should be able to see if it is that by using Process Explorer

Select Properties for the process and then the TCP tab and see what state the connections are in
When running normally there would be two back to back connections for 127.0.0.1

I can see 3 different connections in Proprieties of PlexSxriptHost:

TCP martim-pc:33400 martim-pc:0 LISTENING
TCP martim-pc:33443 martim-pc:0 LISTENING
TCP martim-pc:3180 martim-pc:0 LISTENING

You said I should only have 2?

@mrtm2002 said:

@sa2000 said:
Glasswire seems to be similar to networx

See 4 Free NetWorx Alternatives For Real-time Bandwidth Monitoring

Unistalled glasswired , didnt solve the issue.

Sequence being:
Uninstalled Glasswire
Shutdown Plex Media Server
Kill any residual processes - the update service can remain
Reboot PC
Launches Plex Media Server
Loop happens again?

@mrtm2002 said:

@sa2000 said:
The way I trapped it was capturing the disconnection in ProcMon

But you should be able to see if it is that by using Process Explorer

Select Properties for the process and then the TCP tab and see what state the connections are in
When running normally there would be two back to back connections for 127.0.0.1

I can see 3 different connections in Proprieties of PlexSxriptHost:

TCP martim-pc:33400 martim-pc:0 LISTENING
TCP martim-pc:33443 martim-pc:0 LISTENING
TCP martim-pc:3180 martim-pc:0 LISTENING

You said I should only have 2?

find the process for the com.plexapp.system
If you can find the command line used to launch the process that would identify the bundle - system.bundle

33443/33400 i think is webtools

The view of the tcp ports looked like this for me when i did my testing

Local Address:Port    Remote Address:Port     State
aml-sa-lt:53152         aml-sa-lt:0            LISTENING
aml-sa-lt:53153         aml-sa-lt:53154        ESTABLISHED
aml-sa-lt:53154         aml-sa-lt:53153        ESTABLISHED

The two i mentioned would be the back-to-back ones. Local Address.Port = Remote Address,Port of the other.
We need these 2 back-to-back tcp connections to show as established