# Plex Server Crashing on Nights When Database Optimization Tasks Are Performed

**URL:** <https://forums.plex.tv/t/plex-server-crashing-on-nights-when-database-optimization-tasks-are-performed/680894>\
**Category:** Plex Media Server\
**Tags:** server-windows\
**Created:** [January 21, 2021, 5:23pm UTC](https://forums.plex.tv/t/plex-server-crashing-on-nights-when-database-optimization-tasks-are-performed/680894 "2021-01-21T17:23:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonicstorm](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sonicstorm/32/94848_2.png) [@sonicstorm](https://forums.plex.tv/u/sonicstorm)\
**Post date:** [January 21, 2021, 5:23pm UTC](https://forums.plex.tv/t/plex-server-crashing-on-nights-when-database-optimization-tasks-are-performed/680894/1 "2021-01-21T17:23:16Z")

</div>

Server Version#: 1.21.1.3876 & 2.3918  
Player Version#: All

Hello All, I have recently been experiencing issues with PMS where the server hangs on nights that the database is either being optimized or where old bundles are removed each week. The nights that the database is backed up is fine, except for when the database optimization and backup occur on the same night (Thursday for me).

I’ve been able to optimize the database manually and have also followed the steps to repair the database using sqlite3.exe, but the problem still persists every week on Thursday mornings.

Anyone else experiencing this issue?

---

<div class="post-metadata">

**Author:** ![sonicstorm](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sonicstorm/32/94848_2.png) [@sonicstorm](https://forums.plex.tv/u/sonicstorm)\
**Post date:** [January 24, 2021, 8:44am UTC](https://forums.plex.tv/t/plex-server-crashing-on-nights-when-database-optimization-tasks-are-performed/680894/2 "2021-01-24T08:44:26Z")

</div>

The server hung again tonight after starting nightly maintenance. The Dashboard notification shows “Backing up database” as the last action performed. Which log files should one look at to see what is causing the server hang?

Looking at Task Manager, Plex Media Server shows very high CPU utilization but no disk utilization.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [April 24, 2021, 8:44am UTC](https://forums.plex.tv/t/plex-server-crashing-on-nights-when-database-optimization-tasks-are-performed/680894/3 "2021-04-24T08:44:37Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
