This commit is contained in:
2020-06-03 23:30:16 +00:00
parent a139224de7
commit 5adf4aabcf
2 changed files with 11 additions and 5 deletions

View File

@@ -41,9 +41,7 @@ todo: add backup master time out setting
TODO: BIG UPDATE ALL GUTS
todo: do I have a memory leak or something?
I'm seeing gc not collecting beyond a certain point and possibly rising over time gen0
https://docs.microsoft.com/en-us/aspnet/core/performance/memory?view=aspnetcore-3.1
todo: notification?

View File

@@ -49,9 +49,17 @@ namespace AyaNova.Api.Controllers
serverState = apiServerState;
}
#if (DEBUG)
[HttpGet("collect")]
public ActionResult GetCollect()
{
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
return Ok();
}
#endif
/// <summary>
/// Get Memory and CPU server metrics for time period specified