Measure a Memory Health check for JIRA server using Servlet plugin module

As the title shown above, I would like to develop a servlet module plugin which the objectif is to do a health check on the average consumption of Memory of JIRA server, actually, I have no specific ideas on how to do it properly (all I know about to measure is for example attachment space disk and JVM).

Please, I would like to ask you if there is any other parameters to measure, or any other information could be useful to help me develop this module.

Thank you very much for reading my quest!
Best Regards