Skip to content
Advertisement

TCP performance differences between RH Linux and Solaris in java?

While comparing java TCP socket performance between RH Linux and Solaris, one of my test is done by using a java client sending strings and reading the replies from a java echo server. I measure the time spent to send and receive the data (i.e. the loop back round trip).

The test is run 100,000 times (more occurrence are giving similar results). From my tests Solaris is 25/30% faster on average than RH Linux, on the same computer with default system and network settings, same JVM arguments (if any) etc.

I don’t understand such a big difference, is there some system/network parameters I am missing?

The code used (client and server) is shown below if anybody is interested into running it (occurrence count has to be given in command line):

JavaScript

I’m using the JRE 1.6.0_18 for both OS, on a single 2.3GHz dual core Nehalem. The 2 OS ar Solaris 10 and RH Linux 5.4 with RT Kernel 2.6.24.7.

Thanks a lot.

Advertisement

Answer

Answer can be found here: https://serverfault.com/questions/157731/tcp-performance-differences-between-rh-linux-and-solaris-in-java

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement