Skip to content

Conversation

@jonatan-ivanov
Copy link
Member

These changes are closing the gap for ProcessInfoContributor that were left out of #38371. As it was stated in #38371, this information can give runtime insights about the current memory usage and limits selected by the user or JVM ergonomics. If limits not set explicitly, it might not be trivial to know what these values are runtime; especially in (containerized) environments where resource usage can be isolated (for example using control groups). Other than that, these values can indicate if the JVM can resize the heap (stop-the-world).

Its output looks like this:

"process": {
  "pid": 13231,
  "parentPid": 12020,
  "owner": "jonatan",
  "cpus": 16,
  "memory": {
    "heap": {
      "max": 8589934592,
      "commited": 83886080,
      "used": 45954800,
      "init": 536870912
    },
    "nonHeap": {
      "max": -1,
      "commited": 72220672,
      "used": 69441072,
      "init": 7667712
    }
  }
}

@jonatan-ivanov jonatan-ivanov added the status: waiting-for-triage An issue we've not yet triaged label Jun 27, 2024
@jonatan-ivanov jonatan-ivanov mentioned this pull request Jun 27, 2024
15 tasks
@mhalbritter mhalbritter changed the title Add MemoryInfo to ProcessInfo Add memory info to ProcessInfo Jul 3, 2024
@mhalbritter mhalbritter self-assigned this Jul 3, 2024
@mhalbritter mhalbritter added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 3, 2024
@mhalbritter mhalbritter added this to the 3.4.x milestone Jul 3, 2024
mhalbritter pushed a commit that referenced this pull request Jul 3, 2024
mhalbritter added a commit that referenced this pull request Jul 3, 2024
@mhalbritter
Copy link
Contributor

Thanks Jonatan!

@mhalbritter mhalbritter modified the milestones: 3.4.x, 3.4.0-M1 Jul 3, 2024
@jonatan-ivanov jonatan-ivanov deleted the memory-info branch July 3, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants