What is the command to check allocate heap memory? and how can I increase memory allocated to java.
My Environment conf are this:
- centos 6.8
- Apache tomcat 8.5.38
- jdk version 1.8.0
I have already tried these
- CMD To check heap memory
java -XX:+PrintFlagsFinal -version | grep HeapSize
- CMD To Increase Heap memory
java -Xmx8000m -XshowSettings:all