0

What is the command to check allocate heap memory? and how can I increase memory allocated to java.

My Environment conf are this:

  1. centos 6.8
  2. Apache tomcat 8.5.38
  3. jdk version 1.8.0

I have already tried these

  1. CMD To check heap memory java -XX:+PrintFlagsFinal -version | grep HeapSize

Result enter image description here

  1. CMD To Increase Heap memory java -Xmx8000m -XshowSettings:all
Muhammad bux
  • 36
  • 1
  • 6

1 Answers1

0

You can analyze the contents of the heap and its total size by using the appropriate tool in Intellij.

If you want to increase it, there are some caveats, but overall its explained in this thread. You are using the right command, overall.

What exactly do you want to achieve ? How will you measure success ?

Arthur Klezovich
  • 2,595
  • 1
  • 13
  • 17