Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Apache::PerlRun v Apache::Registry

Quote Reply
Apache::PerlRun v Apache::Registry
As I understand it, Apache::PerlRun does not cache scripts but still gives much better performance than using standard cgi. So to save on memory, this could be the way to go if running more than 1 GT product (I have 256mb memory).

Do GT products run ok via Apache::PerlRun?

--------------------------------
Privacy Software
Quote Reply
Re: [BLOOD] Apache::PerlRun v Apache::Registry In reply to
Apache::PerlRun?
I did not heard about it. Not a bad idea.
However I know that mod_perl also has cgi mode, which is a bit faster than normal cgi, but is still not persistent environment.

And Links SQL is mod_perl compatible.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [BLOOD] Apache::PerlRun v Apache::Registry In reply to
The advantage I see with PerlRun is that it appears you don't have to restart your mod_perl server after making code changes as the code is flushed on each request.

I'd recommend still using Apache::Registry though. The Apache::PerlRun docs say:

Quote:
This module is meant for "Dirty" CGI Perl scripts which relied on the single request lifetime of CGI and cannot run under Apache::Registry without cleanup.

Links SQL doesn't fall under that category :)

Apache::Registry will be quicker too due to the caching.

If memory is a concern and Apache::Registry is using too much then PerlRun is perhaps a viable option. Links SQL should work with PerlRun AFAIK.

Last edited by:

Paul: Jan 23, 2003, 8:17 AM
Quote Reply
Re: [Paul] Apache::PerlRun v Apache::Registry In reply to
>> This module is meant for "Dirty" CGI Perl scripts

Yes but also a side effect of using less memory :)

Do you know if GT scripts use:

"packages that use internal variables that have circular references,"
As ... "they will be not flushed"

.. This would be a reason NOT to use mod_perl this way!

Thanks,

--------------------------------
Privacy Software