I was thinking about capturing some metrics from a JVM like max/min/used memory, cpu consumption and maybe more later on. 

I did some research but couldn't find anything that would be suitable. 

Could one please direct me to the right reading, where to start ?

Please note, I am not looking for any kind of software which is out there on the market rather about reading materilas how to programatically get metrics via JMX so, I am able to store these in DB or a file.