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->{
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
> 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
> 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
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
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
> 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
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
> 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
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
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
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
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
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
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
>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
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
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
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
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
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
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
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
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
> 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
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
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
> 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
28 matches
Mail list logo