Forgot to mention that when I try with the following command:
java -Xms512m -Xmx750m

it does succeed in creating the JVM - differently (but obviously), if I try:

java -Xms512m -Xmx6750m

it fails (as expected).

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 - I have tried
this also with a simple Java main class that instantiates big arrays.

Any hit/suggestions are very welcomed.

Dan



On Wed, Aug 19, 2009 at 11:05 AM, Daniele Development-ML <
daniele....@googlemail.com> wrote:

> The JVM actually recognises that the value being set/asked for is 100 as
> when I shut it down, I get a message saying that a JVM with the specified
> 100m of memory cannot be created.
>
> On Tue, Aug 18, 2009 at 11:48 PM, André Warnier <a...@ice-sa.com> wrote:
>
>> Daniele Development-ML wrote:
>>
>>> Hi all,
>>>
>>> I'm trying to increase the sizes of the heap and of the max perm by
>>> passing
>>> the options with the values (in catalina.sh)
>>>
>>> JAVA_OPTS="$JAVA_OPTS -Xmx=100m -XX:MaxPermSize=350m
>>> -Dfile.encoding=UTF-8"
>>>
>>>  Try without the "=" signs ? -Xmx100m
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>

Reply via email to