I am creating a memory monitoring reporting tasks in Apache NiFi, to monitory the JVM usage. But i don't know which memory pool is appropriate to monitor usage of JVM. Any suggestion will be appreciated.
Memory pools available:
Code Cache
Metaspace
Compressed Class Space
G1 Eden Space
G1 Survivor Space
G1 Old Gen
As per my knowledge G1 Eden Space, G1 Survivor Space and G1 Old Gen are younger generation memory pool, so these three used to monitor java heap space. correct me if i am wrong.