2013-10-23, 20:12
I am giving TMM a try on managing my existing TV shows and found that when I am scanning in my files TMM will progressively use more and more CPU power and get slower and slower. At the beginning of the scan it is running at >30% CPU and I can see the episode names flying by on the status bar, but further into the scan it gets noticeably slower and eventually uses up to 100% of my CPU.
I can stop the scan using the little stop button on the lower right of the window and it stops ok but if I start a new scan right away the CPU usage spikes to 100% and TMM starts dragging again. If I quit TMM and restart it, then start a scan it starts off fast again, but again slows down over time.
I'm guessing it is related to the sheer size of my TV show library (250+ shows / nearly 19,000 episodes) because if I only use the "smaller" of the 2 shares I have TV shows on it will scan fine. If I use the "larger" share or both at the same time is when I run into the issue.
It doesn't even seem like the scan will ever finish, as I started the process for the first time last night and found out my CPU had been maxing out all night long without finishing the initial scan. It was still going, just unbelievably slow at that point.
I also don't see anything wrong on the logs, but the times between pulling MediaInfo for the last file for one episode and moving on to the first file for the next episode get progressively longer there also.
Example:
Almost 15 seconds there on the later switch, while the earlier took less that .5 seconds.
EDIT: Worked with mlaggner on the nightly builds, this issue has been resolved!
I can stop the scan using the little stop button on the lower right of the window and it stops ok but if I start a new scan right away the CPU usage spikes to 100% and TMM starts dragging again. If I quit TMM and restart it, then start a scan it starts off fast again, but again slows down over time.
I'm guessing it is related to the sheer size of my TV show library (250+ shows / nearly 19,000 episodes) because if I only use the "smaller" of the 2 shares I have TV shows on it will scan fine. If I use the "larger" share or both at the same time is when I run into the issue.
It doesn't even seem like the scan will ever finish, as I started the process for the first time last night and found out my CPU had been maxing out all night long without finishing the initial scan. It was still going, just unbelievably slow at that point.
I also don't see anything wrong on the logs, but the times between pulling MediaInfo for the last file for one episode and moving on to the first file for the next episode get progressively longer there also.
Example:
Code:
From early in the scan:
2013-10-23 08:40:14,533 DEBUG [tmmpool-mediainfo-thread-1] org.tinymediamanager.core.MediaFile:1054 - start MediaInfo for Spaced - S01E06 - Epiphanies.tbn
2013-10-23 08:40:14,963 DEBUG [tmmpool-mediainfo-thread-1] org.tinymediamanager.core.MediaFile:1054 - start MediaInfo for Spaced - S01E07 - Ends.avi
From late in the scan:
2013-10-23 13:53:32,933 DEBUG [tmmpool-mediainfo-thread-1] org.tinymediamanager.core.MediaFile:1054 - start MediaInfo for Doctor Who (2005) - S05E13 - The Big Bang (2).tbn
2013-10-23 13:53:44,631 DEBUG [tmmpool-mediainfo-thread-1] org.tinymediamanager.core.MediaFile:1054 - start MediaInfo for Doctor Who (2005) - S06E01 - The Impossible Astronaut (1).avi
Almost 15 seconds there on the later switch, while the earlier took less that .5 seconds.
EDIT: Worked with mlaggner on the nightly builds, this issue has been resolved!