Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Launching tomcat with additional VM parameters

 
Sanjay Ra
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • 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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic