tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniele Development-ML <daniele....@googlemail.com>
Subject Re: Increasing Heap Size and Max Perm Size
Date Wed, 19 Aug 2009 11:50:10 GMT
Found a solution here:
http://www.coderanch.com/t/85725/Tomcat/heap-space-setting-Tomcat-Linux

<http://www.coderanch.com/t/85725/Tomcat/heap-space-setting-Tomcat-Linux>Practically,
everything works when setting the above options through CATALINA_OPTS
variable.



2009/8/19 Markus Schönhaber <tomcat-users@list-post.mks-mail.de>

> 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 catalina.sh
> to set your options you should create (or edit) setenv.sh and set the
> desired env vars there.
>
> --
> Regards
>  mks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message