views:

154

answers:

3

I just read this (one) study in which Tomcat under Linux outperformed Windows.

From your experience, is this generally true? Any deep reason that could explain the performance difference?

+1  A: 

I don't thing such benchmarks can be so informative, then this one is 4 years old.

By the way these differences usually reside in certain choices related to how the operating system manages memory, cache and threads..

Jack
Damn, I just got this on Google Reader and didn't check the date.
ripper234
..and the JVM used. It's also unclear whether they used the `-server` option.
BalusC
@Jack: -1, check here: http://mediakey.dk/~cc/tomcat-performance-linux-faster-than-windows/ If you really think Windows server perform as well as Linux than ask yourself where are all the Windows based Oracle DBs and where are all the Windows "top 500" supercomputers. Linux sure is at ease there ;)
Webinator
I didn't say that Windows performs as well as Linux, I think that the opposite is more probable :) I just wanted to point out that this kind of benchmarks must be carefully used as a reference, my answer was operating-system-agnostic
Jack
A: 

I take any benchmark with a grain of salt. It's possible to game any comparison.

I find that one key is to try and spot any bias that the person doing the comparison might have. There was an infamous comparison of the Java EE Pet Store done with .NET several years back. The group doing the study had been paid by Microsoft. They didn't do all they could to optimize the Java EE solution, putting it in a bad light. The results were discredited as a result.

Does WebPerformance.com have any Linux bias?

If not, there are a lot of factors that enter into such a result. I'd compare all of them carefully, and try to see if I could spot anything important that might have been left out.

duffymo
It's indeed unclear what settings were used. Was JVM `-server` option used? Was NIO connector enabled? Both would matter *a lot* on Windows.
BalusC
A: 

Few points (mostly speculation):

  • Tomcat developed by FOSS on FOSS software, so it is reasonable that it would perform better on FOSS software.
  • Linux is better operating system ;-)

Generally. It depends on fine tuning experience... If you know windows well you'll tune it better for windows and if you know Linux better then...

Artyom
These points make no sense or at the least, aren't an explanation
matt b
Actually first is quite valid. For example MySQL and PostgreSQL are known to be more efficient on Linux/Unix because they are tightly oriented for POSIX operating system and optimized from them.
Artyom