tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
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
Hash: SHA1


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
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla -


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message