Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 5.5 on Windows XP - set -server option

 
kaalia kaalia
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks in advance.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure about adding the -server option.

Last I looked (5.0.30) there were fields for intial and max memory on the java tab of the configuration tool so you didn't have to add them as java options.
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
kaalia kaalia
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic