File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat 5.5 on Windows XP - set -server option Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5.5 on Windows XP - set -server option" Watch "Tomcat 5.5 on Windows XP - set -server option" New topic
Author

Tomcat 5.5 on Windows XP - set -server option

kaalia kaalia
Greenhorn

Joined: Jun 16, 2005
Posts: 2
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

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
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

Joined: Jun 16, 2005
Posts: 2
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 5.5 on Windows XP - set -server option
 
Similar Threads
Tomcat 5.0.27 Set Up Problem
Keep running task in the background
Tomcat as Windows service - I can't set more than 768 Mb of memory
ikeyman looks aweful
Garbage collection Log in tomcat