Get machine learning memory usage info
Generally available; Added in 8.2.0
Get information about how machine learning jobs and trained models are using memory, on each node, both within the JVM heap, and natively, outside of the JVM.
Required authorization
- Cluster privileges:
monitor_ml
Query parameters
-
master_timeout
string Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
Values are
-1
or0
. -
timeout
string Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Values are
-1
or0
.
GET
/_ml/memory/_stats
Console
GET _ml/memory/_stats?human
resp = client.ml.get_memory_stats(
human=True,
)
const response = await client.ml.getMemoryStats({
human: "true",
});
response = client.ml.get_memory_stats(
human: "true"
)
$resp = $client->ml()->getMemoryStats([
"human" => "true",
]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_ml/memory/_stats?human"