Skip to content
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

Linux systems do not report total physical memory on agent connect #36

Closed
alanwest opened this issue Jul 15, 2020 · 1 comment · Fixed by #855
Closed

Linux systems do not report total physical memory on agent connect #36

alanwest opened this issue Jul 15, 2020 · 1 comment · Fixed by #855
Assignees
Labels
bug Something isn't working win != linux Behavior in windows is not the same as Linux and/or vice versa

Comments

@alanwest
Copy link
Member

alanwest commented Jul 15, 2020

On agent connect the following utilization hash (example below) is included in the connect payload. On linux systems total_ram_mib is always null. This is because the code that pulls this information only works on Windows.

See:

I have not reviewed this discussion very closely, yet, though it appears there is an open discussion around an API to retrieve this data: dotnet/runtime#22948. To my knowledge, there is nothing on System.Diagnostics.Process that gets us physical memory, though this should be confirmed.

However, even if there was an .NET API to retrieve this information, containerized environments may cause us additional problems.

Example utilization hash:

"utilization": {
    "metadata_version": 5,
    "logical_processors": 1,
    "total_ram_mib": null,
    "hostname": "...",
    "full_hostname": "...",
    "ip_address": [
        "..."
    ],
    "boot_id": "...",
    "vendors": {
        "azure": {
            "location": "...",
            "name": "...",
            "vmId": "...",
            "vmSize": "Standard_D1_v2"
        },
        "docker": {
            "id": "..."
        },
        "kubernetes": {
            "kubernetes_service_host": "..."
        }
    }
},
@alanwest alanwest added the bug Something isn't working label Jul 15, 2020
@github-actions
Copy link
Contributor

This has been marked stale after 30 days with no activity. It will be closed in 5 days if there is no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working win != linux Behavior in windows is not the same as Linux and/or vice versa
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants