Its only been 2 weeks since I last spoke with ChuckPA in this post showing that the database shouldn’t exceed 100MB or so for what i have and the DB is already 1.4G And the jump was within 5 days. This verifies it didn’t just crap the bed a while back. What the heck could possibly be going on? Below is the Debug logs during a database optimization, a bundle clean and a trash removal:
du -h com.plexapp.plugins.library.db*
1.4G com.plexapp.plugins.library.db
153M com.plexapp.plugins.library.db-2018-02-27
1.4G com.plexapp.plugins.library.db-2018-03-02
1.4G com.plexapp.plugins.library.db-2018-03-05
12M com.plexapp.plugins.library.db-shm
1.5G com.plexapp.plugins.library.db-wal
Mar 07, 2018 12:15:53.240 [0x7f7732ffe700] DEBUG - Auth: authenticated user 1 as redacted
Mar 07, 2018 12:15:53.241 [0x7f7706bfd700] DEBUG - Request: [10.0.0.3:62858 (WAN)] PUT /library/optimize?async=1 (19 live) TLS GZIP Signed-in Token (redacted)
Mar 07, 2018 12:15:53.244 [0x7f7706bfd700] DEBUG - Activity: registered new activity bbdf4ccb-67a9-4a9f-8330-3ebca6d19123 - Optimizing database
Mar 07, 2018 12:15:53.245 [0x7f76f3bfb700] DEBUG - Database optimization: Optimizing database. Starting by capturing all sessions.
Mar 07, 2018 12:15:53.245 [0x7f76f3bfb700] DEBUG - Activity: updated activity bbdf4ccb-67a9-4a9f-8330-3ebca6d19123 - completed 0% - Optimizing database
Mar 07, 2018 12:15:53.246 [0x7f7732ffe700] DEBUG - Completed: [10.0.0.3:62858] 200 PUT /library/optimize?async=1 (19 live) TLS GZIP 5ms 268 bytes (pipelined: 1)
Mar 07, 2018 12:15:53.246 [0x7f76f3bfb700] DEBUG - Activity: updated activity bbdf4ccb-67a9-4a9f-8330-3ebca6d19123 - completed 10% - Optimizing database
Mar 07, 2018 12:15:53.247 [0x7f76f3bfb700] DEBUG - Running database fix-ups.
Mar 07, 2018 12:15:53.829 [0x7f77337ff700] DEBUG - Auth: authenticated user 1 as redacted
Mar 07, 2018 12:15:53.830 [0x7f76ecbfe700] DEBUG - Request: [10.0.10.105:37996 (Subnet)] GET /status/sessions (20 live) Signed-in Token (redacted)
Mar 07, 2018 12:15:53.957 [0x7f76f3bfb700] WARN - Held transaction for too long (../Library/DatabaseFixups.cpp:191): 1.440000 seconds
Mar 07, 2018 12:15:53.965 [0x7f76f3bfb700] DEBUG - Running database fix-ups completed in 1.5 seconds.
Mar 07, 2018 12:15:53.965 [0x7f76f3bfb700] DEBUG - Captured session 0.
(repeat 1-18)
Mar 07, 2018 12:15:56.215 [0x7f772b3fe700] DEBUG - HubCache: Computed '1/home.ondeck/hubs/12/en' in 23662 ms.
Mar 07, 2018 12:15:56.216 [0x7f772b3fe700] DEBUG - HubCache: Retrieving '1/home.movies.recent/hubs/12/en' from the cache.
Mar 07, 2018 12:15:56.217 [0x7f772b3fe700] DEBUG - HubCache: Adding '1/home.television.recent/hubs/12/en' to the cache (1/home.television.recent/hubs/12/en).
Mar 07, 2018 12:15:56.219 [0x7f772b3fe700] ERROR - QueryParser: Invalid field 'onlyTransient' found, ignoring.
Mar 07, 2018 12:15:56.239 [0x7f772b3fe700] DEBUG - It took 10.000000 ms to retrieve 200 items.
Mar 07, 2018 12:15:56.314 [0x7f772b3fe700] DEBUG - It took 70.000000 ms to retrieve 50 items.
Mar 07, 2018 12:15:56.368 [0x7f772b3fe700] DEBUG - HubCache: Computed '1/home.television.recent/hubs/12/en' in 150 ms.
Mar 07, 2018 12:15:56.369 [0x7f772b3fe700] DEBUG - HubCache: Retrieving '1/home.videos.recent/hubs/12/en' from the cache.
Mar 07, 2018 12:15:56.369 [0x7f772b3fe700] DEBUG - HubCache: Retrieving '1/home.photos.recent/hubs/12/en' from the cache.
Mar 07, 2018 12:15:56.370 [0x7f772b3fe700] DEBUG - HubCache: Retrieving '1/home.music.recent/hubs/12/en' from the cache.
Mar 07, 2018 12:15:56.370 [0x7f76f3bfb700] DEBUG - Captured session 19.
Mar 07, 2018 12:15:56.370 [0x7f76f3bfb700] DEBUG - Database optimization: Rebuilding full text search tables.
Mar 07, 2018 12:15:56.371 [0x7f76f3bfb700] DEBUG - Activity: updated activity bbdf4ccb-67a9-4a9f-8330-3ebca6d19123 - completed 40% - Optimizing database
Mar 07, 2018 12:15:57.248 [0x7f76f3bfb700] WARN - Held transaction for too long (../Library/FullTextSearch.cpp:17): 0.880000 seconds
Mar 07, 2018 12:15:57.863 [0x7f76f3bfb700] WARN - Held transaction for too long (../Library/FullTextSearch.cpp:27): 0.590000 seconds
Mar 07, 2018 12:15:58.566 [0x7f77337ff700] DEBUG - Auth: authenticated user redacted as redacted
Mar 07, 2018 12:16:01.105 [0x7f771cbff700] DEBUG - NetworkServiceBrowser: SSDP departed after not being seen for 20.262875 seconds: 10.0.10.57
Mar 07, 2018 12:16:01.309 [0x7f76f3bfb700] WARN - Held transaction for too long (../Library/FullTextSearch.cpp:38): 3.510000 seconds
Mar 07, 2018 12:16:01.958 [0x7f7732ffe700] DEBUG - Auth: authenticated user 1 as redacted
Mar 07, 2018 12:16:01.958 [0x7f7706bfd700] DEBUG - Request: [10.0.10.105:38000 (Subnet)] GET /status/sessions (22 live) Signed-in Token (redacted)
Mar 07, 2018 12:16:02.592 [0x7f76f3bfb700] WARN - Held transaction for too long (../Library/FullTextSearch.cpp:48): 1.230000 seconds
Mar 07, 2018 12:16:02.612 [0x7f76f3bfb700] DEBUG - Database optimization: starting.
Mar 07, 2018 12:16:02.612 [0x7f76f3bfb700] DEBUG - Activity: updated activity bbdf4ccb-67a9-4a9f-8330-3ebca6d19123 - completed 60% - Optimizing database
Mar 07, 2018 12:16:08.558 [0x7f7732ffe700] DEBUG - Auth: authenticated user redacted as redacted
Mar 07, 2018 12:16:51.805 [0x7f771cbff700] DEBUG - NetworkServiceBrowser: SSDP arrived: 10.0.10.57 (http://10.0.10.57:8008/ssdp/device-desc.xml)
Mar 07, 2018 12:17:41.105 [0x7f771cbff700] DEBUG - NetworkServiceBrowser: SSDP departed after not being seen for 21.889071 seconds: 10.0.10.57
Mar 07, 2018 12:17:56.760 [0x7f76f3bfb700] DEBUG - Database optimization: complete.
Mar 07, 2018 12:17:56.777 [0x7f76f3bfb700] INFO - SQLITE3:0x10, 17, statement aborts at 57: [select * from metadata_items limit 1] database schema has changed
(repeat x18)
Not much for helpful info in the logs from what i see other than the HubCache taking 23662 ms. (The hub is always broken on initial load and a retry works instantly) i chalk that up to the DB being too large… (correct me if im wrong on that)

So that concerns me. Does the logs tell you where the majority of the requests are coming from? as an IP address? That will tell me for SURE what it is.