Plex, Mac OS X and the Python instances | arfore dot com

So several months ago I was in Atlanta visiting some friends (Hi, Justin!) and got hooked on his hackintosh Plex box.  Now, I wanted to run it on a Mac Mini, instead of a hackintosh, but the application was great.  Since then I have purchased the Mini and had a blast getting Plex working and tweaked to do what I want.

If any of you out there running Plex have noticed that there seems to be quite a few instances of Python running when you have Plex up, here’s why: each plugin that you have runs under it’s own instance of Python.  Here’s what the development docs have to say:

Each media server plug-in runs in its’ own process, in a separate Python instance. This ensures that plug-ins can’t interfere with each other, or with the operation of the server.

So there you have it.  Essentially, each plug-in is sandboxed from each other as well as PMS.

If you want to see this in action, just shell into (or open up Terminal) when running Plex and execute the following command:

ps -ef | grep Python | grep -v grep | grep "Plug-ins"

You should see one entry for each of the plug-ins that you have installed.