I am using ubuntu where OpenJDK is installed , and I want to check if heap size goes beyond 80% an alert should be sent
I know command which is
jcmd GC.heap_info
, but the problem is process id will be continuously get change on ubuntu.
so can any one suggest script for this.