Sorry for being lazy! I will read the guide all the way through...promise!
Thanks though for everyone's help up to this point!
Gregory
At 12:04 PM 5/21/2002 +0800, you wrote:
>Gregory Matthews wrote:
>>Thanks to everyone for the great input on Memory Leaks. Now that I have
>>a good starting p
Perrin Harkins wrote:
>>Does using the Apache::GTopLimit module have the same net effect as
>>restarting the server itself by simply killing off the actual
>
> processes
>
>>which are growing beyond the set threshold, and thereby causing new
>>processes to be born?
>
>
> It does kill off proce
Gregory Matthews wrote:
> Thanks to everyone for the great input on Memory Leaks. Now that I have
> a good starting point for tracking down the problem, when I TEST for
> leaks, or simply check for a continued increase in server memory usage,
> how do I go about monitoring the processes growth
Gregory Matthews wrote:
> Does using the Apache::GTopLimit module have the same net effect as
> restarting the server itself by simply killing off the actual processes
> which are growing beyond the set threshold, and thereby causing new
> processes to be born?
It's not the exactly the same, s
Per Einar Ellefsen wrote:
> At 23:54 20.05.2002, Allen Day wrote:
>
>> I've noticed that if I restart apache while I'm in the middle of a
>> download (MP3 stream), after the buffer in my MP3 player runs out, it
>> skips to the next track -- presumably because the connection was closed.
>>
>> This
> So to modify my previous question, other than the loss of some shared
> memory over time, GTopLimit will have the same effect as restarting
the
> server?
Yes. That shared memory is important though.
> On a side note, how are you tracking/discovering the this minimal loss
over
> time?
Apache
So to modify my previous question, other than the loss of some shared
memory over time, GTopLimit will have the same effect as restarting the
server?
On a side note, how are you tracking/discovering the this minimal loss over
time?
Gregory
At 08:38 PM 5/20/2002 -0400, you wrote:
> > Does u
On Fri, 17 May 2002, Jie Gao wrote:
> use Apache::Constants qw(:common :response M_GET M_POST AUTH_REQUIRED REDIRECT);
the :response group in 1.x consists of names which apache has deprecated
in 1.3.x and removed in 2.0, for which there are HTTP_* names that replace
the old names. so for exam
On Tue, 14 May 2002, Douglas Younger wrote:
> Hello,
>Has anyone written a proxy handler in 2.0 similar to example 7-12 of the
> O`Reilly book? I've tried converting it without much luck. I don't need the
> add-blocker stuff, just a generic proxy handle that I can add some
> additional lin
> Does using the Apache::GTopLimit module have the same net effect as
> restarting the server itself by simply killing off the actual
processes
> which are growing beyond the set threshold, and thereby causing new
> processes to be born?
It does kill off processes that are getting too big, and yo
On Mon, 20 May 2002, Peter Rothermel wrote:
> Thanks for the info. Latest from cvs works fine.
> Any idea how close _02 might be to release?
hopefully in a day or three.
Does using the Apache::GTopLimit module have the same net effect as
restarting the server itself by simply killing off the actual processes
which are growing beyond the set threshold, and thereby causing new
processes to be born?
If so, this sounds like a good alternative to setting a cron tas
Great, the CVS version passes all tests for me now when built
under 'perl Makefile.PL EVERYTHING=1' using apache 1.3.24.
On Tuesday, May 21, 2002, at 07:19 AM, Doug MacEachern wrote:
> On Sun, 28 Apr 2002, Ken Williams wrote:
>
>>
>> Insecure dependency in eval while running with -
At 00:45 21.05.2002, Issac Goldstand wrote:
>I'd like to try to disagree here. I have built several file-related
>webapps where I have implemented virtual filesystems which require special
>perl modules to access the files at all. mod_perl takes care of serving
>the requests. If I need a res
Does using the Apache::GTopLimit module have the same net effect as
restarting the server itself by simply killing off the actual processes
which are growing beyond the set threshold, and thereby causing new
processes to be born?
Gregory
At 03:27 PM 5/20/2002 -0700, you wrote:
>On Mon, 20 May
I'd like to try to disagree here. I have built several file-related
webapps where I have implemented virtual filesystems which require
special perl modules to access the files at all. mod_perl takes care of
serving the requests. If I need a restart, then I can still safely use
graceful. Ad
Thanks for the info. Latest from cvs works fine.
Any idea how close _02 might be to release?
-pete
Doug MacEachern wrote:
> On Mon, 20 May 2002, Peter Rothermel wrote:
>
> > I've run into a problem with mod_perl configuration instructions
> > with for Registry scripts. I've built mod
On Sat, 18 May 2002, Jaberwocky wrote:
> I'm having some problems with this. Apache seg faults on the call to parse...
..
> #1 0x80c5ad8 in XML_GetBuffer ()
did you build apache with --disable-rule=EXPAT ?
On Mon, 20 May 2002, Peter Rothermel wrote:
> I've run into a problem with mod_perl configuration instructions
> with for Registry scripts. I've built mod_perl and copied the
> blib directly under my Apache2 (server root) directory.
sounds like a bug that has been fixed in cvs. try the cvs ver
On Mon, 20 May 2002, Perrin Harkins wrote:
> Apache::SizeLimit or Apache::GTopLimit is a better way to do it, since
> it results in fewer unnecessary restarts. However, it's still a good
> idea to restart periodically, because some of the shared memory seems to
> become unshared over time no
I mentioned the connection closing as a drawback of restarting the server
-- it was slightly OT for the thread.
Yes, it is a subclass of Apache::MP3 that can stream video and audio.
There is an old version called Apache::Jukebox in the Apache::MP3 CVS at
namp.sourceforge.net in case anyone is int
Gregory Matthews wrote:
> For example, is there a command line tool to use that will allow me to
> see the process growth upon request reload? I know that I should run
> the server with httpd -X, but I don't know how to actually see the
> memory being used/increased/decreased when the prog is
Jason wrote:
> If you don't want to restart the server then don't do this instead, it should
>help prevent small leaks from being a problem.
> http://httpd.apache.org/docs-2.0/mod/mpm_common.html#maxrequestsperchild
Apache::SizeLimit or Apache::GTopLimit is a better way to do it, since
it r
At 23:54 20.05.2002, Allen Day wrote:
>I've noticed that if I restart apache while I'm in the middle of a
>download (MP3 stream), after the buffer in my MP3 player runs out, it
>skips to the next track -- presumably because the connection was closed.
>
>This might cause a problem for you if your u
Per Einar Ellefsen wrote:
> And if something goes wrong? You'd be having a server offline with noone
> knowing about it.
You can easilly set up mon (http://www.kernel.org/software/mon/) to page
you if the server doesn't come back up within a certain amount of time.
- Perrin
I've noticed that if I restart apache while I'm in the middle of a
download (MP3 stream), after the buffer in my MP3 player runs out, it
skips to the next track -- presumably because the connection was closed.
This might cause a problem for you if your users are downloading big
files. They might
On Monday 20 May 2002 9:30 pm, Gregory Matthews wrote:
> I too thought of setting a cron job to restart the server once per day in
> order to keep the memory "fresh".
>
> In a production environment, are there any downsides to doing this, i.e.,
> server inaccessibility, etc..?
It's very rare to h
If you don't want to restart the server then don't do this instead, it should help
prevent small leaks from being a problem.
http://httpd.apache.org/docs-2.0/mod/mpm_common.html#maxrequestsperchild
- Original Message -
From: "Per Einar Ellefsen" <[EMAIL PROTECTED]>
To: "Gregory Mat
On Mon, 20 May 2002, Jie Gao wrote:
> Just got one from cvs and 'make test' hangs on apr/util:
...
> apr/util
likely the call to APR::generate_random_bytes, could be blocking on
/dev/random or similar (strace would tell you). i've disabled the test
in cvs for the moment, as i've
At 23:23 20.05.2002, Gregory Matthews wrote:
>Unfortunately, we only have one machine. If we did employ the cron job as
>a clean-up utility once per day, wouldn't the potential impact of a site
>being unavailable only be for a few seconds (until Apache restarted)?
And if something goes wrong?
On Tue, 14 May 2002, Alessandro Forghieri wrote:
> ii) It does however crash on my testbed app (which runs as standard CGI,
> FastCGI and
> moperl1). The crash itself appears to happen when a number of
> nearly-simultaneous requests
> arrive to the server and is fatal to modperl (but the static-s
On Fri, 3 May 2002, Peter Rothermel wrote:
> I tried the mehod attribute and now I get this error:
>
> Error message:
>Can't locate object method "" via package "Apache::AuthDerivedHandler".
method handlers were broken in _01, this has been fixed in cvs and will be
in 1.99_02
On Sun, 28 Apr 2002, Ken Williams wrote:
>
> Insecure dependency in eval while running with -T switch.
> Callback called exit.
>
this has been fixed in modperl cvs, just remove the 'use
ExtUtils::testlib;' line in t/docs/startup.pl
Unfortunately, we only have one machine. If we did employ the cron job as
a clean-up utility once per day, wouldn't the potential impact of a site
being unavailable only be for a few seconds (until Apache restarted)?
Gregory
At 05:12 PM 5/20/2002 -0400, you wrote:
>Like another suggestion, w
On Sat, 27 Apr 2002, sagar wrote:
>
> Hi
> I have installed apache-1.3.12, openssl-0.9.5a and apache-1.3.12+ssl-
> 1.40 and configured mod_perl-1.26 on freeBSD 4.1 with apache by giving
> the following:
>
> %perl Makefile.PL APACHE_SRC=../apache_1.3.12/src DO_HTTPD=1
> USE_APACI=1 EVERYTHING=
At 22:50 20.05.2002, Gregory Matthews wrote:
>Thanks to everyone for the great input on Memory Leaks. Now that I have a
>good starting point for tracking down the problem, when I TEST for leaks,
>or simply check for a continued increase in server memory usage, how do I
>go about monitoring the
I've run into a problem with mod_perl configuration instructions
with for Registry scripts. I've built mod_perl and copied the
blib directly under my Apache2 (server root) directory.
Here's the errors I get run I start apache:
C:\WGTI\Apache2\bin>apache
Using C:\WGTI\Apache2/blib
[Mon M
Thanks to everyone for the great input on Memory Leaks. Now that I have a
good starting point for tracking down the problem, when I TEST for leaks,
or simply check for a continued increase in server memory usage, how do I
go about monitoring the processes growth?
For example, is there a comma
Gregory Matthews wrote:
> I too thought of setting a cron job to restart the server once per day
> in order to keep the memory "fresh".
>
> In a production environment, are there any downsides to doing this,
> i.e., server inaccessibility, etc..?
There have been some discussion on the list abo
I too thought of setting a cron job to restart the server once per day in
order to keep the memory "fresh".
In a production environment, are there any downsides to doing this, i.e.,
server inaccessibility, etc..?
Thanks.
Gregory
At 08:25 AM 5/20/2002 -0400, you wrote:
>It is more an issue o
A remark: in many cases, the authentication against the password file can be
replaced by verifying valid FTP/Telnet login to "localhost", not only
because the password (shadow) file is usually not avialble for Apache
account but also secure. In the ticketing system, the FTP/Telnet
authentication r
Geoffrey Young wrote:
>
>
> Mike Melillo wrote:
>
>> I am trying to have a user upload an image and I am getting an undef
>> $apr->upload object.
> we have a working example that may be able to help you some:
>
> http://www.modperlcookbook.org/code/ch03/Cookbook/PrintUploads.pm
also see th
Mike Melillo wrote:
> I am trying to have a user upload an image and I am getting an undef
> $apr->upload object.
>
[snip]
> sub upload {
>
> my ($r) = shift;
> my $apr = Apache::Request->new($r);
> my $status = $apr->parse;
you might want to check the status of
I am trying to have a user upload an image and I am getting an undef
$apr->upload object.
Here is the code:
your picture (size limit: 30k)
sub upload {
my ($r) = shift;
my $apr = Apache::Request->new($r);
my $status = $apr->parse;
my $upload = $apr->
Ted Prah wrote:
> That explains the library files not reloading - Thanks!
Great!
>>I suppose if you want to use the cheap workaround, you have to
>>s/require/do/. Remember that the guide suggests the lib.pl trick as a
>>workaround, not a solution you go with during the normal development.
>
>
Stas Bekman wrote:
> Ted Prah wrote:
>
> >>do you test only this script alone? What happens if you add the package
> >>declaration and then call it using the full name? e.g.:
> >>
> >
> >
> > Yes, this is the only script (and corresponding library file) that I use
> > for this test. When I use
Drew Taylor wrote:
> This is a little OT, but I really love the new look of the website you
> mention below. Major kudos to all those who helped put together the new
> look-n-feel & content.
Thanks Drew, but please hold off on any comments, since we are still
tuning the design to work better i
Ted Prah wrote:
>>do you test only this script alone? What happens if you add the package
>>declaration and then call it using the full name? e.g.:
>>
>
>
> Yes, this is the only script (and corresponding library file) that I use
> for this test. When I use the package declaration and make the
This is a little OT, but I really love the new look of the website you
mention below. Major kudos to all those who helped put together the new
look-n-feel & content.
Drew
>At 11:53 PM 5/19/2002 +0200, you wrote:
>>Thank you very much Gregory, I have patches the online docs.
>>
>>By the way, th
Todd Chapman wrote:
> That makes sense. I can't use mod_auth because I can't set Require.
well, if you're saying that you don't have the ability to set the Require directive at
all
(as in you don't have access to edit httpd.conf), then you can't run any
authentication
handler - mod_auth,
Todd Chapman wrote:
> I need to decide who has access based on the URI. I guess this means I
> can't use Apache's Basic auth module, since I can't dynamically set
> require.
as I was saying, go ahead and set the Require directive on the (or
whatever)
that you want to protect. if a URI co
On Mon, 20 May 2002, Mark Fowler wrote:
> On Mon, 20 May 2002, Matt Sergeant wrote:
>
> > if ($@ && $@->isa('Exception::DB')) {
> >debug "Exception: $@";
> >$um->dbh->rollback;
> > }
> >
> > (note: if you expect all exceptions to be references like this, you had
> > better have a $SIG{__D
Stas Bekman wrote:
> Ted Prah wrote:
> > Thanks Drew, I tried that, but it did not work.
>
> What happends if you add:
>
> PerlWarn On
>
> in httpd.conf
>
> or
>
> start the script with perl -w?
>
> any warnings?
>
I had PerlWarn On and added -w anyway, but there were no errors.
>
> do you te
On Mon, 20 May 2002, Matt Sergeant wrote:
> if ($@ && $@->isa('Exception::DB')) {
>debug "Exception: $@";
>$um->dbh->rollback;
> }
>
> (note: if you expect all exceptions to be references like this, you had
> better have a $SIG{__DIE__} handler installed to bless non-blessed
> exceptions
On Mon, 20 May 2002, F. Xavier Noria wrote:
> On Mon, 20 May 2002 10:15:02 +0100 (BST)
> Matt Sergeant <[EMAIL PROTECTED]> wrote:
>
> : > my $um = UserManager->new;
> : > # ...
> : > try {
> : > $um->write_user($user);
> : > $um->dbh->commit;
> : > } catch Exception::DB
At 13:47 20.05.2002, H Jayakumar wrote:
>Hello anyone,
>
>Iam building mod_perl for NetWare.
>
>The new mod_perl ( 1.99_01 ) has extensions, under the wrapxs and the
>xs directories.
>
>I have built mod_perl.so .in the src/modules/perl directory.
>
>What should I do next , to get the complete mod_
Hello anyone,
Iam building mod_perl for NetWare.
The new mod_perl ( 1.99_01 ) has extensions, under the wrapxs and the
xs directories.
I have built mod_perl.so .in the src/modules/perl directory.
What should I do next , to get the complete mod_perl ?
Thank you,
Todd Chapman wrote:
> Can dir_config be used to set 'require' in an authentication handler?
no. dir_config() provides access to a mod_perl specific table of variables, not
generic
Apache configuration directives.
there is no API for setting the Require directive - it needs to be in your h
On Mon, 20 May 2002 10:15:02 +0100 (BST)
Matt Sergeant <[EMAIL PROTECTED]> wrote:
: > my $um = UserManager->new;
: > # ...
: > try {
: > $um->write_user($user);
: > $um->dbh->commit;
: > } catch Exception::DB with {
: > my $e = shift;
: > debug "Excepti
On Mon, 20 May 2002, F. Xavier Noria wrote:
> On Sun, 19 May 2002 23:34:24 -0400
> "Perrin Harkins" <[EMAIL PROTECTED]> wrote:
>
> : Leaks are caused by circular references, the string form of eval (at
> : least it used to leak a little), nested closures (sometimes created
> : accidentally with t
Hi!
On Sun, May 19, 2002 at 10:34:17AM +0200, Per Einar Ellefsen wrote:
> At 10:22 19.05.2002, [EMAIL PROTECTED] wrote:
> > I have written scripts to add a user to the passwd and shadow files as well
> >as sendmail user files. When I run this script from the command line for
> >testing all runs
On Sun, 19 May 2002 23:34:24 -0400
"Perrin Harkins" <[EMAIL PROTECTED]> wrote:
: Leaks are caused by circular references, the string form of eval (at
: least it used to leak a little), nested closures (sometimes created
: accidentally with the Error module)
I am using the Error module in my curr
At 23:36 19.05.2002, Gregory Matthews wrote:
>># Initialize the database connections for each child
>>Apache::DBI->connect_on_init
>>("DBI:mysql:database=test;host=localhost", "user","password",
>>{ PrintError => 1, # warn() on errors
>>RaiseError => 0, # don't die on error
>>AutoCommit => 1, # c
63 matches
Mail list logo