posted 13 years ago
If you're looking to determine how much of the response time is consumed by the apache connector, you're probably optimizing in the wrong place. On a typical system, where the Tomcat and apache servers are both on the same machine, the communication is done via in-memory tcp/ip and the whole process can be expected to take no more than a few milliseconds, unless you're moving really horrendous amounts of data. If the two servers are on different machines, the network overhead will raise that number, but as long as the network itself is in good shape, still not much time. The connector doesn't do a lot of intensive computing - it's basically just relaying.
Typically, a much larger component of the response time is going to come from the time spent in the backend processing (after Tomcat has received it) and on the network leading into the apache server.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.