RE: Where to set JAVA_OPTS
We use the setenv.sh. (tomcat 4.1xxx) for all custom environment variables as well as java options. catalina.sh references this script: # Get standard environment variables PRGDIR=`dirname "$PRG"` CATALINA_HOME=`cd "$PRGDIR/.." ; pwd` if [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then . "$CATALINA_HOME"/bin/setenv.sh fi catalina.bat has a similar reference. We create a setenv.sh in the bin directory and place ALL environment variables in it, including CATALINA_OPTS. Example contents: export CATALINA_HOME=/usr/local/tomcat # jvm command line options for tomcat export CATALINA_OPTS=-mx128m # db/2 env export PATH=$PATH:/home/db2inst1/sqllib/bin export LIBPATH=$LIBPATH:/home/db2inst1/sqllib/lib export LD_LIBRARY_PATH=/home/db2inst1/sqllib/lib david "Shapira, Yoav" <[EMAIL PROTECTED]To: "Tomcat Users List" <[EMAIL PROTECTED]> .com>cc: Subject: RE: Where to set JAVA_OPTS 04/07/2004 09:57 AM Please respond to "Tomcat Users List" Hi, Yup, same here. I don't like to rely on the environment. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Giorgio Ponza [mailto:[EMAIL PROTECTED] >Sent: Wednesday, April 07, 2004 9:56 AM >To: Tomcat Users List >Subject: Re: Where to set JAVA_OPTS > >Jon Wingfield ha scritto: >> No need to change the script. I normally set an Environment variable in >> the same place I define JAVA_HOME >> Go to Control Panel \ System \ Advanced tab \ Environment variables... >> Well, that's where it is on XP, which i'm currently running. >> HTH, >> Jon > >I don't think is a good approach, at least for me. An environment >variable is accessible to all java programs. Modifying the script >affects only tomcat. >Bye > >Giorgio > > >> >> Giorgio Ponza wrote: >> >>> Hi >>> usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) >>> like this >>> >>> REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc >>> -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt >>> set JAVA_OPTS=-server -Xms64m -Xmx64m >>> >>> echo Using CATALINA_BASE: %CATALINA_BASE% >>> echo Using CATALINA_HOME: %CATALINA_HOME% >>> echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% >>> echo Using JAVA_HOME: %JAVA_HOME% >>> echo using JAVA_OPTS: %JAVA_OPTS% >>> >>> it is used later in lines like >>> %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% >>> >>> Hope i helped u >>> bye >>> >>> Giorgio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where to set JAVA_OPTS
Hi, Yup, same here. I don't like to rely on the environment. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Giorgio Ponza [mailto:[EMAIL PROTECTED] >Sent: Wednesday, April 07, 2004 9:56 AM >To: Tomcat Users List >Subject: Re: Where to set JAVA_OPTS > >Jon Wingfield ha scritto: >> No need to change the script. I normally set an Environment variable in >> the same place I define JAVA_HOME >> Go to Control Panel \ System \ Advanced tab \ Environment variables... >> Well, that's where it is on XP, which i'm currently running. >> HTH, >> Jon > >I don't think is a good approach, at least for me. An environment >variable is accessible to all java programs. Modifying the script >affects only tomcat. >Bye > >Giorgio > > >> >> Giorgio Ponza wrote: >> >>> Hi >>> usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) >>> like this >>> >>> REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc >>> -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt >>> set JAVA_OPTS=-server -Xms64m -Xmx64m >>> >>> echo Using CATALINA_BASE: %CATALINA_BASE% >>> echo Using CATALINA_HOME: %CATALINA_HOME% >>> echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% >>> echo Using JAVA_HOME: %JAVA_HOME% >>> echo using JAVA_OPTS: %JAVA_OPTS% >>> >>> it is used later in lines like >>> %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% >>> >>> Hope i helped u >>> bye >>> >>> Giorgio >>> >>> >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > >-- >--- >Giorgio Ponza >Web Developer >Opla.com Ltd >Tel. +39 011 7506233 >Fax. +39 011 746179 >http://www.opla.it >--- >Ci sono persone che hanno soldi e persone che sono ricche (Coco Chanel) > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to set JAVA_OPTS
Jon Wingfield ha scritto: No need to change the script. I normally set an Environment variable in the same place I define JAVA_HOME Go to Control Panel \ System \ Advanced tab \ Environment variables... Well, that's where it is on XP, which i'm currently running. HTH, Jon I don't think is a good approach, at least for me. An environment variable is accessible to all java programs. Modifying the script affects only tomcat. Bye Giorgio Giorgio Ponza wrote: Hi usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) like this REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt set JAVA_OPTS=-server -Xms64m -Xmx64m echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: %JAVA_HOME% echo using JAVA_OPTS: %JAVA_OPTS% it is used later in lines like %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% Hope i helped u bye Giorgio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- Giorgio Ponza Web Developer Opla.com Ltd Tel. +39 011 7506233 Fax. +39 011 746179 http://www.opla.it --- Ci sono persone che hanno soldi e persone che sono ricche (Coco Chanel) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to set JAVA_OPTS
On Wed, 2004-04-07 at 14:43, Jon Wingfield wrote: > No need to change the script. I normally set an Environment variable in > the same place I define JAVA_HOME > > Go to Control Panel \ System \ Advanced tab \ Environment variables... > Well, that's where it is on XP, which i'm currently running. same on Windows 2000 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to set JAVA_OPTS
No need to change the script. I normally set an Environment variable in the same place I define JAVA_HOME Go to Control Panel \ System \ Advanced tab \ Environment variables... Well, that's where it is on XP, which i'm currently running. HTH, Jon Giorgio Ponza wrote: [EMAIL PROTECTED] ha scritto: Hi, Where do I need to set JAVA_OPTS (Should I edit catalina.bat file?). I am using Win 2k Pro and Tomcat 5. Thank you, Best Regards, Uma Hi usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) like this REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt set JAVA_OPTS=-server -Xms64m -Xmx64m echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: %JAVA_HOME% echo using JAVA_OPTS: %JAVA_OPTS% it is used later in lines like %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% Hope i helped u bye Giorgio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to set JAVA_OPTS
[EMAIL PROTECTED] ha scritto: Hi, Where do I need to set JAVA_OPTS (Should I edit catalina.bat file?). I am using Win 2k Pro and Tomcat 5. Thank you, Best Regards, Uma Hi usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) like this REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt set JAVA_OPTS=-server -Xms64m -Xmx64m echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: %JAVA_HOME% echo using JAVA_OPTS: %JAVA_OPTS% it is used later in lines like %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% Hope i helped u bye Giorgio -- --- Giorgio Ponza Web Developer Opla.com Ltd Tel. +39 011 7506233 Fax. +39 011 746179 http://www.opla.it --- Ci sono persone che hanno soldi e persone che sono ricche (Coco Chanel) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where to set JAVA_OPTS
Hi, Where do I need to set JAVA_OPTS (Should I edit catalina.bat file?). I am using Win 2k Pro and Tomcat 5. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]