Ian CB
10/02/2025, 9:23 AMcsharpsteen
10/02/2025, 2:05 PMIan CB
10/02/2025, 2:38 PMcsharpsteen
10/02/2025, 2:42 PMstatus/ API exposes it as a metric. The https://forge.puppet.com/modules/puppetlabs/puppet_operational_dashboards may graph it out.csharpsteen
10/02/2025, 3:17 PM# curl -ksS \
--cert "$(puppet config print hostcert)" \
--key "$(puppet config print hostprivkey)" \
https://localhost:8140/status/v1/services/status-service?level=debug \
| jq '.status.experimental."jvm-metrics"."memory-pools"'
{
"Metaspace": {
"type": "NON_HEAP",
"usage": {
"committed": 167182336,
"init": 0,
"max": -1,
"used": 160125168
}
},
"CodeHeap 'non-nmethods'": {
"type": "NON_HEAP",
"usage": {
"committed": 2555904,
"init": 2555904,
"max": 5828608,
"used": 1574528
}
},
"CodeHeap 'profiled nmethods'": {
"type": "NON_HEAP",
"usage": {
"committed": 39190528,
"init": 2555904,
"max": 265519104,
"used": 38086912
}
},
"Compressed Class Space": {
"type": "NON_HEAP",
"usage": {
"committed": 32505856,
"init": 0,
"max": 1073741824,
"used": 29519824
}
},
"G1 Eden Space": {
"type": "HEAP",
"usage": {
"committed": 1340080128,
"init": 113246208,
"max": -1,
"used": 398458880
}
},
"G1 Old Gen": {
"type": "HEAP",
"usage": {
"committed": 794820608,
"init": 2034237440,
"max": 2147483648,
"used": 181091840
}
},
"G1 Survivor Space": {
"type": "HEAP",
"usage": {
"committed": 12582912,
"init": 0,
"max": -1,
"used": 12582912
}
},
"CodeHeap 'non-profiled nmethods'": {
"type": "NON_HEAP",
"usage": {
"committed": 10616832,
"init": 2555904,
"max": 265523200,
"used": 10593792
}
}
}Adrian Parreiras Horta
10/02/2025, 3:18 PMpuppet_operational_dashboards but not included in the dashboard by default. Setting code cache to 2g is something that should be done regardless.Ian CB
10/02/2025, 3:19 PMAdrian Parreiras Horta
10/02/2025, 3:21 PMSELECT distinct("memory-pools_CodeHeap_'non-profiled_nmethods'_usage_used") FROM "puppetserver" WHERE ("url" =~ /^$url$/) AND $timeFilter GROUP BY time($Group_by_time), "url" fill(null)
SELECT distinct("memory-pools_CodeHeap_'profiled_nmethods'_usage_used") FROM "puppetserver" WHERE ("url" =~ /^$url$/) AND $timeFilter GROUP BY time($Group_by_time), "url" fill(null)csharpsteen
10/02/2025, 3:21 PMIan CB
10/02/2025, 3:23 PM