Is there a way to disable Tomcat memory limits?-Collection of common programming errors

I would caution against not setting these, especially in the event of a memory leak — which might take up most (all?) memory on your system. Also, in the event of a garbage collection, your application’s pause time might become unacceptable if memory usage is unchecked.

Sizing the JVM depends on a lot of factors: Your application’s “footprint”, RAM available on the server, other processes running on the server, etc. You will be happier in the long run if you profile your app using some load testing/profiling tool, examining your garbage collection logs, server resource consumption, etc., and tweak these settings, instead of leaving them out. IMO, you should run a lean, well-tuned application (-: