MSQL server has gone away ( Apache::AuthDBI.pm )

2001-01-29 Thread Artero Alain
Hi everybody, In order to authentify our web Apache users, we have decided to use AuthDBI and Msql. We have noticed that in the logfile, we have often messages ( several times per hour) like: [Wed Dec 13 15:04:23 2000] [error] access to /pols_006.pdf failed for

Priority of Virtual Hosts

2001-01-29 Thread Ray Hilton
Is there a way i can control the performance priority of the VirtualHosts, so that certain sites can be sacrificed (performance wise) to enable others to meet peaks in traffic? I was thinking about some sort of generic handler that would look at the request, check the CPU load, and if it is too

Re: Priority of Virtual Hosts

2001-01-29 Thread Matt Sergeant
On Mon, 29 Jan 2001, Ray Hilton wrote: Is there a way i can control the performance priority of the VirtualHosts, so that certain sites can be sacrificed (performance wise) to enable others to meet peaks in traffic? I was thinking about some sort of generic handler that would look at the

Re: Whats the status of libapreq-32 ?!

2001-01-29 Thread Matt Sergeant
On Mon, 29 Jan 2001, Greg Cope wrote: Dear All I can rememeber that Jim Winstead was overhauling libapreq and sugested that ver 0.32 may be out early in the new year if OK, is this still the case ? Its awaiting the imminent release of mod_perl 1.25 because of changes in the perlio layer.

Re: Instance variable inheritance: is it just me or am I doing something dumb?

2001-01-29 Thread darren chamberlain
Christopher L. Everett ([EMAIL PROTECTED]) said something to this effect on 01/28/2001: package simian; use fields qw (name); sub new { my $type = shift; my class1 $self = fields::new(ref $type || $type); $self-{name} = 'Jane'; return $self-{name}; # error here } Why aren't

[SCOOP!] Apache 1.3.17 is out

2001-01-29 Thread Matt Sergeant
http://take23.org/news/2001/01/29/apache.xml -- Matt/ /||** Director and CTO ** //||** AxKit.com Ltd ** ** XML Application Serving ** // ||** http://axkit.org ** ** XSLT, XPathScript, XSP ** // \\| // ** Personal Web Site: http://sergeant.org/ ** \\//

About custom_respons and Internal redirect

2001-01-29 Thread Glorfindel
Hi all, We'we write a simple package with a simple sub "Die" which handle application error ( warning in fact ... ) MyErrorPkg::Error-set( $code[0], $code ); ( set the error message, which will be fetched in error.epl ) my $r = Apache-request() || return; if ( $r-method()

Advice needed. (web app. performance)

2001-01-29 Thread Vladislav Safronov
Hi, I've just finished a simple web based spellcheck application based on ispell, it's written as perl module which just call ispell on every request (actually keeps it open afert first request). The bad thing is N users used spellcheck there are N running useless ispells and it is not good I

Re: Advice needed. (web app. performance)

2001-01-29 Thread Robin Berjon
At 17:52 29/01/2001 +0300, Vladislav Safronov wrote: I've just finished a simple web based spellcheck application based on ispell, it's written as perl module which just call ispell on every request (actually keeps it open afert first request). The bad thing is N users used spellcheck there are N

Re: Advice needed. (web app. performance)

2001-01-29 Thread Matt Sergeant
On Mon, 29 Jan 2001, Vladislav Safronov wrote: Hi, I've just finished a simple web based spellcheck application based on ispell, it's written as perl module which just call ispell on every request (actually keeps it open afert first request). The bad thing is N users used spellcheck there

Re: Advice needed. (web app. performance)

2001-01-29 Thread Ken Y. Clark
On Mon, 29 Jan 2001, Vladislav Safronov wrote: Date: Mon, 29 Jan 2001 17:52:42 +0300 From: Vladislav Safronov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Advice needed. (web app. performance) Hi, I've just finished a simple web based spellcheck application based on ispell, it's

Re: Advice needed. (web app. performance)

2001-01-29 Thread Ken Williams
[EMAIL PROTECTED] (Stas Bekman) wrote: On Mon, 29 Jan 2001, Vladislav Safronov wrote: I've just finished a simple web based spellcheck application based on ispell, it's written as perl module which just call ispell on every request (actually keeps it open afert first request). The bad thing

Re: Instance variable inheritance: is it just me or am I doing something dumb?

2001-01-29 Thread Joe Schaefer
"Christopher L. Everett" [EMAIL PROTECTED] writes: Check these modules: package simian; use fields qw (name); use strict; #very important! use Apache; use Apache::Request; use Apache::Constants qw(:common); sub new { my $type = shift; my class1 $self = fields::new(ref $type

RE: Advice needed. (web app. performance)

2001-01-29 Thread Vladislav Safronov
I swear, I searched CPAN before posting the question to the conference and I used Lingua::Ispell in my application. But Lingua::Ispell just opens 'ispell -a' on reading and writing for every new httpd process, so it take time to open dictionaries or switch to other language dictionary. It provide

mod_perl and DSO

2001-01-29 Thread Francis
I'm running Apache 1.3.12 on my unix server (RM400 Siemens) with Sinix 5.44. Perl 5.00404 is installed The DSO module for servlets is also installed and works fine. I try to install the DSO mod_perl 1.24 with ./configure --with-apxs=/usr/./apx follow by make and make install in the

Repost with typos corrected--Instance variable inheritance: is it just me or am I doing something dumb?]

2001-01-29 Thread Christopher L. Everett
Sorry about that. It was 3 AM after 12 hours beating my brains out. I guess I didn't have any left. Check these modules: package simian; use fields qw (name); use strict; #very important! use Apache; use Apache::Request; use Apache::Constants qw(:common); sub new { my $type = shift; my

Re: mod_perl and DSO

2001-01-29 Thread Jens-Uwe Mager
On Mon, Jan 29, 2001 at 05:26:46PM +0100, Francis wrote: I'm running Apache 1.3.12 on my unix server (RM400 Siemens) with Sinix 5.44. Perl 5.00404 is installed The DSO module for servlets is also installed and works fine. I try to install the DSO mod_perl 1.24 with ./configure

Re: Advice needed. (web app. performance)

2001-01-29 Thread John BEPPU
[ date ] 2001/01/29 | Monday | 05:52 PM [ author ] Vladislav Safronov [EMAIL PROTECTED] Where can I find sample code (skeleton code) for such server? Would you recommend any other method? I wrote a little server that wraps around mpg123. Maybe the structure of this module will help you

Re: Advice needed. (web app. performance)

2001-01-29 Thread Robert Landrum
Wasn't ispell ported to the PPT? If so, you could rip the source from the perl power tools library and eliminate the external call to ispell completely. This doesn't povide any forking or server stuff, but I've found that solutions like that are rarely needed. At 1:34 PM -0700 1/29/01, John

Runaways

2001-01-29 Thread Robert Landrum
I have some very large httpd processes (35 MB) running our application software. Every so often, one of the processes will grow infinitly large, consuming all available system resources. After 300 seconds the process dies (as specified in the config file), and the system usually returns to

RE: Prototype mismatch in Apache::PerlRun line 343

2001-01-29 Thread Doug MacEachern
On Fri, 26 Jan 2001, Wenzhong Tang wrote: Unfortunately the following line doesn't work: eval "*{\$fullname}($p) = sub {}"; It probably should be: eval "*{\$fullname} = sub ($p) {}"; The latter works on my Linux and Solaris tests. right. thanks, applied.

Re: Runaways

2001-01-29 Thread Steve Reppucci
Yes, I've seen this happen often, maybe once a day on a relatively heavily used site running mod_perl, where a child process goes into a state where it consumes lots of memory and cpu cycles. I did some investigation, but (like you, it sounds) couldn't garner any useful info from gdb traces. I

Re: MSQL server has gone away ( Apache::AuthDBI.pm )

2001-01-29 Thread Daniel
On Mon, Jan 29, 2001 at 09:40:02AM +0100, Artero Alain wrote: Hi everybody, In order to authentify our web Apache users, we have decided to use AuthDBI and Msql. We have noticed that in the logfile, we have often messages ( several times per hour) like:

Re: Runaways

2001-01-29 Thread Robert Landrum
I did the exact same thing... But the kill(-9,$pid) didn't work, even when run as root. Unfortunatly, Apache::Watchdog::RunAway is just as lame as our solutions (Sorry Stas), in that it relies on an external process that checks the apache scoreboard and kills anything that's been running for

Re: Runaways

2001-01-29 Thread Steve Reppucci
On Mon, 29 Jan 2001, Robert Landrum wrote: I did the exact same thing... But the kill(-9,$pid) didn't work, even when run as root. Unfortunatly, Apache::Watchdog::RunAway is just as lame as our solutions (Sorry Stas), in that it relies on an external process that checks the apache

Re: Runaways

2001-01-29 Thread Robert Landrum
I have yet to solve the runaway problem, but I came up with a way of identifying the URLS that are causing the problems. First, I added the following to a startup.pl script... $SIG{'USR2'} = \apache_runaway_handler; sub apache_runaway_handler { print RUNFILE "\%ENV contains:\n";