You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Czeiszperger <cz...@webperformance.com> on 2006/01/05 19:42:30 UTC
Comparing Tomcat Performance on Windows vs. Linux
I thought that Tomcat users would be interested to know that we just
published an in-depth comparison of Tomcat performance on Windows and
Linux.
The articles are available here:
http://webperformance.com/library/reports
It describes the very different behavior of the two platforms under
load, and shows there is a significant different in performance.
Under the restricted conditions of the test Linux was able to handle
32% more load than Windows with identical versions of Tomcat on
identical hardware.
Michael Czeiszperger
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Remy Maucherat <re...@gmail.com>.
On 1/5/06, ALEX HYDE <al...@btinternet.com> wrote:
> Stupid question Remy but are you refering to the
> proces per java thread issue that had effected Linux?
> I am well behind the times so is this all resolved? I
> am soon to set-up a Tomcat server, preferably on Linux
> FC3 with a 2.6 kernal. Would you know whether this is
> suitable for running Tomcat under a reasonable load?
Redhat hacked their 2.4 kernels, so they don't work well. Other 2.4
kernels will work ok, although of course scalability will most likely
be not as good.
--
xxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
xxxxxxxxxxxxxxxxxxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Michael Czeiszperger <cz...@webperformance.com>.
On Jan 5, 2006, at 3:51 PM, Remy Maucherat wrote:
> With the usage of APR in Tomcat 5.5.x, I would say the difference will
> be even bigger, as APR on Linux will use more efficient IO calls than
> on Windows.
>
> So use Linux :) (note: please, don't use any Redhat Linux 2.4s
> kernels, though)
>
Yes, we would like to bring APR into the mix, but its not officially
shipping on both platforms, or at least it wasn't when we started the
testing.
Michael Czeiszperger
http://webperformance.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by ALEX HYDE <al...@btinternet.com>.
Stupid question Remy but are you refering to the
proces per java thread issue that had effected Linux?
I am well behind the times so is this all resolved? I
am soon to set-up a Tomcat server, preferably on Linux
FC3 with a 2.6 kernal. Would you know whether this is
suitable for running Tomcat under a reasonable load?
Thanks alot
--- Remy Maucherat <re...@gmail.com> wrote:
> On 1/5/06, Michael Czeiszperger
> <cz...@webperformance.com> wrote:
> > I thought that Tomcat users would be interested to
> know that we just
> > published an in-depth comparison of Tomcat
> performance on Windows and
> > Linux.
> >
> > The articles are available here:
> >
> > http://webperformance.com/library/reports
> >
> > It describes the very different behavior of the
> two platforms under
> > load, and shows there is a significant different
> in performance.
> > Under the restricted conditions of the test Linux
> was able to handle
> > 32% more load than Windows with identical versions
> of Tomcat on
> > identical hardware.
>
> With the usage of APR in Tomcat 5.5.x, I would say
> the difference will
> be even bigger, as APR on Linux will use more
> efficient IO calls than
> on Windows.
>
> So use Linux :) (note: please, don't use any Redhat
> Linux 2.4s kernels, though)
>
> --
> xxxxxxxxxxxxxxxxxxxxxxxxx
> Rémy Maucherat
> Developer & Consultant
> JBoss Group (Europe) SàRL
> xxxxxxxxxxxxxxxxxxxxxxxxx
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
>
>
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Remy Maucherat <re...@gmail.com>.
On 1/5/06, Michael Czeiszperger <cz...@webperformance.com> wrote:
> I thought that Tomcat users would be interested to know that we just
> published an in-depth comparison of Tomcat performance on Windows and
> Linux.
>
> The articles are available here:
>
> http://webperformance.com/library/reports
>
> It describes the very different behavior of the two platforms under
> load, and shows there is a significant different in performance.
> Under the restricted conditions of the test Linux was able to handle
> 32% more load than Windows with identical versions of Tomcat on
> identical hardware.
With the usage of APR in Tomcat 5.5.x, I would say the difference will
be even bigger, as APR on Linux will use more efficient IO calls than
on Windows.
So use Linux :) (note: please, don't use any Redhat Linux 2.4s kernels, though)
--
xxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
xxxxxxxxxxxxxxxxxxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by David Kerber <dc...@verizon.net>.
Ours is more of a small-to-medium environment than it is enterprise, but
we put antivirus on our servers...
Tim Funk wrote:
> Interesting. In enterprise environments, I also hear it common to see
> antivirus software also run on windows servers too. (Yes, you read
> that correctly) I'd be curious to see how much or a performance
> decrease there is when one is turned on.
>
> -Tim
>
> Michael Czeiszperger wrote:
>
>> I thought that Tomcat users would be interested to know that we just
>> published an in-depth comparison of Tomcat performance on Windows
>> and Linux.
>>
>> The articles are available here:
>>
>> http://webperformance.com/library/reports
>>
>> It describes the very different behavior of the two platforms under
>> load, and shows there is a significant different in performance.
>> Under the restricted conditions of the test Linux was able to handle
>> 32% more load than Windows with identical versions of Tomcat on
>> identical hardware.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Michael Czeiszperger <cz...@webperformance.com>.
On Jan 5, 2006, at 4:03 PM, Jess Holle wrote:
>
> Thinking about this a bit more, though, I guess this conviction
> comes from experience with really large and complex web
> applications. When most of the code being run is not servlet
> engine code, then it stands to reason that the bulk of the resource
> consumption would not come from the servlet engine.
That's probably true, but there's still value in establishing a
baseline. For example, if a certain level of performance takes 50%
of the CPU just to run simple servlets, that means there's not much
CPU left to run the actual application. Of course to scale an
installation must figure out how to distribute an application among
multiple servers, but that's all part of capacity planning.
Michael Czeiszperger
http://webperformance.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Jess Holle <je...@ptc.com>.
Remy Maucherat wrote:
>On 1/5/06, Jess Holle <je...@ptc.com> wrote:
>
>
>>Also a Tomcat 5.5.12 (or better 5.5.15) with and without APR test
>>against recent IBM, Sun, and BEA offerings would be really nice :-)
>>
>>There seems to be a silly notion out there that because you pay for
>>commercial offerings they'll automatically make any web application run
>>significantly faster and scale significantly better than just running it
>>in Tomcat with the same resources. I'm not saying that paying for a
>>commercial offering gets you nothing, but:
>>
>> 1. There's no reason to assume that one of the things it buys you is
>> performance and scalability on the same server resources.
>> 2. There's no reason to assume that anything it does buy you in these
>> terms is significant when compared to theh performance/scalability
>> impact of your web application's own code -- time spent optimizing
>> your own code might buy you a lot more than the most expensive
>> servlet engine ever could...
>>
>>
>Well, I guess you could sponsor a study from the webperformance folks
>to find out if you're really interested ;)
>
>
:-)
I guess I'm personally anecdotally convinced that the bulk of
performance and scalability opportunities (for both improvement and
"disimprovement") are in the web application code -- not the servlet
engine code.
Thinking about this a bit more, though, I guess this conviction comes
from experience with really large and complex web applications. When
most of the code being run is not servlet engine code, then it stands to
reason that the bulk of the resource consumption would not come from the
servlet engine.
If someone is going hog-wild with certain tag usage styles, buffered
dynamic inclusion of JSPs within tight loops, and so forth, or just has
a really simple (e.g. mostly static) web application, then it would seem
more likely that servlet engine optimizations could make a substantive
difference. I still would not assume that current commercial offerings
offer this difference when compared to the current Tomcat version, though.
--
Jess Holle
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Remy Maucherat <re...@gmail.com>.
On 1/5/06, Jess Holle <je...@ptc.com> wrote:
> Michael Czeiszperger wrote:
>
> > On Jan 5, 2006, at 2:24 PM, Tim Funk wrote:
> >
> >> Interesting. In enterprise environments, I also hear it common to
> >> see antivirus software also run on windows servers too. (Yes, you
> >> read that correctly) I'd be curious to see how much or a
> >> performance decrease there is when one is turned on.
> >
> > Thanks for the suggestion. I'll add that to the list for future tests.
>
> Also a Tomcat 5.5.12 (or better 5.5.15) with and without APR test
> against recent IBM, Sun, and BEA offerings would be really nice :-)
>
> There seems to be a silly notion out there that because you pay for
> commercial offerings they'll automatically make any web application run
> significantly faster and scale significantly better than just running it
> in Tomcat with the same resources. I'm not saying that paying for a
> commercial offering gets you nothing, but:
>
> 1. There's no reason to assume that one of the things it buys you is
> performance and scalability on the same server resources.
> 2. There's no reason to assume that anything it does buy you in these
> terms is significant when compared to theh performance/scalability
> impact of your web application's own code -- time spent optimizing
> your own code might buy you a lot more than the most expensive
> servlet engine ever could...
Well, I guess you could sponsor a study from the webperformance folks
to find out if you're really interested ;)
--
xxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
xxxxxxxxxxxxxxxxxxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Michael Czeiszperger <cz...@webperformance.com>.
On Jan 6, 2006, at 9:25 AM, Remy Maucherat wrote:
> On 1/6/06, Michael Czeiszperger <cz...@webperformance.com> wrote:
>>
>> On Jan 5, 2006, at 6:22 PM, Remy Maucherat wrote:
>> Sorry, for the potentially redundant question, but to clarify, is the
>> APR version of Tomcat officially released? The last time I checked it
>> was not. I don't care either way, but we have a policy of only
>> testing official releases.
>
> Yes, APR enabled connectors were officially released in 5.5.12 for the
> first time as stable. Since the build was released, a couple annoying
> APR related bugs were found (and fixed in 5.5.13), though, so you
> might want to try 5.5.15 once it is voted stable.
>
Great, thanks. I'll put that on the list for the next time.
Michael Czeiszperger
http://webperformance.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Remy Maucherat <re...@gmail.com>.
On 1/6/06, Michael Czeiszperger <cz...@webperformance.com> wrote:
>
> On Jan 5, 2006, at 6:22 PM, Remy Maucherat wrote:
> Sorry, for the potentially redundant question, but to clarify, is the
> APR version of Tomcat officially released? The last time I checked it
> was not. I don't care either way, but we have a policy of only
> testing official releases.
Yes, APR enabled connectors were officially released in 5.5.12 for the
first time as stable. Since the build was released, a couple annoying
APR related bugs were found (and fixed in 5.5.13), though, so you
might want to try 5.5.15 once it is voted stable.
--
xxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
xxxxxxxxxxxxxxxxxxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Michael Czeiszperger <cz...@webperformance.com>.
On Jan 5, 2006, at 6:22 PM, Remy Maucherat wrote:
> On 1/5/06, Michael Czeiszperger <cz...@webperformance.com> wrote:
>>
>> On Jan 5, 2006, at 3:39 PM, Jess Holle wrote:
>>
>>> Also a Tomcat 5.5.12 (or better 5.5.15) with and without APR test
>>> against recent IBM, Sun, and BEA offerings would be really nice :-)
>>>
>>
>> We did a previous test with tomcat against those servers, and are
>> waiting for APR to be officially released on all platforms before
>> proceeding.
>
> There are no plans to ever release Linux binaries, if that's what
> you're asking for. The Windows binaries are semi official for
> convinience/testing only, and are statically compiled.
Sorry, for the potentially redundant question, but to clarify, is the
APR version of Tomcat officially released? The last time I checked it
was not. I don't care either way, but we have a policy of only
testing official releases.
Thanks,
Michael Czeiszperger
http://webperformance.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Remy Maucherat <re...@gmail.com>.
On 1/5/06, Michael Czeiszperger <cz...@webperformance.com> wrote:
>
> On Jan 5, 2006, at 3:39 PM, Jess Holle wrote:
>
> > Also a Tomcat 5.5.12 (or better 5.5.15) with and without APR test
> > against recent IBM, Sun, and BEA offerings would be really nice :-)
> >
>
> We did a previous test with tomcat against those servers, and are
> waiting for APR to be officially released on all platforms before
> proceeding.
There are no plans to ever release Linux binaries, if that's what
you're asking for. The Windows binaries are semi official for
convinience/testing only, and are statically compiled.
--
xxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
xxxxxxxxxxxxxxxxxxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Jess Holle <je...@ptc.com>.
Michael Czeiszperger wrote:
> At the enterprise level businesses pay for support, and at the
> highest levels of support the license the source for a product is
> under makes little difference to the end customer, which is why its a
> good business model for the likes of IBM.
>
> (Note that our own products are not open source. They would be open
> source if we could find a way to make a living that way.)
Understood.
Like I said, I'm not saying you don't get something by paying something
-- it just should not be *assumed* you get better performance and/or
scalability by paying something.
--
Jess Holle
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Michael Czeiszperger <cz...@webperformance.com>.
On Jan 5, 2006, at 3:39 PM, Jess Holle wrote:
> Also a Tomcat 5.5.12 (or better 5.5.15) with and without APR test
> against recent IBM, Sun, and BEA offerings would be really nice :-)
>
We did a previous test with tomcat against those servers, and are
waiting for APR to be officially released on all platforms before
proceeding.
> There seems to be a silly notion out there that because you pay for
> commercial offerings they'll automatically make any web application
> run significantly faster and scale significantly better than just
> running it in Tomcat with the same resources. I'm not saying that
> paying for a commercial offering gets you nothing, but:
At the enterprise level businesses pay for support, and at the
highest levels of support the license the source for a product is
under makes little difference to the end customer, which is why its a
good business model for the likes of IBM.
(Note that our own products are not open source. They would be open
source if we could find a way to make a living that way.)
Michael Czeiszperger
http://webperformance.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Jess Holle <je...@ptc.com>.
Michael Czeiszperger wrote:
> On Jan 5, 2006, at 2:24 PM, Tim Funk wrote:
>
>> Interesting. In enterprise environments, I also hear it common to
>> see antivirus software also run on windows servers too. (Yes, you
>> read that correctly) I'd be curious to see how much or a
>> performance decrease there is when one is turned on.
>
> Thanks for the suggestion. I'll add that to the list for future tests.
Also a Tomcat 5.5.12 (or better 5.5.15) with and without APR test
against recent IBM, Sun, and BEA offerings would be really nice :-)
There seems to be a silly notion out there that because you pay for
commercial offerings they'll automatically make any web application run
significantly faster and scale significantly better than just running it
in Tomcat with the same resources. I'm not saying that paying for a
commercial offering gets you nothing, but:
1. There's no reason to assume that one of the things it buys you is
performance and scalability on the same server resources.
2. There's no reason to assume that anything it does buy you in these
terms is significant when compared to theh performance/scalability
impact of your web application's own code -- time spent optimizing
your own code might buy you a lot more than the most expensive
servlet engine ever could...
--
Jess Holle
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Michael Czeiszperger <cz...@webperformance.com>.
On Jan 5, 2006, at 2:24 PM, Tim Funk wrote:
> Interesting. In enterprise environments, I also hear it common to
> see antivirus software also run on windows servers too. (Yes, you
> read that correctly) I'd be curious to see how much or a
> performance decrease there is when one is turned on.
>
Thanks for the suggestion. I'll add that to the list for future tests.
--Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Comparing Tomcat Performance on Windows vs. Linux
Posted by Tim Funk <fu...@joedog.org>.
Interesting. In enterprise environments, I also hear it common to see
antivirus software also run on windows servers too. (Yes, you read that
correctly) I'd be curious to see how much or a performance decrease there is
when one is turned on.
-Tim
Michael Czeiszperger wrote:
> I thought that Tomcat users would be interested to know that we just
> published an in-depth comparison of Tomcat performance on Windows and
> Linux.
>
> The articles are available here:
>
> http://webperformance.com/library/reports
>
> It describes the very different behavior of the two platforms under
> load, and shows there is a significant different in performance. Under
> the restricted conditions of the test Linux was able to handle 32% more
> load than Windows with identical versions of Tomcat on identical hardware.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org