You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Brown <da...@davidwbrown.name> on 2008/01/20 20:42:10 UTC

Tomcat 4.x, 5.x Client mode vs Server mode and JAVA_OPTS, how-to-know which is running?

Hello TC committers, contributors and users. I am a long time TC user and it is the reason I have my current gig. In spite of the length of time using Tomcat I was not aware of the Client vs Server mode using the JAVA_OPTS variable in catalina or the startup script. Currently, I am using JMeter to assess the webapps running under TC. I suspect a lot of my clients problems reside with the deployed webapps and not-so-such problems with TC. This being said I would like to investigate performance issues with TC i.e. the so-called Client vs Server mode. Is there some definitive test to know which mode a currently running TC instance is running under? There are 3 instances I have to deal with: development deployment, test deployment and production deployment. Obviously, I cannot do anything to the  Production app server that would risk bouncing or shutting down the box. JMeter monitoring does not work under TC 4.x because there is no manager/status page from which to parse the XML 
 data. The currently running TC instances are deployed as Services under Windoe 2003 servers. I examied the properties dialog boxes from the Services application and I do not see any reference to JAVA_OPTS or any type of startup params. If anyone has TC Client vs Server mode expertise or if you just want to rant and rave please reply. The particulars follow. Thanks, David.

OS: Windows 2003 server SP1
TC: 4.x and 5.x
JDK: 1.3.x and 1.4.x
Deployed as a service in all instances.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat 4.x, 5.x Client mode vs Server mode and JAVA_OPTS, how-to-know which is running?

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: David Brown [mailto:david@davidwbrown.name] 
> Subject: Tomcat 4.x, 5.x Client mode vs Server mode and 
> JAVA_OPTS, how-to-know which is running?

Martin's comment about not being able to run in server mode on a Windows
box is, of course, fallacious.  A HotSpot JVM will run in server or
client mode on any box (although the client libraries don't seem to be
included in recent 64-bit Linux JVM downloads; don't know if they're
included in the 64-bit Windows versions).

> The currently running TC instances are deployed as 
> Services under Windoe 2003 servers.

To select the server vs client mode on Tomcat 5.0, 5.5, or 6.0 installed
as a Windows service, run the tomcat5w.exe program from Tomcat's bin
directory, go to the Java tab, and set the value in the Java Virtual
Machine box to use the server or client directory, as desired.  E.g.:
  <jre_folder>\bin\server\jvm.dll
  <jre_folder>\bin\client\jvm.dll

I would hope there's something similar for 4.1, but I've never used that
level.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org