You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Don Hill <ju...@gmail.com> on 2010/12/27 16:12:06 UTC

Tomcat 5.5/HTTPD cluster question

Hi.

I am working on a tomcat 5.5 cluster which is using ajp/1.3 and mod_jk and
trying to determine the best cluster design given the hardware. I have 2
xeon 2.3 ghz 2 CPU machines with 38GB ram machine. Currently here is the
config I am using. The TOMCAT and HTTPD servers are on the same physical
machine.

Each machine is running HTTPD 1.3 with prefork, the MaxClients is 256 due
compiled in limits. Each machine has 4 virtualhosts running through one
instance of HTTPD. Two of the VHOSTS are the same app running on Tomcat 5.5
with 8GB RAM(configured by customer). The workers are configured to each
VHOST meaning for each machine there are 4 workers defined and one worker
is defined for each VHOST. I will try and depict this below. The current
load balancing is controlled by F5 and manages the load across 2 machines, 4
VHOST for each app.

Based on this info can someone recommend if this configuration could be
improved and if so what would you recommend ?

Thanks for any help on this.



| F5|

Re: Tomcat 5.5/HTTPD cluster question

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pid,

On 12/31/2010 5:42 AM, Pid wrote:
>                             LB
>                   ---------------------
>                   |                    |
>                 HTTPD                HTTPD
>              -----------          -----------
>              |          |         |          |
>           Tomcat     Tomcat    Tomcat     Tomcat

I challenge you to an ASCII diagramming competition :)

I feel sorry for readers who use proportional fonts to read posts.

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

iEYEARECAAYFAk0eXHQACgkQ9CaO5/Lv0PCBbQCdE7/Be9E0YKgsu5SpCFnP7TBN
BUoAn018tJLeHpDZdofOABSOMBCmj2Qe
=q33m
-----END PGP SIGNATURE-----

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


Re: Tomcat 5.5/HTTPD cluster question

Posted by Pid <pi...@pidster.com>.
On 12/31/10 3:46 AM, Don Hill wrote:
> Chris,
> 
> Thanks for following up on this. From what I can tell it appears that the
> HTTPD server is stalling at MaxClients. 

How are you measuring connections and arriving at the above?
The documentation for 2.0 states that MaxClients is configurable:

 http://httpd.apache.org/docs/2.0/mod/mpm_common.html#maxclients


> This usually happens after some
> mailing and the site gets hit really hard with users, upward of 3000 active
> sessions being handle by 2 HTTPD servers and 4 Tomcat instances. 

What do you mean by 'sessions' and how are you counting them?
HttpSessions in Tomcat, or something else?


> Since we
> are using prefork/mod_jk it seems there could also be some high CPU usage.

Why prefork *or* mod_jk?

Could be, or is high CPU usage?  What is your average CPU usage per
machine?  And at peak load?

> I
> have done extensive profiling from a heap perspective using jstat and jmap.
> I think I have the JVM tuned pretty good at this point.

What are your JVM settings?


> The Tomcat severs
> also had maxthreads for each JVM set really high like 1000 on the AJP/1.3
> connector. I brought each JVM down to 200 max threads.

What do you have in the mod_jk config for each worker?


> Currently there are 2 VHOSTS on each machine with one  HTTPD instance. We
> are load balancing via a F5 Load balancer. The LB manages load accros all 4
> VHOST. Each VHOST uses one worker for to talk to one dedicated tomcat JVM.

How does the F5 distinguish between vhosts, are they named differently?

So there's 2 HTTPD with 2 vhosts and 4 Tomcats, is the below correct?

                            LB
                  ---------------------
                  |                    |
                HTTPD                HTTPD
             -----------          -----------
             |          |         |          |
          Tomcat     Tomcat    Tomcat     Tomcat


The Tomcat's have 200 threads each, so your max concurrent connections
is 800.  What led you to reduce the number of connections?


p

> Besides doing upgrades to Tomcat/HTTPD servers do you think there are any
> configuration issues or can you suggest a better layout for this env. I was
> thinking of getting rid of the vhosts and use a balancer config in the
> mod_jk.config to manage the load to the Tomcat JVMs. This way the load could
> be balanced based on the Tomcat usage and not the VHOST usage as some of the
> load could be coming from static content and messing up the LB's balancing
> ability.
> 
> I was also thinking that we should switch to worker mpm instead of the
> prefork.
> 
> Anyways any thoughts or suggestions would be great.
> 
> 
> 
> On Thu, Dec 30, 2010 at 8:19 PM, Christopher Schultz <
> chris@christopherschultz.net> wrote:
> 
> Don,
> 
> On 12/30/2010 10:41 AM, Don Hill wrote:
>>>> My mistake, Here are the details. I should have confirmed first before
>>>> posting but besides the apache version everything else is correct.
>>>>
>>>> tomcat 5.5.2.7
> 
> That's not a version published by Tomcat. More likely, this is a version
> packaged by RHEL. If it's really based upon Tomcat 5.5.2 (a reasonable
> guess), you seriously need to upgrade. If that was a typo and you are
> really running Tomcat 5.5.27, then you could still afford to upgrade to
> 5.5.31 which is the latest.
> 
> You described your environment to a certain extent, but didn't say what
> your goals were: are you experiencing any problems with your setup? Are
> you just looking to streamline things so that you can increase load
> without having to upgrade anything?
> 
> If things are going well, why change anything?
> 
> If you have a specific goal, let us know what it is and maybe we can
> help you with it.
> 
> -chris
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>


Re: Tomcat 5.5/HTTPD cluster question

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Don,

On 12/30/2010 10:46 PM, Don Hill wrote:
> From what I can tell it appears that the HTTPD server is stalling at
> MaxClients.

So you have too many clients for your httpd server? Well, if you have
resources to spare (memory and CPU), go ahead and increase MaxClients.

> This usually happens after some mailing and the site gets hit really
> hard with users, upward of 3000 active sessions being handle by 2
> HTTPD servers and 4 Tomcat instances.

The number of sessions is not really relevant unless you store lots of
stuff in the session. The number of simultaneous /requests/ is more
relevant.

> Since we are using prefork/mod_jk it seems there could also be some
> high CPU usage.

There's only one way to find out: measure it. Frankly, there shouldn't
be too much difference between the prefork and worker MPMs. If you are
using the "event" MPM (which is like Tomcat's NIO connector) you may see
better performance for CPU-bound requests.

> I have done extensive profiling from a heap perspective using jstat
> and jmap. I think I have the JVM tuned pretty good at this point.

Good.

> The Tomcat severs also had maxthreads for each JVM set really high
> like 1000 on the AJP/1.3 connector. I brought each JVM down to 200
> max threads.

If Tomcat's MaxThreads is greater than httpd's MaxClients / N where N is
the number of Tomcat nodes, then you are configuring threads that won't
be used.

So, if you have 2 clustered Tomcat instances each with 1000 MaxThreads,
that's 2000 simultaneous requests that the TC cluster can handle. If you
have httpd's MaxClients set to 256, then you have 2000 - 256 = 1744
unused threads across two JVMs taking up memory and never doing anything
for you.

> Currently there are 2 VHOSTS on each machine with one  HTTPD
> instance. We are load balancing via a F5 Load balancer. The LB
> manages load accros all 4 VHOST. Each VHOST uses one worker for to
> talk to one dedicated tomcat JVM.

So, you've got something like this?

              /----> Tomcat A1 (httpd vhost 1)
     httpd A <
    /         \----> Tomcat A2 (httpd vhost 2)
F5 <
    \         /----> Tomcat B1 (httpd vhost 1)
     httpd B <
              \----> Tomcat B2 (httpd vhost 2)

Are all Tomcats running the same webapp(s)?

> Besides doing upgrades to Tomcat/HTTPD servers do you think there are
> any configuration issues or can you suggest a better layout for this
> env.

You'd have to give us more information. For instance, if you are limited
to 256 MaxClients for your httpd processes, you might want to launch
more than 1 httpd process on the nodes you have. Otherwise, you might be
able to handle much more load than your connection limit allows.

> I was thinking of getting rid of the vhosts and use a balancer config
> in the mod_jk.config to manage the load to the Tomcat JVMs.

You could even take httpd out of the equation and just use the F5 to
load balance directly to the Tomcat instances. I suspect there's no
limit on Tomcat's MaxThreads like there is on httpd's MaxClients.

> This way the load could be balanced based on the Tomcat usage and not
> the VHOST usage as some of the load could be coming from static
> content and messing up the LB's balancing ability.

You could even configure the F5 to recognize requests for static content
and route them to the httpd instances.

> I was also thinking that we should switch to worker mpm instead of
> the prefork.

As always, test for your configuration. You may find that you don't get
much benefit. Unless you can observe a measurable improvement, it's
better not to change something in a production configuration.

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

iEYEARECAAYFAk0eXAoACgkQ9CaO5/Lv0PDftgCgpQOlGuoHYMzhACg4l8JptwzC
yEcAnjT4gmdNXZaFtuw4TmGX3zsCneVd
=A5nw
-----END PGP SIGNATURE-----

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


Re: Tomcat 5.5/HTTPD cluster question

Posted by Don Hill <ju...@gmail.com>.
Chris,

Thanks for following up on this. From what I can tell it appears that the
HTTPD server is stalling at MaxClients. This usually happens after some
mailing and the site gets hit really hard with users, upward of 3000 active
sessions being handle by 2 HTTPD servers and 4 Tomcat instances. Since we
are using prefork/mod_jk it seems there could also be some high CPU usage. I
have done extensive profiling from a heap perspective using jstat and jmap.
I think I have the JVM tuned pretty good at this point. The Tomcat severs
also had maxthreads for each JVM set really high like 1000 on the AJP/1.3
connector. I brought each JVM down to 200 max threads.

Currently there are 2 VHOSTS on each machine with one  HTTPD instance. We
are load balancing via a F5 Load balancer. The LB manages load accros all 4
VHOST. Each VHOST uses one worker for to talk to one dedicated tomcat JVM.

Besides doing upgrades to Tomcat/HTTPD servers do you think there are any
configuration issues or can you suggest a better layout for this env. I was
thinking of getting rid of the vhosts and use a balancer config in the
mod_jk.config to manage the load to the Tomcat JVMs. This way the load could
be balanced based on the Tomcat usage and not the VHOST usage as some of the
load could be coming from static content and messing up the LB's balancing
ability.

I was also thinking that we should switch to worker mpm instead of the
prefork.

Anyways any thoughts or suggestions would be great.



On Thu, Dec 30, 2010 at 8:19 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Don,
>
> On 12/30/2010 10:41 AM, Don Hill wrote:
> > My mistake, Here are the details. I should have confirmed first before
> > posting but besides the apache version everything else is correct.
> >
> > tomcat 5.5.2.7
>
> That's not a version published by Tomcat. More likely, this is a version
> packaged by RHEL. If it's really based upon Tomcat 5.5.2 (a reasonable
> guess), you seriously need to upgrade. If that was a typo and you are
> really running Tomcat 5.5.27, then you could still afford to upgrade to
> 5.5.31 which is the latest.
>
> You described your environment to a certain extent, but didn't say what
> your goals were: are you experiencing any problems with your setup? Are
> you just looking to streamline things so that you can increase load
> without having to upgrade anything?
>
> If things are going well, why change anything?
>
> If you have a specific goal, let us know what it is and maybe we can
> help you with it.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk0dPZgACgkQ9CaO5/Lv0PD+GACgnXZ+Q5VTeOyG5Wmm1QgqRogs
> 6FcAn2MLml4HETMBlCZU8HyRkUFitZr/
> =9iUp
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat 5.5/HTTPD cluster question

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Don,

On 12/30/2010 10:41 AM, Don Hill wrote:
> My mistake, Here are the details. I should have confirmed first before
> posting but besides the apache version everything else is correct.
> 
> tomcat 5.5.2.7

That's not a version published by Tomcat. More likely, this is a version
packaged by RHEL. If it's really based upon Tomcat 5.5.2 (a reasonable
guess), you seriously need to upgrade. If that was a typo and you are
really running Tomcat 5.5.27, then you could still afford to upgrade to
5.5.31 which is the latest.

You described your environment to a certain extent, but didn't say what
your goals were: are you experiencing any problems with your setup? Are
you just looking to streamline things so that you can increase load
without having to upgrade anything?

If things are going well, why change anything?

If you have a specific goal, let us know what it is and maybe we can
help you with it.

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

iEYEARECAAYFAk0dPZgACgkQ9CaO5/Lv0PD+GACgnXZ+Q5VTeOyG5Wmm1QgqRogs
6FcAn2MLml4HETMBlCZU8HyRkUFitZr/
=9iUp
-----END PGP SIGNATURE-----

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


Re: Tomcat 5.5/HTTPD cluster question

Posted by Don Hill <ju...@gmail.com>.
My mistake, Here are the details. I should have confirmed first before
posting but besides the apache version everything else is correct.

tomcat 5.5.2.7
apachectl -l shows prefork compiled in.

*$JAVA_HOME/bin/java -version*

java version "1.6.0_10"

Java(TM) SE Runtime Environment (build 1.6.0_10-b33)

Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode)



*uname -a*

Linux WEB07 2.6.9-89.31.1.ELsmp #1 SMP Mon Oct 4 21:41:59 EDT 2010 x86_64
x86_64 x86_64 GNU/Linux



*uname -m*

x86_64

*
*

*/usr/sbin/apachectl -v*

Server version: Apache/2.0.52

Server built:   Mar 23 2010 08:16:30




On Wed, Dec 29, 2010 at 9:21 AM, Pid <pi...@pidster.com> wrote:

> On 12/28/10 9:13 PM, Don Hill wrote:
> > We are on 64bit JVM 1.6 the heap is 8GB for each Tomcat instance. The OS
> is
> > RHEL 4.0 64 bit
>
> Great.  Which versions of HTTPD 1.3 and Tomcat 5.5 are they?
>
>
> p
>
> > On Tue, Dec 28, 2010 at 7:30 AM, Pid <pi...@pidster.com> wrote:
> >
> >> On 12/27/10 4:42 PM, Don Hill wrote:
> >>> Thanks.
> >>>
> >>> I am trying to get them to migrate. It seems that part of there
> >> bottleneck
> >>> could be the MAX clients on HTTPD. They get high volumes at times and
> >> have
> >>> like 1800-3000 active sessions. Any other input would be great like
> >> tuning
> >>> tomcat to workers and the best strategy to setup a tomcat/httpd env.
> >>>
> >>> Don
> >>>
> >>> On Mon, Dec 27, 2010 at 9:34 AM, André Warnier <aw...@ice-sa.com> wrote:
> >>>
> >>>> Don Hill wrote:
> >>>>
> >>>>> Hi.
> >>>>>
> >>>>> I am working on a tomcat 5.5 cluster which is using ajp/1.3 and
> mod_jk
> >> and
> >>>>> trying to determine the best cluster design given the hardware. I
> have
> >> 2
> >>>>> xeon 2.3 ghz 2 CPU machines with 38GB ram machine. Currently here is
> >> the
> >>>>> config I am using. The TOMCAT and HTTPD servers are on the same
> >> physical
> >>>>> machine.
> >>>>>
> >>>>> Each machine is running HTTPD 1.3 with prefork, the MaxClients is 256
> >> due
> >>>>> compiled in limits. Each machine has 4 virtualhosts running through
> one
> >>>>> instance of HTTPD. Two of the VHOSTS are the same app running on
> Tomcat
> >>>>> 5.5
> >>>>> with 8GB RAM(configured by customer). The workers are configured to
> >> each
> >>>>> VHOST meaning for each machine there are 4 workers defined and one
> >> worker
> >>>>> is defined for each VHOST. I will try and depict this below. The
> >> current
> >>>>> load balancing is controlled by F5 and manages the load across 2
> >> machines,
> >>>>> 4
> >>>>> VHOST for each app.
> >>>>>
> >>>>> Based on this info can someone recommend if this configuration could
> be
> >>>>> improved and if so what would you recommend ?
> >>>>>
> >>>>>  The very first thing that I would recommend, would be to use the
> >> current
> >>>> versions of both httpd and tomcat.  The versions you mention above are
> >>>> several years old, and no longer being developed, except maybe for
> >> security
> >>>> patches.
> >>>> See : http://httpd.apache.org/docs/1.3/
> >>>> See : http://tomcat.apache.org/whichversion.html
> >>
> >> Are you using a 64bit JVM?
> >> What version is it?
> >> Is your OS a 64bit version?
> >> Which OS is it?
> >>
> >>
> >> p
> >>
> >
>
>

Re: Tomcat 5.5/HTTPD cluster question

Posted by Pid <pi...@pidster.com>.
On 12/28/10 9:13 PM, Don Hill wrote:
> We are on 64bit JVM 1.6 the heap is 8GB for each Tomcat instance. The OS is
> RHEL 4.0 64 bit

Great.  Which versions of HTTPD 1.3 and Tomcat 5.5 are they?


p

> On Tue, Dec 28, 2010 at 7:30 AM, Pid <pi...@pidster.com> wrote:
> 
>> On 12/27/10 4:42 PM, Don Hill wrote:
>>> Thanks.
>>>
>>> I am trying to get them to migrate. It seems that part of there
>> bottleneck
>>> could be the MAX clients on HTTPD. They get high volumes at times and
>> have
>>> like 1800-3000 active sessions. Any other input would be great like
>> tuning
>>> tomcat to workers and the best strategy to setup a tomcat/httpd env.
>>>
>>> Don
>>>
>>> On Mon, Dec 27, 2010 at 9:34 AM, André Warnier <aw...@ice-sa.com> wrote:
>>>
>>>> Don Hill wrote:
>>>>
>>>>> Hi.
>>>>>
>>>>> I am working on a tomcat 5.5 cluster which is using ajp/1.3 and mod_jk
>> and
>>>>> trying to determine the best cluster design given the hardware. I have
>> 2
>>>>> xeon 2.3 ghz 2 CPU machines with 38GB ram machine. Currently here is
>> the
>>>>> config I am using. The TOMCAT and HTTPD servers are on the same
>> physical
>>>>> machine.
>>>>>
>>>>> Each machine is running HTTPD 1.3 with prefork, the MaxClients is 256
>> due
>>>>> compiled in limits. Each machine has 4 virtualhosts running through one
>>>>> instance of HTTPD. Two of the VHOSTS are the same app running on Tomcat
>>>>> 5.5
>>>>> with 8GB RAM(configured by customer). The workers are configured to
>> each
>>>>> VHOST meaning for each machine there are 4 workers defined and one
>> worker
>>>>> is defined for each VHOST. I will try and depict this below. The
>> current
>>>>> load balancing is controlled by F5 and manages the load across 2
>> machines,
>>>>> 4
>>>>> VHOST for each app.
>>>>>
>>>>> Based on this info can someone recommend if this configuration could be
>>>>> improved and if so what would you recommend ?
>>>>>
>>>>>  The very first thing that I would recommend, would be to use the
>> current
>>>> versions of both httpd and tomcat.  The versions you mention above are
>>>> several years old, and no longer being developed, except maybe for
>> security
>>>> patches.
>>>> See : http://httpd.apache.org/docs/1.3/
>>>> See : http://tomcat.apache.org/whichversion.html
>>
>> Are you using a 64bit JVM?
>> What version is it?
>> Is your OS a 64bit version?
>> Which OS is it?
>>
>>
>> p
>>
> 


Re: Tomcat 5.5/HTTPD cluster question

Posted by Don Hill <ju...@gmail.com>.
We are on 64bit JVM 1.6 the heap is 8GB for each Tomcat instance. The OS is
RHEL 4.0 64 bit

On Tue, Dec 28, 2010 at 7:30 AM, Pid <pi...@pidster.com> wrote:

> On 12/27/10 4:42 PM, Don Hill wrote:
> > Thanks.
> >
> > I am trying to get them to migrate. It seems that part of there
> bottleneck
> > could be the MAX clients on HTTPD. They get high volumes at times and
> have
> > like 1800-3000 active sessions. Any other input would be great like
> tuning
> > tomcat to workers and the best strategy to setup a tomcat/httpd env.
> >
> > Don
> >
> > On Mon, Dec 27, 2010 at 9:34 AM, André Warnier <aw...@ice-sa.com> wrote:
> >
> >> Don Hill wrote:
> >>
> >>> Hi.
> >>>
> >>> I am working on a tomcat 5.5 cluster which is using ajp/1.3 and mod_jk
> and
> >>> trying to determine the best cluster design given the hardware. I have
> 2
> >>> xeon 2.3 ghz 2 CPU machines with 38GB ram machine. Currently here is
> the
> >>> config I am using. The TOMCAT and HTTPD servers are on the same
> physical
> >>> machine.
> >>>
> >>> Each machine is running HTTPD 1.3 with prefork, the MaxClients is 256
> due
> >>> compiled in limits. Each machine has 4 virtualhosts running through one
> >>> instance of HTTPD. Two of the VHOSTS are the same app running on Tomcat
> >>> 5.5
> >>> with 8GB RAM(configured by customer). The workers are configured to
> each
> >>> VHOST meaning for each machine there are 4 workers defined and one
> worker
> >>> is defined for each VHOST. I will try and depict this below. The
> current
> >>> load balancing is controlled by F5 and manages the load across 2
> machines,
> >>> 4
> >>> VHOST for each app.
> >>>
> >>> Based on this info can someone recommend if this configuration could be
> >>> improved and if so what would you recommend ?
> >>>
> >>>  The very first thing that I would recommend, would be to use the
> current
> >> versions of both httpd and tomcat.  The versions you mention above are
> >> several years old, and no longer being developed, except maybe for
> security
> >> patches.
> >> See : http://httpd.apache.org/docs/1.3/
> >> See : http://tomcat.apache.org/whichversion.html
>
> Are you using a 64bit JVM?
> What version is it?
> Is your OS a 64bit version?
> Which OS is it?
>
>
> p
>

Re: Tomcat 5.5/HTTPD cluster question

Posted by Pid <pi...@pidster.com>.
On 12/27/10 4:42 PM, Don Hill wrote:
> Thanks.
> 
> I am trying to get them to migrate. It seems that part of there bottleneck
> could be the MAX clients on HTTPD. They get high volumes at times and have
> like 1800-3000 active sessions. Any other input would be great like tuning
> tomcat to workers and the best strategy to setup a tomcat/httpd env.
> 
> Don
> 
> On Mon, Dec 27, 2010 at 9:34 AM, André Warnier <aw...@ice-sa.com> wrote:
> 
>> Don Hill wrote:
>>
>>> Hi.
>>>
>>> I am working on a tomcat 5.5 cluster which is using ajp/1.3 and mod_jk and
>>> trying to determine the best cluster design given the hardware. I have 2
>>> xeon 2.3 ghz 2 CPU machines with 38GB ram machine. Currently here is the
>>> config I am using. The TOMCAT and HTTPD servers are on the same physical
>>> machine.
>>>
>>> Each machine is running HTTPD 1.3 with prefork, the MaxClients is 256 due
>>> compiled in limits. Each machine has 4 virtualhosts running through one
>>> instance of HTTPD. Two of the VHOSTS are the same app running on Tomcat
>>> 5.5
>>> with 8GB RAM(configured by customer). The workers are configured to each
>>> VHOST meaning for each machine there are 4 workers defined and one worker
>>> is defined for each VHOST. I will try and depict this below. The current
>>> load balancing is controlled by F5 and manages the load across 2 machines,
>>> 4
>>> VHOST for each app.
>>>
>>> Based on this info can someone recommend if this configuration could be
>>> improved and if so what would you recommend ?
>>>
>>>  The very first thing that I would recommend, would be to use the current
>> versions of both httpd and tomcat.  The versions you mention above are
>> several years old, and no longer being developed, except maybe for security
>> patches.
>> See : http://httpd.apache.org/docs/1.3/
>> See : http://tomcat.apache.org/whichversion.html

Are you using a 64bit JVM?
What version is it?
Is your OS a 64bit version?
Which OS is it?


p

Re: Tomcat 5.5/HTTPD cluster question

Posted by Don Hill <ju...@gmail.com>.
Thanks.

I am trying to get them to migrate. It seems that part of there bottleneck
could be the MAX clients on HTTPD. They get high volumes at times and have
like 1800-3000 active sessions. Any other input would be great like tuning
tomcat to workers and the best strategy to setup a tomcat/httpd env.

Don

On Mon, Dec 27, 2010 at 9:34 AM, André Warnier <aw...@ice-sa.com> wrote:

> Don Hill wrote:
>
>> Hi.
>>
>> I am working on a tomcat 5.5 cluster which is using ajp/1.3 and mod_jk and
>> trying to determine the best cluster design given the hardware. I have 2
>> xeon 2.3 ghz 2 CPU machines with 38GB ram machine. Currently here is the
>> config I am using. The TOMCAT and HTTPD servers are on the same physical
>> machine.
>>
>> Each machine is running HTTPD 1.3 with prefork, the MaxClients is 256 due
>> compiled in limits. Each machine has 4 virtualhosts running through one
>> instance of HTTPD. Two of the VHOSTS are the same app running on Tomcat
>> 5.5
>> with 8GB RAM(configured by customer). The workers are configured to each
>> VHOST meaning for each machine there are 4 workers defined and one worker
>> is defined for each VHOST. I will try and depict this below. The current
>> load balancing is controlled by F5 and manages the load across 2 machines,
>> 4
>> VHOST for each app.
>>
>> Based on this info can someone recommend if this configuration could be
>> improved and if so what would you recommend ?
>>
>>  The very first thing that I would recommend, would be to use the current
> versions of both httpd and tomcat.  The versions you mention above are
> several years old, and no longer being developed, except maybe for security
> patches.
> See : http://httpd.apache.org/docs/1.3/
> See : http://tomcat.apache.org/whichversion.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat 5.5/HTTPD cluster question

Posted by André Warnier <aw...@ice-sa.com>.
Don Hill wrote:
> Hi.
> 
> I am working on a tomcat 5.5 cluster which is using ajp/1.3 and mod_jk and
> trying to determine the best cluster design given the hardware. I have 2
> xeon 2.3 ghz 2 CPU machines with 38GB ram machine. Currently here is the
> config I am using. The TOMCAT and HTTPD servers are on the same physical
> machine.
> 
> Each machine is running HTTPD 1.3 with prefork, the MaxClients is 256 due
> compiled in limits. Each machine has 4 virtualhosts running through one
> instance of HTTPD. Two of the VHOSTS are the same app running on Tomcat 5.5
> with 8GB RAM(configured by customer). The workers are configured to each
> VHOST meaning for each machine there are 4 workers defined and one worker
> is defined for each VHOST. I will try and depict this below. The current
> load balancing is controlled by F5 and manages the load across 2 machines, 4
> VHOST for each app.
> 
> Based on this info can someone recommend if this configuration could be
> improved and if so what would you recommend ?
> 
The very first thing that I would recommend, would be to use the current versions of both 
httpd and tomcat.  The versions you mention above are several years old, and no longer 
being developed, except maybe for security patches.
See : http://httpd.apache.org/docs/1.3/
See : http://tomcat.apache.org/whichversion.html

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