Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Launching tomcat with additional VM parameters

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

I am wondering how to add additional JVM parameters during tomcat startup(Catalina.sh?)
I currently need to provide the following options :

-Xms128M -Xmx512M -Dvtprop=/Users/sanjayraju/vtimsd/runtime/snapagent.ini -Dsun.net.inetaddr.ttl=1


thanks
Sanjay
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use the JAVA_OPTS environment variable in catalina.bat - for example, here is part of the line in my catalina.bat

set JAVA_OPTS=-Djavax.net.ssl.trustStore="c ata\Scrutiny\keystore\clientkeys"

Here is the comment from catalina.bat documenting the use
rem JAVA_OPTS (Optional) Java runtime options used when the "start",
rem "stop", or "run" command is executed.
Bill
reply
    Bookmark Topic Watch Topic
  • New Topic