I want to set the -server jvm option for starting up tomcat (in production mode). Have Tomcat5.5 on Windows XP. Went to Start->Programs->Apache->Configure Tomcat->Java Tab and put -server in Java Options box. By default, there were already 4 -D options there. But after putting -server (either as the first line or appending it as the last line), the tomcat service does not start up. Has anybody set this option in tomcat? Am I setting it in the wrong place?
Also, I believe, that is where I can set -Xmx -Xms options indirectly using initial memory pool and maximum memory pool text boxes. Could somebody confirm?
I realize that your operating system is Windows XP, but I was able to start Tomcat on Linux using the $JAVA_OPTS(i.e. -server -Xms etc) environment variables without any problems, but anyway what version of JAVA are you using with Tomcat5.5?
Joined: Jun 16, 2005
Am using JDK 1.5 with Tomcat. Yes, there are options for max and min memories in the Java tab in the configuration tool which is useful. However, there is no way to add -server option through the Configuration tool (or atleast when you add it, it does not work). I will test with adding the options in the Windows registry and see if that works (similar to setting env. variable in Linux but on XP, it's through the registry).
If anybody else has set -server option on Windows, please let me know. Setting -server, as far as I have read, is the recommended way of starting Tomcat since it increases performance (Default I believe is client or classic, I forget).
subject: Tomcat 5.5 on Windows XP - set -server option