I am not so good with Linux commands & Can someone please tell me what would be an efficient way to gather total(33521664K) & used(22917322K) values from this command result
> jcmd 27047 GC.heap_info
27047:
garbage-first heap total 33521664K, used 22917322K [0x00007XXX, 0x00007XXX, 0x00007XX)
region size 8192K, 1307 young (10706944K), 9 survivors (73728K)
Metaspace used 154942K, capacity 169384K, committed 210432K, reserved 210944K
I have thought of using grep with "garbage-first" which will give me the line of information I want & doing awk. Most likely there could a better way of grabing those values.