You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Carlos Kassab <ck...@eplsite.org> on 2004/02/11 18:20:01 UTC

Re: Embperl/2.0b10 Apache/2.0.48 (Unix) mod_perl/1.99_12 Perl/v5.6.1 Slow on Debian Woody 3r2... NOW SEEMS TO WORK

Hi all:

Now i have changed the way to load Embperl.

I create a file called apache2_modules.pl
and in the file i put:
use Apache2 ();
use ModPerl::Util (); #for CORE::GLOBAL::exit

use Apache::RequestRec ();
use Apache::RequestIO ();
use Apache::RequestUtil ();

use Apache::Server ();
use Apache::ServerUtil ();
use Apache::Connection ();
use Apache::Log ();

use APR::Table ();

use ModPerl::Registry ();
use Embperl;


Now it seems embperl is working as i want... fast.

Gerald if you would know why now embperl is faster, i think we would 
like to know.

Thank you very much for your time.

Carlos Kassab

Carlos Kassab wrote:

> Gerald,
>
> Here are the lines related to mod_perl and embperl:
>
> LoadModule perl_module modules/mod_perl.so
>
> PerlModule Apache::compat
> PerlModule APR::Table
>
> LoadModule embperl_module 
> /usr/local/lib/perl/5.6.1/auto/Embperl/Embperl.so
>
> <Files *.epl>
> SetHandler perl-script
> PerlHandler Embperl
> Options ExecCGI
> </files>
>
> AddType text/html .epl
>
>
> Thank you very much for your help.
>
> Carlos Kassab
>
> Gerald Richter wrote:
>
>>> The problem is that it seems apache is working as cgi and seems it is
>>> not preloading  eplsite programs.
>>>
>>>   
>>
>>
>> Can you send the parts of your httpd.conf that contains the mod_perl and
>> Embperl configuration directives?
>>
>> Gerald
>>
>> --------------------------------------------------------------
>> Gerald Richter     ecos electronic communication services gmbh
>> IT-Securitylösungen * dynamische Webapplikationen * Consulting
>>
>> Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
>> E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
>> WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
>> --------------------------------------------------------------
>> |
>> |   ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
>> |
>> +-------------------------------------------------------------
>>
>>
>>
>>
>>  
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Embperl/2.0b10 Apache/2.0.48 (Unix) mod_perl/1.99_12 Perl/v5.6.1 Slow on Debian Woody 3r2... NOW SEEMS TO WORK

Posted by Gerald Richter <ri...@ecos.de>.
>
> Gerald if you would know why now embperl is faster, i think we would
> like to know.
>

The

LoadModule embperl_module ...

loads only the C-part of Embperl, with your first configuration the Perl
part is loaded at the time of the first request of each apache child, with
the second config, the Perl part is also loaded on startup, so the it's
already there when you request a page. Adding

PerlModule Embperl

to the first config should have the same result

Gerald


--------------------------------------------------------------
Gerald Richter     ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
--------------------------------------------------------------
|
|   ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Embperl/2.0b10 Apache/2.0.48 (Unix) mod_perl/1.99_12 Perl/v5.6.1 Slow on Debian Woody 3r2... NOW SEEMS TO WORK

Posted by Gerald Richter <ri...@ecos.de>.
>
> Gerald if you would know why now embperl is faster, i think we would
> like to know.
>

The

LoadModule embperl_module ...

loads only the C-part of Embperl, with your first configuration the Perl
part is loaded at the time of the first request of each apache child, with
the second config, the Perl part is also loaded on startup, so the it's
already there when you request a page. Adding

PerlModule Embperl

to the first config should have the same result

Gerald


--------------------------------------------------------------
Gerald Richter     ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
--------------------------------------------------------------
|
|   ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org