tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Does mod_jk copy memory b/w apache and tomcat (using linux, ajp13 worker)?
Date Thu, 11 Oct 2007 17:27:21 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Moran,

Moran Ben-David wrote:
> Can anyone tell me if mod_jk does a copy of memory when it moves
> tomcat output to apache through mod_jk?  My assumption has been that
> the two processes (in linux) communicate by copying data from each
> other's memory spaces.

Apache httpd and Tomcat do not share any memory, so there is not any
explicit memory-copying going on.

If the two processes are on the same machine, and are using the
"localhost" NIC, then UNIX is usually smart enough to do memory copies
instead of doing all the TCP/IP stuff necessary to send the data to a
remote host.

> If this is the case... does anyone know if there are plans to use the
> new "splice()" method introduced by the new linux kernel to avoid
> memory copies?

I'm guessing that this isn't going to go into mod_jk at all. But, I'd
bet that the kernel loopback TCP/IP driver will make use of this capability.

Mladen or Rainer can certainly shed more light on this subject.

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

iD8DBQFHDlz59CaO5/Lv0PARAi5cAJ9Y30WkaZxu6KtiyeQ3hKqy3+iLIQCfWR7+
1T8pHDCHnaUvjWIW4szl9E4=
=W7UT
-----END PGP SIGNATURE-----

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


Mime
View raw message