You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by gaurav <ga...@hclcomnet.co.in> on 2005/08/31 11:50:29 UTC

Tomcat Optimization and monitoring

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi List,
              I want to increase the default memory usage of tomcat 5
and monitor tomcat thru JMX

for memory usage

for JMX
- -Dcom.sun.management.jmxremote.port=9999
                 -Dcom.sun.management.jmxremote.ssl=false
                 -Dcom.sun.management.jmxremote.authenticate=false

but I dont where exactly to add these lines
- -> ./startup.sh  -Xmn100M -Xms500M -Xmx500M
- -> or in Catlina.sh
- -> or set envoirment variable -> JAVA_opts

can someone pl tell which is the best place to put these variables

I tried in all these places but with no effect :-(

Regards,
GP
- --
"Innovation is not absolutely necessary, but then neither is survival."
- -- Andrew Papageorge
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDFX1kVAO9KHA2KWcRAni+AJwP4yE9Sv6hIujtA2XOwmN4rgiSIwCfbhkg
K5dYA5Wl7zNIESZdCapTx7o=
=iDJ2
-----END PGP SIGNATURE-----



DISCLAIMER:
--------------------------------------------------------------------------------------------------------------

This e-mail contains confidential and/or privileged information. If you are not the intended recipient 
(or have received this e-mail in error)please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure, use or distribution of the material in this e-mail is strictly forbidden.
---------------------------------------------------------------------------------------------------------------

Re: Tomcat Optimization and monitoring

Posted by Dirk Weigenand <Di...@gmx.de>.
Hi,

> Hi List,
>               I want to increase the default memory usage of tomcat 5
> and monitor tomcat thru JMX
> 
> for memory usage
> 
> for JMX
> - -Dcom.sun.management.jmxremote.port=9999
>                  -Dcom.sun.management.jmxremote.ssl=false
>                  -Dcom.sun.management.jmxremote.authenticate=false
> 
> but I dont where exactly to add these lines
> - -> ./startup.sh  -Xmn100M -Xms500M -Xmx500M
> - -> or in Catlina.sh
> - -> or set envoirment variable -> JAVA_opts
> 
> can someone pl tell which is the best place to put these variables
> 
> I tried in all these places but with no effect :-(
> 

At the top of startup.sh look for a line starting with JAVA_OPTS=

Add your settings there and restart tomcat.

regards
        Dirk

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat Optimization and monitoring

Posted by Nick Hindley <ni...@openanswers.co.uk>.
Create a file setenv.sh in $CATALINA_HOME/bin
set your JAVA_OPTS in there. 


gaurav wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hi List,
>              I want to increase the default memory usage of tomcat 5
>and monitor tomcat thru JMX
>
>for memory usage
>
>for JMX
>- -Dcom.sun.management.jmxremote.port=9999
>                 -Dcom.sun.management.jmxremote.ssl=false
>                 -Dcom.sun.management.jmxremote.authenticate=false
>
>but I dont where exactly to add these lines
>- -> ./startup.sh  -Xmn100M -Xms500M -Xmx500M
>- -> or in Catlina.sh
>- -> or set envoirment variable -> JAVA_opts
>
>can someone pl tell which is the best place to put these variables
>
>I tried in all these places but with no effect :-(
>
>Regards,
>GP
>- --
>"Innovation is not absolutely necessary, but then neither is survival."
>- -- Andrew Papageorge
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.6 (GNU/Linux)
>
>iD8DBQFDFX1kVAO9KHA2KWcRAni+AJwP4yE9Sv6hIujtA2XOwmN4rgiSIwCfbhkg
>K5dYA5Wl7zNIESZdCapTx7o=
>=iDJ2
>-----END PGP SIGNATURE-----
>
>
>
>DISCLAIMER:
>--------------------------------------------------------------------------------------------------------------
>
>This e-mail contains confidential and/or privileged information. If you are not the intended recipient 
>(or have received this e-mail in error)please notify the sender immediately and destroy this e-mail.
>Any unauthorized copying, disclosure, use or distribution of the material in this e-mail is strictly forbidden.
>---------------------------------------------------------------------------------------------------------------
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org