tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <>
Subject Re: Increasing Heap Size and Max Perm Size
Date Wed, 19 Aug 2009 11:17:28 GMT
Daniele Development-ML:

> Forgot to mention that when I try with the following command:
> java -Xms512m -Xmx750m
> it does succeed in creating the JVM
> I don't understand why I get different behaviour passing this option the JVM
> when starting Tomcat, and when I give directly to the JVM

>From your OP:
> JAVA_OPTS="$JAVA_OPTS -Xmx=100m -XX:MaxPermSize=350m -Dfile.encoding=UTF-8"

You get different behaviour because you're passing *different* options
to the VM.
Moreover, as you've been told by the VM and André, -Xmx=100m isn't a
valid way to set the VM's maximum heap size.

And BTW: instead of changing a Tomcat-provided script like
to set your options you should create (or edit) and set the
desired env vars there.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message