> Apache httpd and Tomcat do not share any memory, so there is not any > explicit memory-copying going on.
How do they share data? For example, when Tomcat creates an HTTP response containing 50k of HTML, I assume that data exists in Tomcat's memory space. How does that data move over to apache's so it can respond to the HTTP request. If the apache and tomcat process don't use any shared buffers (in linux) wouldn't that mean the data is copied form tomcat's memory space to apache's? > 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. I guess that actually answers my question: the data is (probably) copied between tomcat's memory space and apache's (under ajp13). However, would there be room here for an optimization that uses a shared_buffer to communicate b/w apache tomcat on the same machine? This could reduce process to process data copying. However, from my understanding that can also be achieved through the "jni" mod_jk worker. Do you know of any good documentation on that worker? I noticed that references such as in this page http://tomcat.apache.org/connectors-doc/generic_howto/workers.html use tomcat version 3.3 as a tomcat instance inside apache's mem space. Are there limitations in doing this with newer tomcat's? Again.. my apologies for not trying this out first.. I'm only asking because there seems to be very little in-process documentation out there (that doesn't reference very old tomcat versions). thanks, moran --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]