I'm doing some benchmarking and I want to know how to set memory for both IntelliJ and Tomcat.

In the bottom right corner I see 98M of 147M in IntelliJ, what is that for?

How do I know if I have allocated tomcat enough memory?

Edit
Report