You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by bhavik shah <bh...@gmail.com> on 2008/11/12 16:17:53 UTC
How to set JAVA_OPTS variable in tomcat6.0.16
Hi,
I want to set
Xms1024m
Xmx1024m
and MaxPermSize paramater to 128
How do I do that in tomcat6.0.16
thanks
RE: How to set JAVA_OPTS variable in tomcat6.0.16
Posted by Doom Dog <xd...@hotmail.com>.
Try this link, if you can't click on it, copy and past it.
http://bugs.sakaiproject.org/confluence/display/DOC/Section+-+Tomcat+Installation+(2.5)
For the Tomcat service on Windows, you have to modify the registry. The key is a multi_reg_sz key, so you'll have to append to that list. You can use the tomcat5/6w.exe to do that instead of using the regedit program.
Hope that helps!
> From: Chuck.Caldarale@unisys.com
> To: users@tomcat.apache.org
> Date: Wed, 12 Nov 2008 13:33:17 -0600
> Subject: RE: How to set JAVA_OPTS variable in tomcat6.0.16
>
> > From: Marco Antonio [mailto:marcoantoniofrias@gmail.com]
> > Subject: Re: How to set JAVA_OPTS variable in tomcat6.0.16
> >
> > Hi, just need to have the variable JAVA_OPTS exported.
> > # export JAVA_OPTS="-Xms1024m -Xmx1024m"
>
> That works for Linux (except for the leading # that turns it into a comment), but says nothing for Windows script or service usage. (The OP didn't bother to tell us the platform being used.)
>
> If running from a Windows script, do the SET JAVA_OPTS before running startup.bat; if using Tomcat as a Windows service, use the Java tab of the tomcat6w.exe program to set up the options.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
_________________________________________________________________
Get 5 GB of storage with Windows Live Hotmail.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_5gb_112008
RE: How to set JAVA_OPTS variable in tomcat6.0.16
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Marco Antonio [mailto:marcoantoniofrias@gmail.com]
> Subject: Re: How to set JAVA_OPTS variable in tomcat6.0.16
>
> Hi, just need to have the variable JAVA_OPTS exported.
> # export JAVA_OPTS="-Xms1024m -Xmx1024m"
That works for Linux (except for the leading # that turns it into a comment), but says nothing for Windows script or service usage. (The OP didn't bother to tell us the platform being used.)
If running from a Windows script, do the SET JAVA_OPTS before running startup.bat; if using Tomcat as a Windows service, use the Java tab of the tomcat6w.exe program to set up the options.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How to set JAVA_OPTS variable in tomcat6.0.16
Posted by Marco Antonio <ma...@gmail.com>.
On Wed, Nov 12, 2008 at 11:17 AM, bhavik shah <bh...@gmail.com> wrote:
> Hi,
> I want to set
>
> Xms1024m
>
> Xmx1024m
>
> and MaxPermSize paramater to 128
>
> How do I do that in tomcat6.0.16
>
Hi, just need to have the variable JAVA_OPTS exported.
# export JAVA_OPTS="-Xms1024m -Xmx1024m"
automatically tomcat add it when starting the service...
catalina.sh
...
182 # Set juli LogManager if it is present
183 if [ -r "$CATALINA_BASE"/conf/logging.properties ]; then
184 JAVA_OPTS="$JAVA_OPTS
"-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
"-Djava.util.logging.config.file="$CATALINA_BASE/conf/logging.properties"
185 fi
...
Saludos y abrazos...
Marco Antonio Frias ButrĂ³n
marcofrias@linuxpackages.net
Slackware ~ Linux User #356229
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org