Hello,
I want know
how many GC are executed in last 5 min
how long duration's GC is ?
I want use : GET /_nodes/elasticsearch_instance1/stats/jvm :
Output return :
"jvm": {
"timestamp": 1554888379405,
"uptime_in_millis": 56643256,
"mem": {
"heap_used_in_bytes": 16247615560,
"heap_used_percent": 50,
"heap_committed_in_bytes": 32212254720,
"heap_max_in_bytes": 32212254720,
"non_heap_used_in_bytes": 115543704,
"non_heap_committed_in_bytes": 122445824,
"pools": {
"young": {
"used_in_bytes": 14663286784,
"max_in_bytes": 0,
"peak_used_in_bytes": 18001952768,
"peak_max_in_bytes": 0
},
"survivor": {
"used_in_bytes": 109051904,
"max_in_bytes": 0,
"peak_used_in_bytes": 385875968,
"peak_max_in_bytes": 0
},
"old": {
"used_in_bytes": 1475276872,
"max_in_bytes": 32212254720,
"peak_used_in_bytes": 1475276872,
"peak_max_in_bytes": 32212254720
}
}
},
"gc": {
"collectors": {
"young": {
"collection_count": 22,
"collection_time_in_millis": 1462
},
"old": {
"collection_count": 0,
"collection_time_in_millis": 0
}
}
},
indent preformatted text by 4 spaces
So, i don't understand return values ?
My final aim is to put value is a text file to create graph about it :
exemple :
date_every_5min ; instances es ; nbre gc ; average duration gc
100419_11_30 ; elasticsearch_instance1; 10 ; 100ms
100419_11_30 ; elasticsearch_instance2; 5 ; 60ms
100419_11_35 ; elasticsearch_instance3; 7 ; 70ms
100419_11_35 ; elasticsearch_instance1; 7 ; 35ms
100419_11_35 ; elasticsearch_instance2; 3 ; 86ms
...
Is possible ?