-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iot edge workbook device details for module resource usage is wrong #6890
Comments
@tervoju |
current logs $ docker logs IoTEdgeMetricsCollector --tail 200 |
What is the time period you used to check the memory usage in portal? Does the time period in IotHub matches with the time you check on device with docker stats? |
@tervoju Can you please run a query on your IotHub so you can see if the values that are sent from edge are correct? let startTime = now(-2h); You can also adjust the startTime and endTime form the top dropdown next to Run. Please let me know if the values match with docker stats or not. |
no, the data is the same as previously: 2/9/2023, 10:28:55.000 AM edgeAgent_used_memory_bytes 1,275,760,640 and in docker stats ~ 4 GB |
Thanks! That is a discrepancy between the docker docs on how to calculate the memory usage by subtracting cache value and I think the metric migth not be using the right field. Can you please run one more command to check what docker cli is returning: first get the container id for data-acquisition module then use docker api to get stats:
I would like to take a look at "memory_stats", mostly at "usage", "cache" and "total_inactive_file" values |
some values here. |
Thanks for the info! it is a bug on how the memory usage is calculated on edge side, I will look into having it fixed. |
ok, great. |
This issue is being marked as stale because it has been open for 30 days with no activity. |
Expected Behavior
memory usage figures should be the same
Current Behavior
big difference in memory usage
Steps to Reproduce
Provide a detailed set of steps to reproduce the bug.
Context (Environment)
linux ubuntu 20.04
iotedge 1.4
Output of
iotedge check
Click here
Device Information
Runtime Versions
docker version
]:Client: Docker Engine - Community
Version: 20.10.21
Note: when using Windows containers on Windows, run
docker -H npipe:////./pipe/iotedge_moby_engine version
insteadLogs
aziot-edged logs
edge-agent logs
edge-hub logs
Additional Information
Please provide any additional information that may be helpful in understanding the issue.
The text was updated successfully, but these errors were encountered: