You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Performance tracker for 'Private Bytes' tracks os ram usage, but it should be process ram usage.
private _trackMemory() {
var totalMem = os.totalmem();
var freeMem = os.freemem();
var usedMem = totalMem - freeMem;
var percentUsedMem = usedMem / (totalMem || 1);
var percentAvailableMem = freeMem / (totalMem || 1);
this._client.trackMetric({name:"\\Process(??APP_WIN32_PROC??)\\Private Bytes", value: usedMem});
this._client.trackMetric({name: "\\Memory\\Available Bytes", value: freeMem});
}
With current implementation on Application Insights metrics view it shows os ram usage. This is bad if my App Service is running on Shared Resource Group on Azure.
Used memory should be tracked like this: var usedMem = process.memoryUsage().heapTotal
The text was updated successfully, but these errors were encountered:
Spragalas
changed the title
Performance metric - RAM usage should be of process not os
Performance metric - RAM usage should be of process
Nov 7, 2018
Performance tracker for 'Private Bytes' tracks os ram usage, but it should be process ram usage.
With current implementation on Application Insights metrics view it shows os ram usage. This is bad if my App Service is running on Shared Resource Group on Azure.
Used memory should be tracked like this:
var usedMem = process.memoryUsage().heapTotal
The text was updated successfully, but these errors were encountered: