On 3/26/07, Dave W wrote: > > That's better, actually, since I really don't want JRun to > > handle every freaking request. That would pretty much defeat > > a major benefit of using a real webserver, versus one that > > hands *everything* off to JRun. > > This is why it's recommended to use a context root other than "/" for CF. > That said, the overhead seems to be pretty minimal.
Yeah, as I said in that post, there isn't even as much overhead as you'd guess, since after the connector loads for the first request, it ignores any non-mapped extensions. It will say that it checked, in the Apache HTTPD log file, but it doesn't, really. (Re: my image file test). > > (And Dave, I didn't see a * mapping, only *.[cf] stuff, so I > > wonder if there is a way to get rid of that initial check of > > the JRun connector for any content (including images)... I > > sorta doubt it, as I'm thinking that's more the > > connector/httpd than JRun/CF... probably something do do with > > using a "handler" vs. a proxy? Yeah...) > > If you can deploy a servlet, and run it, then JRun has to be able to examine > the request. Servlets have unique URL patterns, rather than relying on > specific file extensions. For example, if I deployed a servlet called > myservlet.class, I'd probably end up with a URL for that servlet which would > look something like http://whatever/myservlet/. It appears that the servlet mapping is also done at that initial connector load. So it really isn't listing to "/*" (every request), even if it looks from the logs like it is. Makes sense to me, heck that'd slow stuff down (negligible for a small, low traffic site, but probably an impact when under a heavy load). What do you use for load testing, Dave? Hopefully something Free, pref. Open Source? (-; And hey, thanks again, for bringing your vast experience to bear on this rather interesting thread! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273938 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

