You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Wim Kerkhoff <wi...@netmaster.com> on 2000/09/01 19:01:02 UTC

Random Hangs when loading a embperl page

I've been expierence this problem for a while now, and users of the site are as
well, so I thought it's time to see what is causing this.

Basically what happens is that some times a page will hang while executing...
The browser is still connected to the server, but has not received the whole
page.  It'll sit there for a long time, until the user cancels the page. 
Upon reload, it comes up immediately and lightening fast.  This isn't the first
execute of the page either.  This is through https.

I'm running:

Apache/1.3.12
mod_perl/1.24 (compiled in)
mod_ssl/2.6.4 (compiled in)
OpenSSL/0.9.5a (compiled in)

HTML-Embperl-1.3b3 
Linux 2.2.12

Here's the httpd process that are currently running.  The SIZE kind of worries
me... is this normal?

  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
27391 www-data   0   0 20104  19M  8620 S       0  0.0  3.8   0:12 httpd
 9930 www-data   0   0 18952  18M  8624 S       0  0.0  3.6   0:04 httpd
 9974 www-data   0   0 18448  18M  8656 S       0  0.0  3.5   0:04 httpd
10400 www-data   0   0 17700  17M  8700 S       0  0.0  3.4   0:02 httpd
12637 www-data   0   0 17504  17M  9104 S       0  0.0  3.3   0:01 httpd
12665 www-data   0   0 17188  16M  9000 S       0  0.0  3.3   0:01 httpd
12666 www-data   0   0 16976  16M  9196 S       0  0.0  3.2   0:01 httpd
17771 www-data   0   0 16204  15M  9664 S       0  0.0  3.1   0:00 httpd
19095 root       0   0  9628 9628  8212 S       0  0.0  1.8   0:00 httpd

I have these modules preloaded by startup.pl:

use DBI;
use DBD::Oracle;
use Apache::Registry;
use Apache;
use HTML::Embperl;
use CGI qw(:standard);
use nmSql;
use Admin;
use Apache::AdminAuth;
use Apache::NotFound;
use GIFgraph::pie();
use Apache::LogDBI;
use Apache::Redirect;
use CGI::Cookie;
use Apache::ExtractMedia;

[This message sent separatly to embperl@perl.apache.org -- forget to Cc: when I
sent that one]

Regards,

Wim Kerkhoff, Software Engineer
NetMaster Networking Solutions
wim@netmaster.com

Re: Random Hangs when loading a embperl page

Posted by Gerald Richter <ri...@ecos.de>.
> >>
> >> Basically what happens is that some times a page will hang while
> > executing...
> >
> > Is it a POST request? Is the page invoke by the mod_perl handler or do
you
> > call it from your own script via Execute?
>
> POST & GET.  This happens by far the most when access via Netscape 4.75
for
> PowerPC via HTTPS.  Doesn't happen as often on IE or Netscape on Windows
or
> Linux.
>

I think you should that EMBPERL_DEBUG to 2285 and watch the embperl.log
file, there you should see at which point your script hangs.

Then we maybe can clearer see the reason

Gerald



Re: Random Hangs when loading a embperl page

Posted by Wim Kerkhoff <wi...@netmaster.com>.
On 01-Sep-2000 Gerald Richter wrote:
>>
>> Basically what happens is that some times a page will hang while
> executing...
> 
> Is it a POST request? Is the page invoke by the mod_perl handler or do you
> call it from your own script via Execute?

POST & GET.  This happens by far the most when access via Netscape 4.75 for
PowerPC via HTTPS.  Doesn't happen as often on IE or Netscape on Windows or
Linux.

It's called as /dir/something.html.

-----------------
access.conf:

PerlRequire /etc/apache/startup.pl

SetEnv EMBERL_DEBUG 0
SetEnv EMBPERL_OPTIONS 2048
PerlSetEnv EMBPERL_FILESMATCH \.htm$
PerlSetEnv EMBPERL_FILESMATCH \.html$

<FilesMatch *.htm*>
    PerlSendHeader Off
    SetHandler  perl-script
    Options ExecCGI
    PerlHandler HTML::Embperl
    order allow,deny
    allow from all
</FilesMatch>

Regards,

Wim Kerkhoff, Software Engineer
NetMaster Networking Solutions
wim@netmaster.com

Re: Random Hangs when loading a embperl page

Posted by Gerald Richter <ri...@ecos.de>.
>
> Basically what happens is that some times a page will hang while
executing...

Is it a POST request? Is the page invoke by the mod_perl handler or do you
call it from your own script via Execute?

Gerald
-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------