Get machine learning memory usage info
- GET /_ml/memory/{node_id}/_stats
- GET /_ml/memory/_stats
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 privileges
monitor_ml
Responses
-
nodesmap string to objectrequired -
property name*additional propertyobject -
jvmobjectrequired -
Contains Java Virtual Machine (JVM) statistics for the node.
-
heap_max_in_bytesnumberrequired -
Maximum amount of memory, in bytes, available for use by the heap.
-
java_inferencenumber | string -
Amount of Java heap currently being used for caching inference models.
-
java_inference_in_bytesnumberrequired -
Amount of Java heap, in bytes, currently being used for caching inference models.
-
memobjectrequired -
Contains statistics about memory usage for the node.
-
adjusted_totalnumber | string -
If the amount of physical memory has been overridden using the es.total_memory_bytes system property then this reports the overridden value. Otherwise it reports the same value as total.
-
adjusted_total_in_bytesnumberrequired -
If the amount of physical memory has been overridden using the
es.total_memory_bytessystem property then this reports the overridden value in bytes. Otherwise it reports the same value astotal_in_bytes. -
mlobjectrequired -
Contains statistics about machine learning use of native memory on the node.
-
anomaly_detectors_in_bytesnumberrequired -
Amount of native memory, in bytes, set aside for anomaly detection jobs.
-
data_frame_analyticsnumber | string -
Amount of native memory set aside for data frame analytics jobs.
-
data_frame_analytics_in_bytesnumberrequired -
Amount of native memory, in bytes, set aside for data frame analytics jobs.
-
maxnumber | string -
Maximum amount of native memory (separate to the JVM heap) that may be used by machine learning native processes.
-
max_in_bytesnumberrequired -
Maximum amount of native memory (separate to the JVM heap), in bytes, that may be used by machine learning native processes.
-
native_code_overheadnumber | string -
Amount of native memory set aside for loading machine learning native code shared libraries.
-
native_code_overhead_in_bytesnumberrequired -
Amount of native memory, in bytes, set aside for loading machine learning native code shared libraries.