20 Tips for Using Tomcat in Production

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 - 3 | Next >

Re: 20 Tips for Using Tomcat in Production

by Ben Souther-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It depends on which operating system you're using and how you've
installed Tomcat.
Can you tell us which it is?



On Wed, 2007-08-22 at 07:19, Karel V Sedlacek wrote:

> Thanks for this info,...
>
> How do I implement this tip?
>
> #18. Use the -server JVM option. This enables the server JVM, which JIT
> compiles bytecode much earlier, and with stronger optimizations. Startup
> and first calls will be slower due to JIT compilation taking more time,
> but subsequent ones will be faster.
>
> Karel
>
> > In putting #1 into the JAVA_OPTS (which it appears that is the
> > CATALINA_OPTS
> > for our implementation), it doesn't appear to work, as Tomcat doesn't
> > restart.  It could be our version -- which is currently 5.0.30.  please
> > let
> > me know if there are other steps we need to take here as well.
> >
> > thanks,
> > Kim :-)
> >
> > On 8/21/07, Shane Witbeck <shane@...> wrote:
> >>
> >> I thought my latest blog post would be of interest to the people on this
> >> list:
> >>
> >>
> >> http://www.digitalsanctum.com/2007/08/18/20-tips-for-using-tomcat-in-production/
> >>
> >> ---------------------------------------------------------------------
> >> To start a new topic, e-mail: users@...
> >> To unsubscribe, e-mail: users-unsubscribe@...
> >> For additional commands, e-mail: users-help@...
> >>
> >>
> >
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@...
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


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


Re: 20 Tips for Using Tomcat in Production

by Leon Rosenberg-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

as far as i know this option is outdated, hence the vm automatically
goes into server mode if it detects a server class machine (>=2GB RAM,
2 processors (which also includes ht or dualcore)

leon

maybe wrong though

On 8/22/07, Ben Souther <ben@...> wrote:

> It depends on which operating system you're using and how you've
> installed Tomcat.
> Can you tell us which it is?
>
>
>
> On Wed, 2007-08-22 at 07:19, Karel V Sedlacek wrote:
> > Thanks for this info,...
> >
> > How do I implement this tip?
> >
> > #18. Use the -server JVM option. This enables the server JVM, which JIT
> > compiles bytecode much earlier, and with stronger optimizations. Startup
> > and first calls will be slower due to JIT compilation taking more time,
> > but subsequent ones will be faster.
> >
> > Karel
> >
> > > In putting #1 into the JAVA_OPTS (which it appears that is the
> > > CATALINA_OPTS
> > > for our implementation), it doesn't appear to work, as Tomcat doesn't
> > > restart.  It could be our version -- which is currently 5.0.30.  please
> > > let
> > > me know if there are other steps we need to take here as well.
> > >
> > > thanks,
> > > Kim :-)
> > >
> > > On 8/21/07, Shane Witbeck <shane@...> wrote:
> > >>
> > >> I thought my latest blog post would be of interest to the people on this
> > >> list:
> > >>
> > >>
> > >> http://www.digitalsanctum.com/2007/08/18/20-tips-for-using-tomcat-in-production/
> > >>
> > >> ---------------------------------------------------------------------
> > >> To start a new topic, e-mail: users@...
> > >> To unsubscribe, e-mail: users-unsubscribe@...
> > >> For additional commands, e-mail: users-help@...
> > >>
> > >>
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@...
> > To unsubscribe, e-mail: users-unsubscribe@...
> > For additional commands, e-mail: users-help@...
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@...
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

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


Parent Message unknown RES: 20 Tips for Using Tomcat in Production

by Milanez, Marcus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


If you are running tomcat under windows services, you can select which
JVM you want to use through bin/tomcatXw.exe.

-----Mensagem original-----
De: Karel V Sedlacek [mailto:kvs1@...]
Enviada em: quarta-feira, 22 de agosto de 2007 08:19
Para: Tomcat Users List
Assunto: Re: 20 Tips for Using Tomcat in Production

Thanks for this info,...

How do I implement this tip?

#18. Use the -server JVM option. This enables the server JVM, which JIT
compiles bytecode much earlier, and with stronger optimizations. Startup
and first calls will be slower due to JIT compilation taking more time,
but subsequent ones will be faster.

Karel

> In putting #1 into the JAVA_OPTS (which it appears that is the
> CATALINA_OPTS for our implementation), it doesn't appear to work, as
> Tomcat doesn't restart.  It could be our version -- which is currently

> 5.0.30.  please let me know if there are other steps we need to take
> here as well.
>
> thanks,
> Kim :-)
>
> On 8/21/07, Shane Witbeck <shane@...> wrote:
>>
>> I thought my latest blog post would be of interest to the people on
>> this
>> list:
>>
>>
>> http://www.digitalsanctum.com/2007/08/18/20-tips-for-using-tomcat-in-
>> production/
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@... To unsubscribe,

>> e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>



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


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


Re: 20 Tips for Using Tomcat in Production

by Karel Sedlacek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am running a 4 core, 8GB, Server 2003 SP1 EE (not R2) machine.
One JRE: 1.5.0_09

Karel

> as far as i know this option is outdated, hence the vm automatically
> goes into server mode if it detects a server class machine (>=2GB RAM,
> 2 processors (which also includes ht or dualcore)
>
> leon
>
> maybe wrong though
>
> On 8/22/07, Ben Souther <ben@...> wrote:
>> It depends on which operating system you're using and how you've
>> installed Tomcat.
>> Can you tell us which it is?
>>
>>
>>
>> On Wed, 2007-08-22 at 07:19, Karel V Sedlacek wrote:
>> > Thanks for this info,...
>> >
>> > How do I implement this tip?
>> >
>> > #18. Use the -server JVM option. This enables the server JVM, which
>> JIT
>> > compiles bytecode much earlier, and with stronger optimizations.
>> Startup
>> > and first calls will be slower due to JIT compilation taking more
>> time,
>> > but subsequent ones will be faster.
>> >
>> > Karel
>> >
>> > > In putting #1 into the JAVA_OPTS (which it appears that is the
>> > > CATALINA_OPTS
>> > > for our implementation), it doesn't appear to work, as Tomcat
>> doesn't
>> > > restart.  It could be our version -- which is currently 5.0.30.
>> please
>> > > let
>> > > me know if there are other steps we need to take here as well.
>> > >
>> > > thanks,
>> > > Kim :-)
>> > >
>> > > On 8/21/07, Shane Witbeck <shane@...> wrote:
>> > >>
>> > >> I thought my latest blog post would be of interest to the people on
>> this
>> > >> list:
>> > >>
>> > >>
>> > >> http://www.digitalsanctum.com/2007/08/18/20-tips-for-using-tomcat-in-production/
>> > >>
>> > >> ---------------------------------------------------------------------
>> > >> To start a new topic, e-mail: users@...
>> > >> To unsubscribe, e-mail: users-unsubscribe@...
>> > >> For additional commands, e-mail: users-help@...
>> > >>
>> > >>
>> > >
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To start a new topic, e-mail: users@...
>> > To unsubscribe, e-mail: users-unsubscribe@...
>> > For additional commands, e-mail: users-help@...
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@...
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@...
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>



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


Re: 20 Tips for Using Tomcat in Production

by Ronald Klop :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

See the table in this page. On Windows on i586 java always defaults to client runtime. (amd64 or ia-64 are different)
http://java.sun.com/docs/hotspot/gc5.0/ergo5.html

If you can set JAVA_OPTS=-server java starts with it. Print System.getProperties() and you can see what runtime is used.

Ronald.

On Wed Aug 22 14:15:27 CEST 2007 Tomcat Users List <users@...> wrote:

> I am running a 4 core, 8GB, Server 2003 SP1 EE (not R2) machine.
> One JRE: 1.5.0_09
>
> Karel
>
> > as far as i know this option is outdated, hence the vm automatically
> > goes into server mode if it detects a server class machine (>=2GB RAM,
> > 2 processors (which also includes ht or dualcore)
> >
> > leon
> >
> > maybe wrong though
> >
> > On 8/22/07, Ben Souther <ben@...> wrote:
> >> It depends on which operating system you're using and how you've
> >> installed Tomcat.
> >> Can you tell us which it is?
> >>
> >>
> >>
> >> On Wed, 2007-08-22 at 07:19, Karel V Sedlacek wrote:
> >> > Thanks for this info,...
> >> >
> >> > How do I implement this tip?
> >> >
> >> > #18. Use the -server JVM option. This enables the server JVM, which
> >> JIT
> >> > compiles bytecode much earlier, and with stronger optimizations.
> >> Startup
> >> > and first calls will be slower due to JIT compilation taking more
> >> time,
> >> > but subsequent ones will be faster.
> >> >
> >> > Karel
> >> >
> >> > > In putting #1 into the JAVA_OPTS (which it appears that is the
> >> > > CATALINA_OPTS
> >> > > for our implementation), it doesn't appear to work, as Tomcat
> >> doesn't
> >> > > restart. It could be our version -- which is currently 5.0.30.
> >> please
> >> > > let
> >> > > me know if there are other steps we need to take here as well.
> >> > >
> >> > > thanks,
> >> > > Kim :-)
> >> > >
> >> > > On 8/21/07, Shane Witbeck <shane@...> wrote:
> >> > >>
> >> > >> I thought my latest blog post would be of interest to the people on
> >> this
> >> > >> list:
> >> > >>
> >> > >>
> >> > >> http://www.digitalsanctum.com/2007/08/18/20-tips-for-using-tomcat-in-production/
> >> > >>
>

Re: 20 Tips for Using Tomcat in Production

by Karel Sedlacek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OK, let me give this a whirl.

Karel

At 09:20 AM 8/22/2007, you wrote:

>See the table in this page. On Windows on i586 java always defaults to
>client runtime. (amd64 or ia-64 are different)
>http://java.sun.com/docs/hotspot/gc5.0/ergo5.html
>
>If you can set JAVA_OPTS=-server java starts with it. Print
>System.getProperties() and you can see what runtime is used.
>
>Ronald.
>
>On Wed Aug 22 14:15:27 CEST 2007 Tomcat Users List
><users@...> wrote:
>>I am running a 4 core, 8GB, Server 2003 SP1 EE (not R2) machine.
>>One JRE: 1.5.0_09
>>Karel
>> > as far as i know this option is outdated, hence the vm automatically
>> > goes into server mode if it detects a server class machine (>=2GB RAM,
>> > 2 processors (which also includes ht or dualcore)
>> >
>> > leon
>> >
>> > maybe wrong though
>> >
>> > On 8/22/07, Ben Souther <ben@...> wrote:
>> >> It depends on which operating system you're using and how you've
>> >> installed Tomcat.
>> >> Can you tell us which it is?
>> >>
>> >>
>> >>
>> >> On Wed, 2007-08-22 at 07:19, Karel V Sedlacek wrote:
>> >> > Thanks for this info,...
>> >> >
>> >> > How do I implement this tip?
>> >> >
>> >> > #18. Use the -server JVM option. This enables the server JVM, which
>> >> JIT
>> >> > compiles bytecode much earlier, and with stronger optimizations.
>> >> Startup
>> >> > and first calls will be slower due to JIT compilation taking more
>> >> time,
>> >> > but subsequent ones will be faster.
>> >> >
>> >> > Karel
>> >> >
>> >> > > In putting #1 into the JAVA_OPTS (which it appears that is the
>> >> > > CATALINA_OPTS
>> >> > > for our implementation), it doesn't appear to work, as Tomcat
>> >> doesn't
>> >> > > restart. It could be our version -- which is currently 5.0.30.
>> >> please
>> >> > > let
>> >> > > me know if there are other steps we need to take here as well.
>> >> > >
>> >> > > thanks,
>> >> > > Kim :-)
>> >> > >
>> >> > > On 8/21/07, Shane Witbeck <shane@...> wrote:
>> >> > >>
>> >> > >> I thought my latest blog post would be of interest to the people on
>> >> this
>> >> > >> list:
>> >> > >>
>> >> > >>
>> >> > >>
>> http://www.digitalsanctum.com/2007/08/18/20-tips-for-using-tomcat-in-production/
>> >> > >>

Karel Sedlacek                                          kvs1@...
CIT Data Administration                                 Phn 607-255-7742
Cornell University                                              Fax
607-255-1297
Ithaca, NY 14853



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


RE: 20 Tips for Using Tomcat in Production

by Caldarale, Charles R :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> From: Leon Rosenberg [mailto:rosenberg.leon@...]
> Subject: Re: 20 Tips for Using Tomcat in Production
>
> as far as i know this option is outdated, hence the vm automatically
> goes into server mode if it detects a server class machine (>=2GB RAM,
> 2 processors (which also includes ht or dualcore)

The automatic mode switch based on platform configuration occurs only
when using the standard java launcher.  If running as a Windows service,
the selection of the server or client .dll must be done explicitly in
the service properties.

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


Re: [OT] 20 Tips for Using Tomcat in Production

by Christopher Schultz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Karel,

Karel V Sedlacek wrote:
> I am running a 4 core, 8GB, Server 2003 SP1 EE (not R2) machine.
> One JRE: 1.5.0_09

Oh, it's a Windows machine. Are those ever called "servers"? ;)

(Just kidding.)

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGzETh9CaO5/Lv0PARAkAXAJ9YXVbnB+Q+epFof/Z1LC1eQ4nyVACfZp8H
oyLDlkQgpgyP/8SwZLdOh5g=
=H1v4
-----END PGP SIGNATURE-----

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


Parent Message unknown RE: 20 Tips for Using Tomcat in Production

by Karel Sedlacek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you, we are running Windows,... will check the Service properties.

At 09:55 AM 8/22/2007, you wrote:

> > From: Leon Rosenberg [mailto:rosenberg.leon@...]
> > Subject: Re: 20 Tips for Using Tomcat in Production
> >
> > as far as i know this option is outdated, hence the vm automatically
> > goes into server mode if it detects a server class machine (>=2GB RAM,
> > 2 processors (which also includes ht or dualcore)
>
>The automatic mode switch based on platform configuration occurs only
>when using the standard java launcher.  If running as a Windows service,
>the selection of the server or client .dll must be done explicitly in
>the service properties.
>
>  - 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@...
>To unsubscribe, e-mail: users-unsubscribe@...
>For additional commands, e-mail: users-help@...

Karel Sedlacek                                          kvs1@...
CIT Data Administration                                 Phn 607-255-7742
Cornell University                                              Fax
607-255-1297
Ithaca, NY 14853



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


Parent Message unknown RES: 20 Tips for Using Tomcat in Production

by Milanez, Marcus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Another tip that could be considered is the use of Tomcat Native
Libraries (http://tomcat.heanet.ie/native/) , what do you think?

-----Mensagem original-----
De: Caldarale, Charles R [mailto:Chuck.Caldarale@...]
Enviada em: quarta-feira, 22 de agosto de 2007 10:56
Para: Tomcat Users List
Assunto: RE: 20 Tips for Using Tomcat in Production

> From: Leon Rosenberg [mailto:rosenberg.leon@...]
> Subject: Re: 20 Tips for Using Tomcat in Production
>
> as far as i know this option is outdated, hence the vm automatically
> goes into server mode if it detects a server class machine (>=2GB RAM,
> 2 processors (which also includes ht or dualcore)

The automatic mode switch based on platform configuration occurs only
when using the standard java launcher.  If running as a Windows service,
the selection of the server or client .dll must be done explicitly in
the service properties.

 - Chuck

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


Parent Message unknown RE: [OT] 20 Tips for Using Tomcat in Production

by Hehl, Thomas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>Oh, it's a Windows machine. Are those ever called "servers"? ;)

Well, I'm a Unix guy, so that's not what I call them. :)

-----Original Message-----
From: Christopher Schultz [mailto:chris@...]
Sent: Wednesday, August 22, 2007 10:15 AM
To: Tomcat Users List
Subject: Re: [OT] 20 Tips for Using Tomcat in Production

* PGP Signed by an unknown key

Karel,

Karel V Sedlacek wrote:
> I am running a 4 core, 8GB, Server 2003 SP1 EE (not R2) machine.
> One JRE: 1.5.0_09

Oh, it's a Windows machine. Are those ever called "servers"? ;)

(Just kidding.)

-chris

* Unknown Key
* 0xF2EFD0F0(L)


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

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


Parent Message unknown Re: RES: 20 Tips for Using Tomcat in Production

by Karel Sedlacek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Marcus,

I'm not sure I understand...

Karel

At 10:21 AM 8/22/2007, you wrote:

>Another tip that could be considered is the use of Tomcat Native
>Libraries (http://tomcat.heanet.ie/native/) , what do you think?
>
>-----Mensagem original-----
>De: Caldarale, Charles R [mailto:Chuck.Caldarale@...]
>Enviada em: quarta-feira, 22 de agosto de 2007 10:56
>Para: Tomcat Users List
>Assunto: RE: 20 Tips for Using Tomcat in Production
>
> > From: Leon Rosenberg [mailto:rosenberg.leon@...]
> > Subject: Re: 20 Tips for Using Tomcat in Production
> >
> > as far as i know this option is outdated, hence the vm automatically
> > goes into server mode if it detects a server class machine (>=2GB RAM,
> > 2 processors (which also includes ht or dualcore)
>
>The automatic mode switch based on platform configuration occurs only
>when using the standard java launcher.  If running as a Windows service,
>the selection of the server or client .dll must be done explicitly in
>the service properties.
>
>  - Chuck
>
>---------------------------------------------------------------------
>To start a new topic, e-mail: users@...
>To unsubscribe, e-mail: users-unsubscribe@...
>For additional commands, e-mail: users-help@...

Karel Sedlacek                                          kvs1@...
CIT Data Administration                                 Phn 607-255-7742
Cornell University                                              Fax
607-255-1297
Ithaca, NY 14853



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


Parent Message unknown RES: RES: 20 Tips for Using Tomcat in Production

by Milanez, Marcus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Karel,

Take a look at http://tomcat.apache.org/tomcat-5.5-doc/apr.html, which
describes native libraries. We started using it sometime ago and we
noticed better response times in or application.

-----Mensagem original-----
De: Karel Sedlacek [mailto:kvs1@...]
Enviada em: quarta-feira, 22 de agosto de 2007 11:32
Para: Tomcat Users List
Assunto: Re: RES: 20 Tips for Using Tomcat in Production

Marcus,

I'm not sure I understand...

Karel

At 10:21 AM 8/22/2007, you wrote:

>Another tip that could be considered is the use of Tomcat Native
>Libraries (http://tomcat.heanet.ie/native/) , what do you think?
>
>-----Mensagem original-----
>De: Caldarale, Charles R [mailto:Chuck.Caldarale@...]
>Enviada em: quarta-feira, 22 de agosto de 2007 10:56
>Para: Tomcat Users List
>Assunto: RE: 20 Tips for Using Tomcat in Production
>
> > From: Leon Rosenberg [mailto:rosenberg.leon@...]
> > Subject: Re: 20 Tips for Using Tomcat in Production
> >
> > as far as i know this option is outdated, hence the vm automatically

> > goes into server mode if it detects a server class machine (>=2GB
> > RAM,
> > 2 processors (which also includes ht or dualcore)
>
>The automatic mode switch based on platform configuration occurs only
>when using the standard java launcher.  If running as a Windows
>service, the selection of the server or client .dll must be done
>explicitly in the service properties.
>
>  - Chuck
>
>---------------------------------------------------------------------
>To start a new topic, e-mail: users@... To unsubscribe,
>e-mail: users-unsubscribe@...
>For additional commands, e-mail: users-help@...

Karel Sedlacek                                          kvs1@...
CIT Data Administration                                 Phn 607-255-7742
Cornell University                                              Fax
607-255-1297
Ithaca, NY 14853



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


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


Re: 20 Tips for Using Tomcat in Production

by Leon Rosenberg-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 8/22/07, Milanez, Marcus <Marcus.Milanez@...> wrote:
>
> Another tip that could be considered is the use of Tomcat Native
> Libraries (http://tomcat.heanet.ie/native/) , what do you think?

PLEASE DONT!

Leon


>
> -----Mensagem original-----
> De: Caldarale, Charles R [mailto:Chuck.Caldarale@...]
> Enviada em: quarta-feira, 22 de agosto de 2007 10:56
> Para: Tomcat Users List
> Assunto: RE: 20 Tips for Using Tomcat in Production
>
> > From: Leon Rosenberg [mailto:rosenberg.leon@...]
> > Subject: Re: 20 Tips for Using Tomcat in Production
> >
> > as far as i know this option is outdated, hence the vm automatically
> > goes into server mode if it detects a server class machine (>=2GB RAM,
> > 2 processors (which also includes ht or dualcore)
>
> The automatic mode switch based on platform configuration occurs only
> when using the standard java launcher.  If running as a Windows service,
> the selection of the server or client .dll must be done explicitly in
> the service properties.
>
>  - Chuck
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@...
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

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


Parent Message unknown Re: 20 Tips for Using Tomcat in Production

by Karel Sedlacek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think I'll stick to the recommendations that I sort of understand...

Thanks
Karel

At 11:22 AM 8/22/2007, you wrote:
>On 8/22/07, Milanez, Marcus <Marcus.Milanez@...> wrote:
> >
> > Another tip that could be considered is the use of Tomcat Native
> > Libraries (http://tomcat.heanet.ie/native/) , what do you think?
>
>PLEASE DONT!

(I won't)

>Leon
>
>
> >
> > -----Mensagem original-----
> > De: Caldarale, Charles R [mailto:Chuck.Caldarale@...]
> > Enviada em: quarta-feira, 22 de agosto de 2007 10:56
> > Para: Tomcat Users List
> > Assunto: RE: 20 Tips for Using Tomcat in Production
> >
> > > From: Leon Rosenberg [mailto:rosenberg.leon@...]
> > > Subject: Re: 20 Tips for Using Tomcat in Production
> > >
> > > as far as i know this option is outdated, hence the vm automatically
> > > goes into server mode if it detects a server class machine (>=2GB RAM,
> > > 2 processors (which also includes ht or dualcore)
> >
> > The automatic mode switch based on platform configuration occurs only
> > when using the standard java launcher.  If running as a Windows service,
> > the selection of the server or client .dll must be done explicitly in
> > the service properties.
> >
> >  - Chuck
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@...
> > To unsubscribe, e-mail: users-unsubscribe@...
> > For additional commands, e-mail: users-help@...
> >
> >
>
>---------------------------------------------------------------------
>To start a new topic, e-mail: users@...
>To unsubscribe, e-mail: users-unsubscribe@...
>For additional commands, e-mail: users-help@...

Karel Sedlacek                                          kvs1@...
CIT Data Administration                                 Phn 607-255-7742
Cornell University                                              Fax
607-255-1297
Ithaca, NY 14853



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


Parent Message unknown RES: 20 Tips for Using Tomcat in Production

by Milanez, Marcus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What's wrong? Problems with native libraries?

-----Mensagem original-----
De: Leon Rosenberg [mailto:rosenberg.leon@...]
Enviada em: quarta-feira, 22 de agosto de 2007 12:23
Para: Tomcat Users List
Assunto: Re: 20 Tips for Using Tomcat in Production

On 8/22/07, Milanez, Marcus <Marcus.Milanez@...> wrote:
>
> Another tip that could be considered is the use of Tomcat Native
> Libraries (http://tomcat.heanet.ie/native/) , what do you think?

PLEASE DONT!

Leon


>
> -----Mensagem original-----
> De: Caldarale, Charles R [mailto:Chuck.Caldarale@...]
> Enviada em: quarta-feira, 22 de agosto de 2007 10:56
> Para: Tomcat Users List
> Assunto: RE: 20 Tips for Using Tomcat in Production
>
> > From: Leon Rosenberg [mailto:rosenberg.leon@...]
> > Subject: Re: 20 Tips for Using Tomcat in Production
> >
> > as far as i know this option is outdated, hence the vm automatically

> > goes into server mode if it detects a server class machine (>=2GB
> > RAM,
> > 2 processors (which also includes ht or dualcore)
>
> The automatic mode switch based on platform configuration occurs only
> when using the standard java launcher.  If running as a Windows
> service, the selection of the server or client .dll must be done
> explicitly in the service properties.
>
>  - Chuck
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@... To unsubscribe,
> e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

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


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


RE: 20 Tips for Using Tomcat in Production

by Caldarale, Charles R :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> From: Milanez, Marcus [mailto:Marcus.Milanez@...]
> Subject: RES: 20 Tips for Using Tomcat in Production
>
> What's wrong? Problems with native libraries?

Makes the environment much more complex and is platform-specific,
eliminating one of Tomcat's highly desirable attributes - platform
independence.  If maximum performance is needed, then it's certainly
appropriate, but many (most?) servers are rarely ever saturated.

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


Re: 20 Tips for Using Tomcat in Production

by Bugzilla from ole.ersoy@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm trying to get the -server option working with jsvc.  When inserting -server I get this:

[root@ole init.d]# service tomcat start
Starting tomcat
27/08/2007 21:11:08 10371 jsvc error: Invalid option -server
27/08/2007 21:11:08 10371 jsvc error: Cannot parse command line arguments

The script looks like this (Note that if I remove "-server" tomcat start fine):

CATALINA_HOME=/usr/share/apache-tomcat
JAVA_HOME=/usr/lib/jvm/java
DAEMON_LAUNCHER=$CATALINA_HOME/bin/jsvc
TOMCAT_USER=tomcat
TMP_DIR=/var/cache/apache-tomcat/temp
CATALINA_OPTS=-server
CLASSPATH=$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/bin/commons-daemon.jar:$CATALINA_HOME/bin/bootstrap.jar

case "$1" in
  start)
    #
    # Start Tomcat
    #
    echo -n "Starting tomcat"
    echo
    $DAEMON_LAUNCHER -server \
    -user $TOMCAT_USER \
    -home $JAVA_HOME \
    -Dcatalina.home=$CATALINA_HOME \
    -Djava.io.tmpdir=$TMP_DIR \
    -outfile $CATALINA_HOME/logs/catalina.out \
    -errfile '&1' \
    -cp $CLASSPATH \
    org.apache.catalina.startup.Bootstrap
    #
    # To get a verbose JVM
    #-verbose     # To get a debug of jsvc.
    #-debug
    ;;

Any ideas?

Thanks,
- Ole




Karel Sedlacek wrote:

> OK, let me give this a whirl.
>
> Karel
>
> At 09:20 AM 8/22/2007, you wrote:
>> See the table in this page. On Windows on i586 java always defaults to
>> client runtime. (amd64 or ia-64 are different)
>> http://java.sun.com/docs/hotspot/gc5.0/ergo5.html
>>
>> If you can set JAVA_OPTS=-server java starts with it. Print
>> System.getProperties() and you can see what runtime is used.
>>
>> Ronald.
>>
>> On Wed Aug 22 14:15:27 CEST 2007 Tomcat Users List
>> <users@...> wrote:
>>> I am running a 4 core, 8GB, Server 2003 SP1 EE (not R2) machine.
>>> One JRE: 1.5.0_09
>>> Karel
>>> > as far as i know this option is outdated, hence the vm automatically
>>> > goes into server mode if it detects a server class machine (>=2GB RAM,
>>> > 2 processors (which also includes ht or dualcore)
>>> >
>>> > leon
>>> >
>>> > maybe wrong though
>>> >
>>> > On 8/22/07, Ben Souther <ben@...> wrote:
>>> >> It depends on which operating system you're using and how you've
>>> >> installed Tomcat.
>>> >> Can you tell us which it is?
>>> >>
>>> >>
>>> >>
>>> >> On Wed, 2007-08-22 at 07:19, Karel V Sedlacek wrote:
>>> >> > Thanks for this info,...
>>> >> >
>>> >> > How do I implement this tip?
>>> >> >
>>> >> > #18. Use the -server JVM option. This enables the server JVM, which
>>> >> JIT
>>> >> > compiles bytecode much earlier, and with stronger optimizations.
>>> >> Startup
>>> >> > and first calls will be slower due to JIT compilation taking more
>>> >> time,
>>> >> > but subsequent ones will be faster.
>>> >> >
>>> >> > Karel
>>> >> >
>>> >> > > In putting #1 into the JAVA_OPTS (which it appears that is the
>>> >> > > CATALINA_OPTS
>>> >> > > for our implementation), it doesn't appear to work, as Tomcat
>>> >> doesn't
>>> >> > > restart. It could be our version -- which is currently 5.0.30.
>>> >> please
>>> >> > > let
>>> >> > > me know if there are other steps we need to take here as well.
>>> >> > >
>>> >> > > thanks,
>>> >> > > Kim :-)
>>> >> > >
>>> >> > > On 8/21/07, Shane Witbeck <shane@...> wrote:
>>> >> > >>
>>> >> > >> I thought my latest blog post would be of interest to the
>>> people on
>>> >> this
>>> >> > >> list:
>>> >> > >>
>>> >> > >>
>>> >> > >>
>>> http://www.digitalsanctum.com/2007/08/18/20-tips-for-using-tomcat-in-production/ 
>>>
>>> >> > >>
>
> Karel Sedlacek                                          kvs1@...
> CIT Data Administration                                 Phn 607-255-7742
> Cornell University                                              Fax
> 607-255-1297
> Ithaca, NY 14853
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@...
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

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


Re: 20 Tips for Using Tomcat in Production

by Bugzilla from ole.ersoy@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I ran ./jsvc help and notice it had a -jvm option.  So I tried this:

CATALINA_HOME=/usr/share/apache-tomcat
JAVA_HOME=/usr/lib/jvm/java
DAEMON_LAUNCHER=$CATALINA_HOME/bin/jsvc
TOMCAT_USER=tomcat
TMP_DIR=/var/cache/apache-tomcat/temp
CLASSPATH=$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/bin/commons-daemon.jar:$CATALINA_HOME/bin/bootstrap.jar

case "$1" in
  start)
    #
    # Start Tomcat
    #
    echo -n "Starting tomcat"
    echo
    $DAEMON_LAUNCHER \
    -jvm server \ #<<<<<<<<<<<<This is the good part
    -user $TOMCAT_USER \
    -home $JAVA_HOME \
    -Dcatalina.home=$CATALINA_HOME \
    -Djava.io.tmpdir=$TMP_DIR \
    -outfile $CATALINA_HOME/logs/catalina.out \
    -errfile '&1' \
    -cp $CLASSPATH \
    org.apache.catalina.startup.Bootstrap
    #
    # To get a verbose JVM
    #-verbose     # To get a debug of jsvc.
    #-debug
    ;;

And jsvc seems to be cool with it.  Anyone know if there is a way to verify that the jvm is running in server mode?

Thanks,
- Ole



Ole Ersoy wrote:

> Hi,
>
> I'm trying to get the -server option working with jsvc.  When inserting
> -server I get this:
>
> [root@ole init.d]# service tomcat start
> Starting tomcat
> 27/08/2007 21:11:08 10371 jsvc error: Invalid option -server
> 27/08/2007 21:11:08 10371 jsvc error: Cannot parse command line arguments
>
> The script looks like this (Note that if I remove "-server" tomcat start
> fine):
>
> CATALINA_HOME=/usr/share/apache-tomcat
> JAVA_HOME=/usr/lib/jvm/java
> DAEMON_LAUNCHER=$CATALINA_HOME/bin/jsvc
> TOMCAT_USER=tomcat
> TMP_DIR=/var/cache/apache-tomcat/temp
> CATALINA_OPTS=-server
> CLASSPATH=$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/bin/commons-daemon.jar:$CATALINA_HOME/bin/bootstrap.jar
>
>
> case "$1" in
>  start)
>    #
>    # Start Tomcat
>    #
>    echo -n "Starting tomcat"
>    echo
>    $DAEMON_LAUNCHER -server \
>    -user $TOMCAT_USER \
>    -home $JAVA_HOME \
>    -Dcatalina.home=$CATALINA_HOME \
>    -Djava.io.tmpdir=$TMP_DIR \
>    -outfile $CATALINA_HOME/logs/catalina.out \
>    -errfile '&1' \
>    -cp $CLASSPATH \
>    org.apache.catalina.startup.Bootstrap
>    #
>    # To get a verbose JVM
>    #-verbose     # To get a debug of jsvc.
>    #-debug
>    ;;
>
> Any ideas?
>
> Thanks,
> - Ole
>
>
>
>
> Karel Sedlacek wrote:
>> OK, let me give this a whirl.
>>
>> Karel
>>
>> At 09:20 AM 8/22/2007, you wrote:
>>> See the table in this page. On Windows on i586 java always defaults
>>> to client runtime. (amd64 or ia-64 are different)
>>> http://java.sun.com/docs/hotspot/gc5.0/ergo5.html
>>>
>>> If you can set JAVA_OPTS=-server java starts with it. Print
>>> System.getProperties() and you can see what runtime is used.
>>>
>>> Ronald.
>>>
>>> On Wed Aug 22 14:15:27 CEST 2007 Tomcat Users List
>>> <users@...> wrote:
>>>> I am running a 4 core, 8GB, Server 2003 SP1 EE (not R2) machine.
>>>> One JRE: 1.5.0_09
>>>> Karel
>>>> > as far as i know this option is outdated, hence the vm automatically
>>>> > goes into server mode if it detects a server class machine (>=2GB
>>>> RAM,
>>>> > 2 processors (which also includes ht or dualcore)
>>>> >
>>>> > leon
>>>> >
>>>> > maybe wrong though
>>>> >
>>>> > On 8/22/07, Ben Souther <ben@...> wrote:
>>>> >> It depends on which operating system you're using and how you've
>>>> >> installed Tomcat.
>>>> >> Can you tell us which it is?
>>>> >>
>>>> >>
>>>> >>
>>>> >> On Wed, 2007-08-22 at 07:19, Karel V Sedlacek wrote:
>>>> >> > Thanks for this info,...
>>>> >> >
>>>> >> > How do I implement this tip?
>>>> >> >
>>>> >> > #18. Use the -server JVM option. This enables the server JVM,
>>>> which
>>>> >> JIT
>>>> >> > compiles bytecode much earlier, and with stronger optimizations.
>>>> >> Startup
>>>> >> > and first calls will be slower due to JIT compilation taking more
>>>> >> time,
>>>> >> > but subsequent ones will be faster.
>>>> >> >
>>>> >> > Karel
>>>> >> >
>>>> >> > > In putting #1 into the JAVA_OPTS (which it appears that is the
>>>> >> > > CATALINA_OPTS
>>>> >> > > for our implementation), it doesn't appear to work, as Tomcat
>>>> >> doesn't
>>>> >> > > restart. It could be our version -- which is currently 5.0.30.
>>>> >> please
>>>> >> > > let
>>>> >> > > me know if there are other steps we need to take here as well.
>>>> >> > >
>>>> >> > > thanks,
>>>> >> > > Kim :-)
>>>> >> > >
>>>> >> > > On 8/21/07, Shane Witbeck <shane@...> wrote:
>>>> >> > >>
>>>> >> > >> I thought my latest blog post would be of interest to the
>>>> people on
>>>> >> this
>>>> >> > >> list:
>>>> >> > >>
>>>> >> > >>
>>>> >> > >>
>>>> http://www.digitalsanctum.com/2007/08/18/20-tips-for-using-tomcat-in-production/ 
>>>>
>>>> >> > >>
>>
>> Karel Sedlacek                                          kvs1@...
>> CIT Data Administration                                 Phn 607-255-7742
>> Cornell University                                              Fax
>> 607-255-1297
>> Ithaca, NY 14853
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@...
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>

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


RE: 20 Tips for Using Tomcat in Production

by Caldarale, Charles R :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> From: Ole Ersoy [mailto:ole.ersoy@...]
> Subject: Re: 20 Tips for Using Tomcat in Production
>
> Anyone know if there is a way to verify that the
> jvm is running in server mode?

Enable JMX and use JConsole to look inside, or install Lambda Probe and
look at its System Information tab.  Get Lambda Probe from here:
http://www.lambdaprobe.org

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

< Prev | 1 - 2 - 3 | Next >