There are lots of questions that ask this or a similar question.
They all give the command that has to be executed, what I don\'t understand is where do I write this
Just set this extra line in catalina.bat file
catalina.bat
LINE NO AROUND: 143
set "CATALINA_OPTS=-Xms512m -Xmx512m"
And restart Tomcat service