one way is if you have a jdk installed , in bin folder there is a utility called jconsole(even visualvm can be used).Launch it and connect to the relevant java process and you can see what are the heap size settings set and many other details
When running headless or cli only, jConsole can be used over lan, if you specify a port to connect on when starting the service in question.