Plex on DS416Play - should it be this bad?

For several years I ran my Plex server on a little NUC with a cheap 2-bay D-link NAS to store my media, and it was pretty good. Not really much use for transcoding, but browsing the server was pretty snappy and the whole thing was quite reliable. When the NUC and NAS started getting a bit old and wonky last year, I decided to replace them with a NAS that would could both run the Plex server and store my media. I did a bit of research and went for a DS416Play with a couple of 8tb WD Red drives. The reason I chose this was that it had good reviews, wasn’t the cheapest option, had an Intel processor (which seemed important to Plex), and had some mysterious video transcoding hardware which I thought might get supported by Plex at some point. The transcoding thing wasn’t a major consideration as most of my media is in formats I can direct play.

However, I’m starting to feel like this NAS is just not up to the job of running Plex - and I wonder whether my experience is to be expected, or if I’m doing something wrong? Any help or advice would be gratefully received.

I’ve got quite a bit of media, but nothing TOO crazy compared to some others I’ve read about on these forums. Under 2000 movies (split into different libraries by category to try and keep scanning times down), and maybe 7000 TV episodes (again, split into smaller libraries). Along with libraries for music and photos. Maybe 7tb overall.

Plex runs painfully slowly. I’m not talking about transcoding (as mentioned, most of my media is direct-played) - but the server itself. When I load a Plex app (FireTV, Android, iOS) - I’m generally faced with a blank screen, the libraries and content slowly appearing over the space of a minute or so. Often when browsing through Plex web (on the same network as the server), I won’t be able to access the dashboard or libraries at all - instead just getting messages like “There was an unexpected error loading the dashboard” or “There was an unexpected error loading this library.”

When I look at the Plex logs in the DSM Package Center, I see constant messages that seem to relate to database speed. “WARN” messages like “waited one whole second for a busy database”, “Held transaction for too long”, “Took too long to start transaction”, “SLOW QUERY”, etc. “ERROR” messages like “failed to begin transaction”, “database is locked”.

I did some Googling and read that this could be related to corruption in the Plex database, so - after trying all the various Optimise Database tips without success, I completely uninstalled Plex and removed all the Application Support stuff to get rid of the libraries and metadata. I then reinstalled the latest version, and started re-adding my media - but almost immediately (with only one or two movie libraries added,) I’m seeing exactly the same problems.

So … is this to be expected, or is something wrong with my Diskstation or Plex?

In researching this, I found that I bought my 416Play just before the more powerful 418Play was announced (argh!) - but, even so, surely it shouldn’t be this bad?

Thanks in advance for any help or advice you can offer!

Phil.

edit: One more point in case this is relevant: when I look at the Resource Manager in DSM, memory and CPU are never above 50%, while disk, volume and network fluctuate a lot, but tend to run pretty high.

the dual core celeron isn’t crazy powerful but is likely not the bottleneck indexing/etc. Are you still running on the 1GB of ram that unit came with?

  1. Downloading PMS from Package Center gives you the 32 bit version (that’s all Synology offers). You want the 64 bit version directly from Plex (http://plex.tv/downloads)
  2. SLOW QUERY means your database is fragmented. It happens when you add media. If you add to much at one time, it comes to a crawl. The required maintenance is : Hover your mouse over Libraries, expose the ellipsis, click it, click ‘Optimize Database’
  3. Go to Settings - Server - Scheduled Tasks and enable database optimization as part of the butler’s duties :slight_smile:

1GB of ram isn’t much but PMS will run a LOT better once you optimize the DB

@iced98lx said:
the dual core celeron isn’t crazy powerful but is likely not the bottleneck indexing/etc. Are you still running on the 1GB of ram that unit came with?

Hey, thanks for the reply! I’m still running with the factory 1gb. When I was looking into the problem I read it was pretty straight-forward to upgrade the RAM - but whenever I look at the DSM Performance Manager, the memory usage rarely gets anywhere near 50%. I’m adding back in a TV Library right now, and it’s steady at 36-38%. Do you think it might be worth a try?

@ChuckPA said:

  1. Downloading PMS from Package Center gives you the 32 bit version (that’s all Synology offers). You want the 64 bit version directly from Plex (http://plex.tv/downloads)
  2. SLOW QUERY means your database is fragmented. It happens when you add media. If you add to much at one time, it comes to a crawl. The required maintenance is : Hover your mouse over Libraries, expose the ellipsis, click it, click ‘Optimize Database’
  3. Go to Settings - Server - Scheduled Tasks and enable database optimization as part of the butler’s duties :slight_smile:

1GB of ram isn’t much but PMS will run a LOT better once you optimize the DB

Thanks Chuck! I was running the latest version of PMS, but it was upgrading based on the one from Package Center, and looks like it was only 32-bit (“PlexMediaServer-1.11.0.4666-fc63598ba-x86.spk” versus “PlexMediaServer-1.11.0.4666-fc63598ba-x86_64.spk” from the Plex site.) I’ve just installed the “_64” version, so will follow your other suggestions and report back!

Adding/upgrading memory on Synology boxes has gotten a lot easier in recent years. I would go with 2GB at minimum. If you’re going to add it, I would upgrade to 4GB. Linux (what DSM is) will use it and PMS will also benefit. It won’t show in utilization… it will be used for buffering. It helps without impacting negatively should you really need the RAM for other things.

The Celeron J3355 can support up to 8GB.

My best suggestion is make certain you’re getting the correct spec RAM for it (Clock rate and CL-rating). The RAM vendors (Kingston, Corsair, etc) will help you with this. I put 8GB KIngston in my DS1815+. I looked at processor spec (Atom C2538) and bought this https://www.amazon.com/gp/product/B00KQCU3WM/ref=oh_aui_detailpage_o06_s00?ie=UTF8&psc=1 for it. It’s ‘matched pair’ memory. It added that ‘extra little bit’ for 64 bit operations. The Atom C2538 needs every advantage it can get :slight_smile:

Correction on the processor spec I gave you. I misread. You have the DS416play?

Different CPU but it also supports 8GB. Memory module specs will be different.

https://www.synology.com/en-us/knowledgebase/DSM/tutorial/General/What_kind_of_CPU_does_my_NAS_have