Apache::Filter - get_handlers

1999-10-22 Thread Miguel A.L. Paraz
Hi all, Where is get_handlers lurking? I couldn't find it in any of the Apache:: modules. The error: [error] Can't locate object method "get_handlers" via package "Apache" at /usr/lib/perl5/site_perl/5.005/Apache/Filter.pm line 77. The code: if (@{$r->get_handlers('PerlHandler')} == $info->{

Re: LWP and ModPerl

1999-10-22 Thread Craig Shaver
On Fri, 22 Oct 1999, Arthur M. Kang wrote: > I've been trying to integrate the LWP library into some of my modperl > routines and am getting some very strange results. Sometimes it works, > sometimes it hangs... Most of the time it hangs. :) > > I've been searching for some answers, but ha

Re: exiting a child without popping the internal server error...

1999-10-22 Thread Stas Bekman
> I friend and I are having some problems... > > I have a mod_perl script that wants to kill a child when it detects that > child's DB connection has gone stale. Detecting that is not a problem. > returning the error page saying 'please try again' is not a problem. but > apache->exit is killing

Re: Hanging process: detection and determination (was Re: Runaway processes)

1999-10-22 Thread Stas Bekman
> My watch dog code is a bit of a mess, but it uses LWP::*, > or lwp-request to query the server, test for expected > output, and if it takes too long restart the server. If > too many subsequent restarts fail to work, and apache is > still not responding in a timely manner, send an > email

exiting a child without popping the internal server error...

1999-10-22 Thread Gedanken
I friend and I are having some problems... I have a mod_perl script that wants to kill a child when it detects that child's DB connection has gone stale. Detecting that is not a problem. returning the error page saying 'please try again' is not a problem. but apache->exit is killing the child

Re: Hanging process: detection and determination (was Re: Runaway processes)

1999-10-22 Thread Joshua Chamas
Remi Fasol wrote: > > hi Joshua, > > is this your recommended setup when using Apache::ASP > or is this for mod_perl in general? > mod_perl in general. > if it's for Apache::ASP, do you have a sample CPU > limit script and/or watchdog? > Check out Apache::Resource, the CPU limiting feature

Re: Hanging process: detection and determination (was Re: Runaway processes)

1999-10-22 Thread Stas Bekman
> I use Apache::Resource to set a CPU limit, that only a > runaway process would hit so the random killer process > doesn't accumulate and take down my system. I have > MaxRequestsPerChild set to a few hundred and have found > empirically that they don't tend to take more than 10 > seconds of CP

Re: Hanging process: detection and determination (was Re: Runaway processes)

1999-10-22 Thread Remi Fasol
hi Joshua, is this your recommended setup when using Apache::ASP or is this for mod_perl in general? if it's for Apache::ASP, do you have a sample CPU limit script and/or watchdog? thanks! remi --- Joshua Chamas <[EMAIL PROTECTED]> wrote: > Stas, > > I use Apache::Resource to set a CPU limit

Re: Hanging process: detection and determination (was Re: Runaway processes)

1999-10-22 Thread Stas Bekman
> The reason why the stop button does not stop the script lies in the fact > that you're script does not produce any output while it is running. SIGPIPE > is only raised when your script tries to write to a closed (STOPed) > connection. No output from your script = no SIGPIPE! That's right, Tobia

LWP and ModPerl

1999-10-22 Thread Arthur M. Kang
I've been trying to integrate the LWP library into some of my modperl routines and am getting some very strange results. Sometimes it works, sometimes it hangs... Most of the time it hangs. :) I've been searching for some answers, but haven't found any. Looked like there were others experienc

Re: Hanging process: detection and determination (was Re: Runaway processes)

1999-10-22 Thread Joshua Chamas
Stas, I use Apache::Resource to set a CPU limit, that only a runaway process would hit so the random killer process doesn't accumulate and take down my system. I have MaxRequestsPerChild set to a few hundred and have found empirically that they don't tend to take more than 10 seconds of CPU tim

Re: Apache::Session and File Upload (Was: Apache::Session hangs script)

1999-10-22 Thread Kip Cranford
Upon further investigation (ok, trial and error...), it seems that using the multipart form encoding, in conjunction with CGI.pm (I'm using CGI.pm-2.49) and Apache::Session, causes my test script to hang at the "op" function within the IPC modules. In the same test script, if I use the Apache::R

Re: Hanging process: detection and determination (was Re: Runaway processes)

1999-10-22 Thread Tobias Hoellrich
The reason why the stop button does not stop the script lies in the fact that you're script does not produce any output while it is running. SIGPIPE is only raised when your script tries to write to a closed (STOPed) connection. No output from your script = no SIGPIPE! Tobias At 07:29 PM 10/22/9

Apache->read timed out?

1999-10-22 Thread Marler, Gordon
I'm running mod_perl 1.21, Apache 1.39 on Solaris 2.5.1. I'm using the proxy example from pp. 374-381 of the "Writing Apache Modules" book, and I've come up with a strange case in handling a POST request in the following part of the code (explained on page 377). Here's my doctored version of the

Apache::Session Locking

1999-10-22 Thread Kimbro Staken
I'm trying to setup Apache::Session under Embperl with a MySQL datastore. I have multiple machines that will be serving the site thus all machines will access the datastore. In the documentation it says to use the DBIStore with a DaemonLocker which is fine. However there seems to be no documentati

RE: Runaway processes

1999-10-22 Thread Eric Cholet
>Thanks for all the suggestions. Although these are all good suggestions, my >main concern was not how to get the report to work but rather a way to have the >oracle process killed if the user presses stop. Since the real issue here is >not that the report runs so long, but that the query conti

Request: Need a script that dumps core or requires debug

1999-10-22 Thread Stas Bekman
Hi, I know that you are used to an opposite kind of subjects. The reason for my request is rewriting from scratch the debug section of the guide. I want simple scripts and handlers that I can show how to debug them (with Apache::DB/ptkdb). It helps more when you show how to debug a real proble

Hanging process: detection and determination (was Re: Runaway processes)

1999-10-22 Thread Stas Bekman
Hi, Recently there were a few questions regarding hanging processes, I've tried to reproduce this case and have found two problems. Let's take a little script that obviously "hangs" the server: my $r = shift; $r->send_http_header('text/plain'); $|=1; # so we would see the $$ printed pr

Re: Runaway processes

1999-10-22 Thread Autarch
On Fri, 22 Oct 1999, Mike Dameron wrote: > Thanks for all the suggestions. Although these are all good suggestions, my > main concern was not how to get the report to work but rather a way to have the > oracle process killed if the user presses stop. Since the real issue here is > not that the

any comment? mod-perl-mailinglist

1999-10-22 Thread [EMAIL PROTECTED]
Dear mailinglist, Can someone please enlighten me. I am researching this problem for a while and running out of ideas. also i searched the web, faq, mailinglist, dejanews etc. without finding a hint. I am trying to compile apache with mod_perl using APACI on 2 machines, machine 1 is running So

Re: Runaway processes

1999-10-22 Thread Mike Dameron
Thanks for all the suggestions. Although these are all good suggestions, my main concern was not how to get the report to work but rather a way to have the oracle process killed if the user presses stop. Since the real issue here is not that the report runs so long, but that the query continues

Re: [SITE] Comments on the two examples

1999-10-22 Thread Rex Staples
And mouse rollovers are so passe. The left menu is way too big. You could accomplish the same with just TEXT ... Knowing how long it takes (even on a T1) to d/l the entire mod_perl guide, I would hope that the rest of the site it fast -- mouse rollovers are anything but fast. Rex Jesse Kanner

Re: [SITE] Comments on the two examples

1999-10-22 Thread Jesse Kanner
On Fri, 22 Oct 1999, James G Smith wrote: >Some comments on the two example pages mentioned on this list. > >* http://www.novia.net/~marnold/mod_perl/sample_3/ > >I can enjoy the graphics, but the site does not appear to be >Lynx friendly -- this is a must IMHO when access might be >without gra

[SITE] Comments on the two examples

1999-10-22 Thread James G Smith
Some comments on the two example pages mentioned on this list. * http://www.novia.net/~marnold/mod_perl/sample_3/ I can enjoy the graphics, but the site does not appear to be Lynx friendly -- this is a must IMHO when access might be without graphics (slow connections, expensive connections). Als

Re: Embperl, Safe and namespaces

1999-10-22 Thread G.Richter
> I tried to configure Embperl with Safe, using the following directive. > > >PerlSetEnv EMBPERL_OPTIONS 16404 > (optSafeNamespace set) > > Namespaces are now protected, but all modules used > in a page are no more visible... > > > test > > > [- use DBI; DBI->connect(...) or print $DBI::errstr

Embperl, Safe and namespaces

1999-10-22 Thread Jean-Philippe FAUVELLE
I tried to configure Embperl with Safe, using the following directive. >PerlSetEnv EMBPERL_OPTIONS 16404 (optSafeNamespace set) Namespaces are now protected, but all modules used in a page are no more visible... test [- use DBI; DBI->connect(...) or print $DBI::errstr -] -> Error in Per

Re: Runaway processes

1999-10-22 Thread Stas Bekman
On Thu, 21 Oct 1999, Tobias Hoellrich wrote: > And yet another one (which I used for one project): Detach the process from > the Apache cgi (no don't use fork inside your script) and have the process > do its work in the background outputting progress information into a know > location. Have your

Re: Redhat httpsd with mod_perl

1999-10-22 Thread Stas Bekman
> Thanks so much for the tips. I got Apache::VMonitor - awesome package, Stas > - and investigated it further. What I found was that each child loses a > small amount of shared memory during normal use, due to copy-on-write. In > my case from about 12M to 9M (roughly 25%). But it stabilizes at