Yesterday, 12:58 PM
After letting the server run for the last 24 hours I have not had to restart the server which is amazing! But I also found another issue.
While I drastically reduced the Ram consumption. I was still seeing a small uptick in ram over time. Much slower than before but still ram was growing slowly.
I watched the log files and noticed this entry a lot - item name and file path and then this:" will be refreshed". I ran through the code and found this is part of the FileRefresher.cs and specifically the ProcessPathChanges method.
This is due to having the Watch for changes in the library enabled. I disabled this feature for all of my Larger libraries and holy cow has the performance increased and the ram stays under 600 meg. So it looks like we have two issues. The Item Cache and the File Watcher. I am fine with manually or even scheduling the refresh on my media so I am leaving this off and I have no plans to rewrite this section as of yet.
I am supper happy with the current performance with these changes. I did add the sliding Expiration to the Item Cache and I like the performance a lot better. At some point I will look into why the File watcher is creating so many file refreshes, but I just don't have the time right now. To many other projects.
Hope this helps.
While I drastically reduced the Ram consumption. I was still seeing a small uptick in ram over time. Much slower than before but still ram was growing slowly.
I watched the log files and noticed this entry a lot - item name and file path and then this:" will be refreshed". I ran through the code and found this is part of the FileRefresher.cs and specifically the ProcessPathChanges method.
This is due to having the Watch for changes in the library enabled. I disabled this feature for all of my Larger libraries and holy cow has the performance increased and the ram stays under 600 meg. So it looks like we have two issues. The Item Cache and the File Watcher. I am fine with manually or even scheduling the refresh on my media so I am leaving this off and I have no plans to rewrite this section as of yet.
I am supper happy with the current performance with these changes. I did add the sliding Expiration to the Item Cache and I like the performance a lot better. At some point I will look into why the File watcher is creating so many file refreshes, but I just don't have the time right now. To many other projects.
Hope this helps.