This commit is contained in:
@@ -41,9 +41,7 @@ todo: add backup master time out setting
|
|||||||
|
|
||||||
TODO: BIG UPDATE ALL GUTS
|
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?
|
todo: notification?
|
||||||
|
|
||||||
|
|||||||
@@ -49,9 +49,17 @@ namespace AyaNova.Api.Controllers
|
|||||||
serverState = apiServerState;
|
serverState = apiServerState;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (DEBUG)
|
||||||
|
[HttpGet("collect")]
|
||||||
|
public ActionResult GetCollect()
|
||||||
|
{
|
||||||
|
GC.Collect();
|
||||||
|
GC.WaitForPendingFinalizers();
|
||||||
|
GC.Collect();
|
||||||
|
|
||||||
|
return Ok();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get Memory and CPU server metrics for time period specified
|
/// Get Memory and CPU server metrics for time period specified
|
||||||
|
|||||||
Reference in New Issue
Block a user