add some heap variation to floatsam optional cache expire log
parent
2efa53af52
commit
301f28cfd4
|
@ -630,10 +630,14 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||||
|
|
||||||
private void CleanupExpiredFiles(object source, ElapsedEventArgs e)
|
private void CleanupExpiredFiles(object source, ElapsedEventArgs e)
|
||||||
{
|
{
|
||||||
|
long heap = 0;
|
||||||
if (m_LogLevel >= 2)
|
if (m_LogLevel >= 2)
|
||||||
m_log.DebugFormat("[FLOTSAM ASSET CACHE]: Checking for expired files older then {0}.", m_FileExpiration);
|
{
|
||||||
|
m_log.DebugFormat("[FLOTSAM ASSET CACHE]: Start automatic Check for expired files older then {0}.", m_FileExpiration);
|
||||||
|
heap = GC.GetTotalMemory(false);
|
||||||
|
}
|
||||||
|
|
||||||
lock(timerLock)
|
lock (timerLock)
|
||||||
{
|
{
|
||||||
if(!m_timerRunning || m_cleanupRunning)
|
if(!m_timerRunning || m_cleanupRunning)
|
||||||
return;
|
return;
|
||||||
|
@ -658,6 +662,13 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||||
m_CacheCleanTimer.Start();
|
m_CacheCleanTimer.Start();
|
||||||
m_cleanupRunning = false;
|
m_cleanupRunning = false;
|
||||||
}
|
}
|
||||||
|
if (m_LogLevel >= 2)
|
||||||
|
{
|
||||||
|
heap = GC.GetTotalMemory(false) - heap;
|
||||||
|
double fheap = Math.Round((double)(heap / (1024 * 1024)),3);
|
||||||
|
m_log.DebugFormat("[FLOTSAM ASSET CACHE]: Finished automatic Check for expired files heap delta: {0}MB.", fheap);
|
||||||
|
heap = GC.GetTotalMemory(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue