Tomcat and Java Heap size settings from Idea

Hi all,

I have some trouble setting up Java Heap size when running tomcat within Intellij Idea.

Can someone please tell me the correct way of dooing this? I keep running into post, saying I should add some java options to startup.bat - but I have no such file.
I triede setting the CATALINA_OPTS, but it doesn't seem to affect anything...

I would like settings as:  -Xms256m -Xmx2048m

Im guessing i could set it up in my startup script used by idea:

C:\Program Files\Java\jdk1.6.0_22\bin\java -Dcatalina.base=C:\Users\***\.IntelliJIdea90\system\tomcat\Unamed_xxxx -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp -jar C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar start

Ive tried:

C:\Program Files\Java\jdk1.6.0_22\bin\java -Xms256m -Xmx2048m -Dcatalina.base=C:\Users\***\.IntelliJIdea90\system\tomcat\Unamed_xxxx -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp -jar C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar start

But im not sure, thats correct either...

1 comment
Comment actions Permalink

In your Tomcat run/debug configuration setting, on the "Server" tab, there is a field labeled "VM Parameters". Enter the settings in there.

screenshot.png

1

Please sign in to leave a comment.