This commit is contained in:
@@ -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
|
recheck before doing as it seems to vary, maybe someone else's is auto switching
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################################################
|
||||||
todo: MEMORY / RESOURCE LEAK APPARENT
|
todo: MEMORY / RESOURCE LEAK APPARENT
|
||||||
what exactly is in gc gen0, 1 and 2? They seem to increase then stay high without dropping
|
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?
|
can I view the actual objects stored there?
|
||||||
memory consumption seems to rise and rise and stick
|
memory consumption seems to rise and rise and stick
|
||||||
STEPS:
|
STEPS:
|
||||||
|
For GC, need to execute
|
||||||
Test long run without doing anything see if increases on it's own
|
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
|
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)
|
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
|
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
|
todo: Block licensing related queries and view and auth from profile
|
||||||
|
|
||||||
|
|||||||
@@ -505,13 +505,13 @@ function generateMenu(vm) {
|
|||||||
helpUrl: "form-ops-metrics",
|
helpUrl: "form-ops-metrics",
|
||||||
hideSearch: true,
|
hideSearch: true,
|
||||||
menuItems: [
|
menuItems: [
|
||||||
// {
|
{
|
||||||
// title: vm.$ay.t("Copy"),
|
title: "DEV_TEST_COLLECT",
|
||||||
// icon: "fa-copy",
|
icon: "fa-bolt",
|
||||||
// surface: false,
|
surface: true,
|
||||||
// key: FORM_KEY + ":copylog",
|
key: FORM_KEY + ":collect",
|
||||||
// vm: vm
|
vm: vm
|
||||||
// }
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -528,10 +528,10 @@ function clickHandler(menuItem) {
|
|||||||
let m = window.$gz.menu.parseMenuItem(menuItem);
|
let m = window.$gz.menu.parseMenuItem(menuItem);
|
||||||
if (m.owner == FORM_KEY && !m.disabled) {
|
if (m.owner == FORM_KEY && !m.disabled) {
|
||||||
switch (m.key) {
|
switch (m.key) {
|
||||||
// case "copylog":
|
case "collect":
|
||||||
// //put the log info on the clipboard:
|
//trigger garbage collection
|
||||||
// window.$gz.util.copyToClipboard("SERVER LOG\n" + m.vm.log);
|
window.$gz.api.get("server-metric/collect");
|
||||||
// break;
|
break;
|
||||||
default:
|
default:
|
||||||
window.$gz.eventBus.$emit(
|
window.$gz.eventBus.$emit(
|
||||||
"notify-warning",
|
"notify-warning",
|
||||||
|
|||||||
Reference in New Issue
Block a user