From: Igor V. <ve...@ah...> - 2003-10-30 07:57:06
|
Hi, Chris. CW> Igor Vylusko wrote: >> I have compared httpd size of two OI2 usage variants. >> 1. OI2 starts as Apache::Registry cgi script. >> 2. OI2 configured as handler. >> >> In second variant size of httpd process is 15M greater then first one. >> >> Why so valuable size difference? >> I would like to use OI as handler, but memory limits of my ISP not >> allow it. Is there some work around to have the same httpd size (as on >> usage OI2 over Apache::Registry script) using OI2 as handler? CW> When you say 'Apache::Registry' script, are you using the CW> 'oi2.cgi' script that comes along with your website? If so, CW> that's very interesting -- I've never tried that :-) Yes, and it even work. :) CW> Since the oi2.cgi script and the handler use the same modules I CW> don't think that would be the problem. I assume you're still CW> using the: CW> PerlRequire /path/to/mysite/conf/startup.pl Yes, I do exactly. CW> which does most of the necessary 'use' and 'require' at server CW> startup time. That should do the same work for both CW> Apache::Registry and using the handler. I think so too. But after apache start with PerlRequire /path/to/mysite/conf/startup.pl in httpd.conf I have httpd size 15M greater than after request to oi2.cgi configured as Apache::Registry script. CW> So I would guess the difference occurs because the handler stores CW> additional data between requests -- oi2.cgi recreates the context CW> object every time the script is called. Although since it's CW> storing the singleton Context object in a class variable it might CW> be maintained across requests... CW> Honestly, I've only used Apache::Registry to run a TWiki site so CW> I'm not sure what all the tips and tricks are, what it does CW> behind the scenes, etc. I think there are Apache:: modules you CW> can use to peek into what objects are stored between requests, CW> how big they are, etc. That would probably be your next step. I'll try, but I am not an expert in Apache. CW> Hope that makes sense, CW> Chris By the way, what about your plans of OI2 further developing, when we can look forward to next (stable/production) versions? Thanks, Igor. |