Tomcat - How to limit the maximum memory Tomcat will use

Posted by gav on Stack Overflow See other posts from Stack Overflow or by gav
Published on 2010-04-27T20:26:11Z Indexed on 2010/04/27 20:33 UTC
Read the original article Hit count: 984

Filed under:
|
|

Hi Guys,

I am running Tomcat on a small VPS (256MB/512MB) and I want to explicitly limit the amount of memory Tomcat uses.

I understand that I can configure this somehow by passing in the java maximum heap and initial heap size arguments;

-Xmx256m
-Xms128m

But I can't find where to put this in the configuration of Tomcat 6 on Ubuntu.

Thanks in advance,

Gav

© Stack Overflow or respective owner

Related posts about tomcat

Related posts about memory