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 kerber <dc...@verizon.net> on 2009/05/15 15:12:07 UTC

TC 5.5 with java -server mode in windows service

How do I set the jvm to -server mode when running as a windows service?  
In tomcat5w.exe, if I put -server in the java options box, tomcat 
doesn't start.  Do I just specify the full path to the \Program 
Files\Java\jdk1.5.0_17\jre\bin\server\jvm.dll in the jvm box?  That's 
what I have now, but I don't know if it's the preferred way to do it, 
and a thread still says mixed mode, if I'm interpreting it correctly:

[2009-05-15 08:54:50] [info] Full thread dump Java HotSpot(TM) Server VM 
(1.5.0_17-b04 mixed mode):

TIA!
Dave




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


RE: TC 5.5 with java -server mode in windows service

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: David kerber [mailto:dckerber@verizon.net]
> Subject: TC 5.5 with java -server mode in windows service
> 
> Do I just specify the full path to the
> \Program Files\Java\jdk1.5.0_17\jre\bin\server\jvm.dll in the jvm box?

Yes, that's the proper way to do it.

> [2009-05-15 08:54:50] [info] Full thread dump Java HotSpot(TM)
> Server VM (1.5.0_17-b04 mixed mode):

You're already in server mode.  The "mixed mode" indicates that you have both an interpreter and a JIT active; you cannot run without the interpreter, but you can run without a JIT, in which case it will say "interpreted mode".  All is well.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: TC 5.5 with java -server mode in windows service

Posted by David kerber <dc...@verizon.net>.
Caldarale, Charles R wrote:
>> From: David kerber [mailto:dckerber@verizon.net]
>> Subject: Re: TC 5.5 with java -server mode in windows service
>>
>> I was just surprised the thread dump didn't say "Server mode"
>> instead of "Mixed mode".
>>     
>
> Note that it says "Server VM"; running the client version will say "Client VM".
>   
Ok, that's what I was missing:  I was just looking in the wrong place.


Thanks!
D



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


RE: TC 5.5 with java -server mode in windows service

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: David kerber [mailto:dckerber@verizon.net]
> Subject: Re: TC 5.5 with java -server mode in windows service
> 
> I was just surprised the thread dump didn't say "Server mode"
> instead of "Mixed mode".

Note that it says "Server VM"; running the client version will say "Client VM".

The HotSpot JVM always has to have an interpreter available because the JITs don't kick in until after some analysis has been done of the running code.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: TC 5.5 with java -server mode in windows service

Posted by David kerber <dc...@verizon.net>.
George Sexton wrote:
> Are you running under 64 bit windows?
No, 32-bit.
>
> I noticed that the 64 bit server DLLs were not installed.
>
> I noticed this because the registry entries the installer created 
> still point to them.
>
> Look for
>
> Program Files\Java\[java version]\bin\server\jvm.dll
If that's the way I'm supposed to do it, then I guess I'm all set.  I 
was just surprised the thread dump didn't say "Server mode" instead of 
"Mixed mode".

>
>
>
> David kerber wrote:
>> How do I set the jvm to -server mode when running as a windows 
>> service?  In tomcat5w.exe, if I put -server in the java options box, 
>> tomcat doesn't start.  Do I just specify the full path to the 
>> \Program Files\Java\jdk1.5.0_17\jre\bin\server\jvm.dll in the jvm 
>> box?  That's what I have now, but I don't know if it's the preferred 
>> way to do it, and a thread still says mixed mode, if I'm interpreting 
>> it correctly:
>>
>> [2009-05-15 08:54:50] [info] Full thread dump Java HotSpot(TM) Server 
>> VM (1.5.0_17-b04 mixed mode):
>>
>> TIA!
>> Dave



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


Re: TC 5.5 with java -server mode in windows service

Posted by George Sexton <ge...@mhsoftware.com>.
Are you running under 64 bit windows?

I noticed that the 64 bit server DLLs were not installed.

I noticed this because the registry entries the installer created still 
point to them.

Look for

Program Files\Java\[java version]\bin\server\jvm.dll



David kerber wrote:
> How do I set the jvm to -server mode when running as a windows 
> service?  In tomcat5w.exe, if I put -server in the java options box, 
> tomcat doesn't start.  Do I just specify the full path to the \Program 
> Files\Java\jdk1.5.0_17\jre\bin\server\jvm.dll in the jvm box?  That's 
> what I have now, but I don't know if it's the preferred way to do it, 
> and a thread still says mixed mode, if I'm interpreting it correctly:
>
> [2009-05-15 08:54:50] [info] Full thread dump Java HotSpot(TM) Server 
> VM (1.5.0_17-b04 mixed mode):
>
> TIA!
> Dave
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

-- 
George Sexton
MH Software, Inc.
Voice: +1 303 438 9585
URL:   http://www.mhsoftware.com/


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