You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sascha Wehnert <Sa...@torexretail.de> on 2007/01/09 18:11:39 UTC

Getting Tomcat5.exe to run with server JVM

Hi, 

 

I’m quite new to the whole JAVA stuff so it might happen, that I do not use the right terms ;-)

 

I need to get a Tomcat 5.5.20 to run with -server. It was installed using the 

available exe-installation file. I found already a previous thread about this topic located at 

 

http://mail-archives.apache.org/mod_mbox/tomcat-users/200408.mbox/%3cBAY8-F117Lbq0m361SU0001e27d@hotmail.com%3e

 

but the described solutions here didn’t help. If I add -server to JAVA Options within the 

tomcat monitor or tomcat5w.exe and try to restart stdout log file reports “unrecognized option -server”. 

Same happens if I add it to the registry values. 

 

Any ideas?

 

Regards, 

 

Sascha


RE: Getting Tomcat5.exe to run with server JVM

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Sascha Wehnert [mailto:Sascha.Wehnert@torexretail.de] 
> Subject: AW: Getting Tomcat5.exe to run with server JVM
> 
> This is already the case. Used path for JVM is
> C:\app\java\jre\bin\server\jvm.dll

Then it should already be using the server mode.  You can check which
mode it's in by looking at the java.vm.name system property of the
running Tomcat instance; several tools will display this for you, such
as Lambda Probe and JConsole.  With Lambda Probe
(http://lambdaprobe.org), it's on the System Information page, under
both Overview and System Properties.

> The issue is, that I get different output within our 
> application using a tomcat installed with the *.exe
> file and the zip file.

Proper execution of a Java program should be independent of the JVM mode
(or JVM vendor, for that matter).  Can you be more specific about the
"different output"?  Have you done a comparison of the various config
files between the two installations?

 - 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


AW: Getting Tomcat5.exe to run with server JVM

Posted by Sascha Wehnert <Sa...@torexretail.de>.
Hi Chuck, 

> -----Ursprüngliche Nachricht-----
> Von: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
> Gesendet: Dienstag, 9. Januar 2007 18:19
> An: Tomcat Users List
> Betreff: RE: Getting Tomcat5.exe to run with server JVM
> 
> > From: Sascha Wehnert [mailto:Sascha.Wehnert@torexretail.de]
> > Subject: Getting Tomcat5.exe to run with server JVM
> >
> > If I add -server to JAVA Options within the tomcat
> > monitor or tomcat5w.exe and try to restart stdout
> > log file reports "unrecognized option -server".
> 
> The -server option is only recognized by the standard Java launcher
> (java.exe), not by the JVM proper.  To get the service to use the server
> mode JVM, start tomcat5w.exe, select the Java tab, clear the "Use
> default" check box, and enter the location of the .dll for the server
> mode JVM.  It will be something like this:
>    C:\jdk1.6.0\jre\bin\server\jvm.dll
> The exact path depends on which JVM you installed and where you
> installed it.

This is already the case. Used path for JVM is

C:\app\java\jre\bin\server\jvm.dll

The issue is, that I get different output within our application using a tomcat installed with the *.exe file and the zip file. To me it looks like, the *.exe version is ignoring the "-server" option because if I set 
-server to JAVA_OPTS within Catalina.bat it works properly.

Any other ideas?

>  - Chuck

Sascha

 
> 
> 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


RE: Getting Tomcat5.exe to run with server JVM

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Sascha Wehnert [mailto:Sascha.Wehnert@torexretail.de] 
> Subject: Getting Tomcat5.exe to run with server JVM
> 
> If I add -server to JAVA Options within the tomcat 
> monitor or tomcat5w.exe and try to restart stdout
> log file reports "unrecognized option -server". 

The -server option is only recognized by the standard Java launcher
(java.exe), not by the JVM proper.  To get the service to use the server
mode JVM, start tomcat5w.exe, select the Java tab, clear the "Use
default" check box, and enter the location of the .dll for the server
mode JVM.  It will be something like this:
   C:\jdk1.6.0\jre\bin\server\jvm.dll
The exact path depends on which JVM you installed and where you
installed it.

 - 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