This commit is contained in:
2020-06-03 23:30:16 +00:00
parent defaa245fe
commit 41afa71b33
2 changed files with 35 additions and 13 deletions

View File

@@ -6,18 +6,40 @@ WIFI change 5g channel to 52,56,60 and 2g channel to 8
recheck before doing as it seems to vary, maybe someone else's is auto switching
###############################################################################################
todo: MEMORY / RESOURCE LEAK APPARENT
what exactly is in gc gen0, 1 and 2? They seem to increase then stay high without dropping
can I view the actual objects stored there?
memory consumption seems to rise and rise and stick
STEPS:
For GC, need to execute
Test long run without doing anything see if increases on it's own
Test with unit tests and not seeding much at all see if it increases from unit tests
1 test caused everything to rise and hold except alloc which dropped to baseline after a number of refreshes of stats
Test burn test but really really long, like 2000 runs or non stop overnight see if it just keeps rising until the end
Test with big gen and see if it goes down on it's own overnight (I don't think it is but can double check)
Find out whats being held in GC-Gen0, Gen1 and 2 imply they will eventually be collected
Review that profiling / metrics doc from Microsoft re .net core 3
Review that profiling / metrics doc from Microsoft re .net core 3 https://docs.microsoft.com/en-us/aspnet/core/performance/memory?view=aspnetcore-3.1
Calling GC.Collect explicitly:
Should not be done by production ASP.NET Core apps.
Is useful when investigating memory leaks.
When investigating, verifies the GC has removed all dangling objects from memory so memory can be measured.
Allocated: the amount of memory occupied by managed objects
Working set: The set of pages in the virtual address space of the process that are currently resident in physical memory. The working set shown is the same value Task Manager displays.
# Ran 5 iterations of integration test, built up some GC gens , triggered collect, no change at all in GC, but Allocated dropped
https://docs.microsoft.com/en-us/dotnet/core/diagnostics/debug-memory-leak
##################################################################################################
todo: Block licensing related queries and view and auth from profile

View File

@@ -505,13 +505,13 @@ function generateMenu(vm) {
helpUrl: "form-ops-metrics",
hideSearch: true,
menuItems: [
// {
// title: vm.$ay.t("Copy"),
// icon: "fa-copy",
// surface: false,
// key: FORM_KEY + ":copylog",
// vm: vm
// }
{
title: "DEV_TEST_COLLECT",
icon: "fa-bolt",
surface: true,
key: FORM_KEY + ":collect",
vm: vm
}
]
};
@@ -528,10 +528,10 @@ function clickHandler(menuItem) {
let m = window.$gz.menu.parseMenuItem(menuItem);
if (m.owner == FORM_KEY && !m.disabled) {
switch (m.key) {
// case "copylog":
// //put the log info on the clipboard:
// window.$gz.util.copyToClipboard("SERVER LOG\n" + m.vm.log);
// break;
case "collect":
//trigger garbage collection
window.$gz.api.get("server-metric/collect");
break;
default:
window.$gz.eventBus.$emit(
"notify-warning",