appmetrics icon indicating copy to clipboard operation
appmetrics copied to clipboard

The memory data are not correct on bluemix.

Open shiyanf opened this issue 7 years ago • 1 comments
trafficstars

The Node.js DC use appmetrics to get the memory data. But this data doesn't make sense on bluemix.

On bluemix: the memory data get from appmetrics:

{ time: 1513747992723, physical_total: 33732898816, physical_used: 32376668160, physical: 59936768, private: 1439072256, virtual: 1460531200, physical_free: 1356230656 }

The private memory is a about 1.3 G, it doesn't make sense.

In the appmetric's readme: private (Number) the amount of memory used by the Node.js application that cannot be shared with other processes, in bytes.

But in the manifest file, the application is assigned 512M memory.

On premise: the memory data get from appmetrics:

{ time: 1513751142093, physical_total: 33707933696, physical_used: 17043050496, physical: 107470848, private: 96223232, virtual: 96223232, physical_free: 16664883200 } The private is about 91M. I think this value is correct.

Also need to check the appmetrics running as a docker container. The physical memory is almost 0.

shiyanf avatar Dec 20 '17 08:12 shiyanf

appmetrics running as a docker container, the private reach to about 2G, and physical just above 0. memory-container

shiyanf avatar Dec 20 '17 08:12 shiyanf