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

Bill,

On 5/11/2009 8:09 PM, Bill Davidson wrote:
> Rainer Jung wrote:
>>Are the Apaches connected to each Tomcat, or only to "their" Tomcat?
> 
> Only to their own Tomcat.  I even do the connection on the loopback
> for security and (I hope) performance.

Yes, most TCP/IP stacks use 127.0.0.1 as a special-case that avoids most
of the real stack and instead uses a kernel buffer as the data transfer
mechanism.

I just tried to benchmark my own system localhost versus a DNS name that
resolves to an IP address handled on the same machine. The results of
downloading a 32MiB file 100 times using each address were the same. So,
either my previous statement is invalid or my Linux kernel is smart
enough to know that the same type of "localhost" optimization can be
performed when the destination IP is on the local machine.

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

iEYEARECAAYFAkoNe/MACgkQ9CaO5/Lv0PDYwwCghE45rXOm8DS+hENHCfa8D846
msYAoIlPsiCMmA+KH0bSKXaWgTZNbVze
=Aauf
-----END PGP SIGNATURE-----

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

Reply via email to