This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Launching  tomcat with additional VM parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Launching  tomcat with additional VM parameters" Watch "Launching  tomcat with additional VM parameters" New topic
Author

Launching tomcat with additional VM parameters

Sanjay Ra
Ranch Hand

Joined: Nov 05, 2004
Posts: 31
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

Joined: Mar 22, 2000
Posts: 12756
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Launching tomcat with additional VM parameters
 
Similar Threads
Accessing a zip file through a JSP page.
Struts Validation
Issues with Apache / Tomcat
Passing JVM parameter
problem with starting tomcat 5.5