# CPU spikes while detecting intros/credits

**URL:** https://forums.plex.tv/t/cpu-spikes-while-detecting-intros-credits/830953
**Category:** Plex Media Server
**Tags:** server-windows
**Created:** [February 15, 2023, 9:58pm UTC](https://forums.plex.tv/t/cpu-spikes-while-detecting-intros-credits/830953 "2023-02-15T21:58:11Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mit3y](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mit3y/32/414_2.png) [@mit3y](https://forums.plex.tv/u/mit3y)
#### Post date: [February 15, 2023, 9:58pm UTC](https://forums.plex.tv/t/cpu-spikes-while-detecting-intros-credits/830953/1 "2023-02-15T21:58:11Z")

</div>

Server Version#: Version 1.31.1.6716

For a while now my server has been pretty chaotic when it comes to detecting intros and credits. Its almost constantly doing it, and creates a CPU rollercoaster (as seen in screenshot).

While I appreciate this feature very much, I wonder if perhaps the state of my PMS is somehow corrupted. Is this a normal pattern? Is there a way to kind of optimize/reset the intro detection for my library? I’ve often noticed it re-processing the same episodes, etc.

 ![plex_cpu_rollercoaster](https://global.discourse-cdn.com/plex/original/4X/4/a/0/4a08b31df05a16ff10a733b121db8cc1dddb1ba6.png)

---

<div class="post-metadata">

### Author: ![drvector](https://avatars.discourse-cdn.com/v4/letter/d/b38774/32.png) [@drvector](https://forums.plex.tv/u/drvector)
#### Post date: [February 15, 2023, 10:14pm UTC](https://forums.plex.tv/t/cpu-spikes-while-detecting-intros-credits/830953/2 "2023-02-15T22:14:05Z")

</div>

After last update im on the same boat, Plex Media Scanner

---

<div class="post-metadata">

### Author: ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)
#### Post date: [February 16, 2023, 9:55am UTC](https://forums.plex.tv/t/cpu-spikes-while-detecting-intros-credits/830953/3 "2023-02-16T09:55:34Z")

</div>

> [@mit3y](#):
>
> Is this a normal pattern?

Yes.

Set the time window for server maintenance to a time of day where you are not using your Plex server much. Set it to perform intro and credits detection not while ingesting new media.  
[https://support.plex.tv/articles/201553286-scheduled-tasks/](https://support.plex.tv/articles/201553286-scheduled-tasks/)

> [@mit3y](#):
>
> Is there a way to kind of optimize/reset the intro detection for my library? I’ve often noticed it re-processing the same episodes, etc.

The algorithms for intro/credit detection are sometimes updated in a new server version. All detections done with an earlier version are updated automatically.  
Apart from that, make sure that your server’s general `/temp` folder has plenty of free storage available as it is used during detection. A lack of free space leads to the detection being aborted and retried next time.

---

<div class="post-metadata">

### Author: ![mit3y](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mit3y/32/414_2.png) [@mit3y](https://forums.plex.tv/u/mit3y)
#### Post date: [February 16, 2023, 1:47pm UTC](https://forums.plex.tv/t/cpu-spikes-while-detecting-intros-credits/830953/4 "2023-02-16T13:47:20Z")

</div>

@OttoKerner thanks for the reply.

I do have my scheduled tasks setup for an overnight window, however intro/credit detection does not seem to adhere to this window, and runs outside it. Are you 100% certain that intro/credits detection is considered ‘background maintenance’?

My tasks config is vanilla default:

 ![scheduled-tasks](https://global.discourse-cdn.com/plex/original/4X/b/2/e/b2e3dc358d70219ef5f7486b4537e622fc6f54e1.png)

> Set it to perform intro and credits detection not while ingesting new media.

That does seem to be what I want, but I don’t see a specific setting for that, can you elaborate?

Thanks.

---

<div class="post-metadata">

### Author: ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)
#### Post date: [February 16, 2023, 1:48pm UTC](https://forums.plex.tv/t/cpu-spikes-while-detecting-intros-credits/830953/5 "2023-02-16T13:48:06Z")

</div>

> [@mit3y](#):
>
> That does seem to be what I want, but I don’t see a specific setting for that, can you elaborate?

You can find it under  
Settings - ‘Show Advanced’ - Server - Library

---

<div class="post-metadata">

### Author: ![mit3y](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mit3y/32/414_2.png) [@mit3y](https://forums.plex.tv/u/mit3y)
#### Post date: [February 16, 2023, 1:51pm UTC](https://forums.plex.tv/t/cpu-spikes-while-detecting-intros-credits/830953/6 "2023-02-16T13:51:09Z")

</div>

Okay, thats helpful. It was indeed set to run upon new media. Let see if that addresses the issue.

---

<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: [May 17, 2023, 1:51pm UTC](https://forums.plex.tv/t/cpu-spikes-while-detecting-intros-credits/830953/7 "2023-05-17T13:51:34Z")

</div>

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