rl2/+bug/1008385
3: https://bugzilla.redhat.com/show_bug.cgi?id=782369
4: https://bugzilla.redhat.com/attachment.cgi?id=567625&action=diff
Thanks,
--
Jonathan Wiltshire
Tiger Computing Ltd
"Linux for Business"
Tel: 01600 483 484
Web: http://www.tiger-computing.co.uk
Follow us on Fa
We use Apache/mod_perl 2 and occasionally get a child httpd process that spins
out of control, either consuming ever-increasing amounts of memory or max cpu.
Usually due to an infinite loop or other bug in a specific part of the site -
this sort of thing happens.
I would like to monitor for suc
We use Mason 1.x inside a custom web framework (which I've recently gotten
permission to release open-source), under mod_perl/Apache 2. Working on a
transition to Plack and Mason 2, but we've already integrated the superior
stack traces and debug console from Plack middleware.
On Jun 15, 2011,
Thanks André. I haven't touched the site in a while but it's due for an
overhaul (and conversion to Mason 2) so will hopefully fix things then.
On Feb 24, 2011, at 12:56 PM, André Warnier wrote:
> This being said, I would like to report a small bug, I believe more of the
> web server than Mason
ote:
> oops is there any big player using Mason these days?
>
> On Tue, Feb 22, 2011 at 2:24 AM, Perrin Harkins wrote:
>> In case any of you Mason users on the mod_perl list aren't on the Mason
>> list...
>>
>> - Perrin
>>
>> -- Forward
rin Harkins wrote:
>>> In case any of you Mason users on the mod_perl list aren't on the Mason
>>> list...
>>>
>>> - Perrin
>>>
>>> -- Forwarded message --
>>> From: Jonathan Swartz
>>> Date: Mon, Feb
On Feb 22, 2011, at 6:55 AM, Phil Carmody wrote:
> --- On Tue, 2/22/11, Jonathan Swartz wrote:
>> I'm pleased to
>> announce Mason 2, the first major version of Mason in ten
>> years:
>>
>>http://search.cpan.org/perldoc?Mason
>>
>> Mason
I'm pleased to announce Mason 2, the first major version of Mason in ten years:
http://search.cpan.org/perldoc?Mason
Mason is a templating framework for generating web pages and other dynamic
content. Mason 2 has been rearchitected and reimplemented from the ground up,
to take advantage of m
On May 27, 2010, at 1:04 PM, Perrin Harkins wrote:
On Thu, May 27, 2010 at 11:11 AM, Michael Schout
wrote:
My solution involved forking off a watcher process when the server
starts up.
Wouldn't it be simpler to start a separate daemon for this? You could
launch it from apachectl if you do
On Jan 27, 2010, at 2:45 PM, Perrin Harkins wrote:
On Tue, Jan 26, 2010 at 7:42 PM, Jonathan Swartz
wrote:
On our site we create a new CGI::Session object at the beginning of
the
request, so that it can be used anywhere in the web code.
However, sessions are rarely written to, so at the
This never got a response. Which surprises me, since I think it is a
legitimate and nasty bug.
So is the silence because
1) people don't think it's really a bug
2) people glazed over while reading the description
3) ??
Thanks :)
Jon
On Jan 8, 2010, at 6:15 AM, Jonathan Swartz w
On our site we create a new CGI::Session object at the beginning of
the request, so that it can be used anywhere in the web code.
However, sessions are rarely written to, so at the end of the request
I'd like to avoid actually writing out a new session to backing store
unless a param actual
(A continuation of:
http://marc.info/?l=apache-modperl&m=117507879929572&w=2
http://marc.info/?l=apache-modperl&m=119072925228529&w=2
)
I've just spent many frustrating days debugging a situation that
turned out to be caused by mod_perl's closing of file descriptor 1
(STDOUT).
Here's the re
Server::Control allows you to control servers ala apachectl, but with
better diagnostics and many more features. It includes both a drop-in
replacement for apachectl (”apachectlp”) and an OO interface.
Though it was designed with Apache in mind, there are also subclasses
for HTTP::Server::S
On Nov 3, 2009, at 4:27 AM, André Warnier wrote:
I see that you mention mysql. This probably means DBI.
I think you need to be a bit careful with DBI and Apache::Reload. I
seem to recall that there are some particularities there
(Probably in relation to permanent cached database connection
On Oct 15, 2009, at 1:36 PM, Adam Prime wrote:
I haven't played with it, but i have read a bunch of Miyagawa's blog
posts about it. I do know that Jeff Horwitz is planning to support
WSGI in mod_parrot / mod_perl 6, but i don't know exactly what that
means ;)
Yeah I heard about that too
On Oct 15, 2009, at 10:01 AM, Issac Goldstand wrote:
Whaddaya know...
Ironically, this might have saved Plone at my workplace had I known
that
this was on the way. We were looking at writing custom WSGI
components
in Python and shuddering (well, I was shuddering)
I'm 80% Python now, so
Has anyone here played with Plack yet ? ( http://plackperl.org/ )
It's about a week old or so publicly, but I'm sure a few of you folks
here were privvy to a preview...
// Jonathan Vanasco
e. jonat...@2xlp.com
w. http://findmeon.com/user/jvanasco
blog. http://destruc
On Oct 2, 2009, at 3:25 PM, Perrin Harkins wrote:
On Fri, Oct 2, 2009 at 5:54 PM, Jonathan Swartz
wrote:
Ok, one more question. Disregarding graceful for the moment - is HUP
completely reliable with mod_perl at this point, or is there still
a reason
(as there once supposedly was) to do a
On Sep 25, 2009, at 10:48 AM, Clinton Gormley wrote:
If I don't ever plan to use graceful restarts, and I believe that
smaller restart times are an unqualified Good, is there any reason
why
I shouldn't ALWAYS use a script like the above? And is there any way
to avoid PerlModule modules from
Nope, I still get the error in the logs. It just takes a few seconds
to show up.
On Sep 25, 2009, at 11:20 AM, Clinton Gormley wrote:
Hm. No compile errors would be bad. But I put an error in one of my
modules (that only gets loaded the second time) and started apache,
and got error log out
There's only one small gotcha that I've found, and that occurs in this
situation:
- apache isn't running
- you do : apachectl restart
- there is a compile time bug, and apache dies
The gotcha is that you don't get any STDERR or log output in this
situation. However, you're only ever likely to
I was looking into why our server's restarts take so long, and I
finally remembered that Apache runs its initialization step twice on
startup (http://tinyurl.com/krr25). This means that my startup.pl is
loaded twice, along with any modules that it loads.
So I moved startup.pl to startup_rea
On Sep 11, 2009, at 3:53 PM, Fred Moyer wrote:
On Fri, Sep 11, 2009 at 3:37 PM, Jonathan Swartz
wrote:
On Fri, Sep 11, 2009 at 3:11 PM, Jonathan Swartz
wrote:
It seems like it's available separately in Apache-Reload
distribution:
http://cpan.uwinnipeg.ca/dist/Apache-Reload
On Fri, Sep 11, 2009 at 3:11 PM, Jonathan Swartz
wrote:
It seems like it's available separately in Apache-Reload
distribution:
http://cpan.uwinnipeg.ca/dist/Apache-Reload
But it's already pretty much a straw-man option for me. :)
Problem: some modules fail to reload properly.
ck in as dependencies?
On Sep 11, 2009, at 2:52 PM, Perrin Harkins wrote:
On Fri, Sep 11, 2009 at 5:26 PM, Jonathan Swartz
wrote:
This is the nicest solution I've seen so far. The only problem I
can see is
its performance - each potentially-changing module has to be loaded
on eac
On Sep 11, 2009, at 2:52 PM, Perrin Harkins wrote:
On Fri, Sep 11, 2009 at 5:26 PM, Jonathan Swartz
wrote:
This is the nicest solution I've seen so far. The only problem I
can see is
its performance - each potentially-changing module has to be loaded
on each
request. **
How long
as of mod_perl-2.0.4,
Apache2::Reload is gone (so you can remove that from your list of
options).
--
Devin
On Fri, 2009-09-11 at 14:26 -0700, Jonathan Swartz wrote:
I'm thinking about an improved solution to recognizing module changes
in a running server, without restarting the server.
These
I'm thinking about an improved solution to recognizing module changes
in a running server, without restarting the server.
These are the solutions I know about:
1) Apache2::Reload / Module::Reload
These check whether modules have changed on each request, and if so,
clear their symbols and re
> We've got a bunch of legacy code that uses $ENV{SCRIPT_URI},
> $ENV{SERVER_PORT}, $r->server->port and the like to generate
external
> redirects.
>
If these are really external redirects, they must happen through a
"Location:" response header, no ?
In that case, what about leaving your code a
We've got a bunch of legacy code that uses $ENV{SCRIPT_URI},
$ENV{SERVER_PORT}, $r->server->port and the like to generate external
redirects.
This has worked fine til now, but now we are moving to a system where
our external port != our internal port - the load balancer is going to
forwar
I'm running into the problem using Linux::Smaps on RHEL with an Apache
server on port 80. Namely, that the httpd child doesn't have
permissions to look at the smaps file.
Linux::Smaps: Cannot open /proc/20074/smaps: Permission denied
or
Linux::Smaps: Cannot open /proc/self/smaps:
Yup, I'm trying to figure out a way to integrate generation of conf
files, since that's another common activity, I'm sure.
Ok, I'll put it out there.
Jon
On Jun 5, 2009, at 3:18 PM, Perrin Harkins wrote:
On Fri, Jun 5, 2009 at 5:21 PM, Jonathan Swartz
wrote:
Over the
httpd, obviously
I'm guessing that my code, with subclassing, could work equally well
for apache, lighttpd, and HTTP::Server::Simple.
Jon
On Jun 5, 2009, at 2:21 PM, Jonathan Swartz wrote:
Over the years I've developed (as I'm sure many have :)) a small
home-grown replacement fo
Over the years I've developed (as I'm sure many have :)) a small home-
grown replacement for apachectl, to make start/stop/restart easier.
It's in library form, and among other things it
* detects whether the server is actually running, by contacting the port
* waits to make sure the server st
Can someone tell me where to go to unsubscribe?
Thanks.
On Feb 13, 2009, at 5:11 PM, Joe Schaefer wrote:
We had to stop using libapreq2 for cookies, because we found out
that wordpress
(being a shoddy piece of software) was generating invalid cookies
at times.
when apreq encountered it, it segfaulted.
What version of apreq was this? And did yo
On Feb 13, 2009, at 3:38 PM, André Warnier wrote:
The management part of me says that if you sell shoddy merchandise to
people, they are going to come back and hit you with it.
Presumably, if you get such kind of posted data from a form, it is
because you sent a shoddy form to the browser, which
On Feb 6, 2009, at 4:58 PM, Phil Carmody wrote:
In those name/value pairs, according to HTML 4 at least, the names
must begin with a letter [A-Za-z]. The empty string does not do so.
Garbage in, garbage out.
Part of me agrees with that philosophy.
Another part of me is more practical.
chiming in a few months late...
from my experience, and responding to some thoughts in the thread:
- storing photos in mysql/pgsql is not a good idea. aside from misc
issues that always arise, you end up stressing the db through searches
- the better way would be to store photo meta-data in
was
investigating
some other option, but i think i'l use it :)
Be careful, IPC::Shareable is pretty slow, especially for large chunks
of data. In most cases, an RDBMS or a dbm file ends up being faster.
also memcached can work well here
// Jonathan Vanasco
w. http://findmeon.com
On Jun 5, 2008, at 3:09 PM, Perrin Harkins wrote:
Count me in. This should be fun. Work on your mod_php jokes.
does anyone even use that anymore ? (a serious question)
On May 22, 2008, at 1:14 PM, Perrin Harkins wrote:
The module I'm presenting at YAPC::NA and OSCON this year,
DBIx::Router, will make it easier to add this kind of partitioning
after the fact. It lets you set up rules to choose which database to
send a query to. When I have a public prototype
erour ram and APC .5GB. then run the rest of the box on
memcached. its not worth running replicants on your http machines -
you're better off tossing the CPU to php and the RAM to memcached.
// Jonathan Vanasco
w. http://findmeon.com/user/jvanasco
On May 11, 2008, at 2:52 AM, Marc Lambrichs wrote:
Here's my view: they create a parent App::Handler and in every
virtual host they create a Site::Handler which has App::Handler as
base. My first guess is that under mod_perl you don't know which
Site::Handler will be called. Ofcourse, at
If so, catch me offlist.
This will become relevant to the list next week, i promise ;)
// Jonathan Vanasco
w. http://findmeon.com/user/jvanasco
e. [EMAIL PROTECTED]
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
| FindMeOn.com - The
On Mar 28, 2008, at 3:11 PM, Colin Wetherbee wrote:
Care to add one, just to see what happens? :)
You know you've been working too much on the Business Side when you
stop testing stuff like that automatically. sigh...
ok...
it works if i have
package MyApp;
sub handler {}
sub handler_
On Mar 27, 2008, at 8:43 PM, Colin Wetherbee wrote:
Hm. Yep. ResponseHandler can interpret the ::ResponseHandler part
as being a function within Handler.pm, but that does *not* work for
InitHandler.
i have it set up using
PerlFixupHandler
PerlResponseHandler
PerlC
On Mar 26, 2008, at 9:47 AM, Colin Wetherbee wrote:
We seem to have solved the problem, but for the sake of
conversation...
When I've tried that in the past, mod_perl would always look for
handler() within JetSet::Handler::AccessHandler.pm.
Wow.
I've got 5 sites in production right now..
On Mar 19, 2008, at 2:22 PM, Colin Wetherbee wrote:
PerlAccessHandler JetSet::Handler->AccessHandler
PerlResponseHandler JetSet::Handler->ResponseHandler
sub ResponseHandler
{
my (undef, $r) = @_;
# ...
}
what about...
PerlAccessHandler JetSet::Handler::AccessHandler
sub AccessHandler
On Feb 26, 2008, at 8:29 PM, J. Peng wrote:
coding from perl to python is easy,at least it's easy for me.
but,as many guys have said to me, from python to perl is not easy.
perl's many features,like the rich built-in variables and context,are
not so easy to be accetable by newbies.
I think th
On Feb 25, 2008, at 1:57 AM, Dami Laurent (PJ) wrote:
Hi Randy,
Thanks a lot, seems to work fine (but I didn't test very
extensively yet).
Just one small bug in the PPM : the ppd file mentions
Apache2::Reload, but this is not included in the tar.gz file. So I
had to manually install it.
g to save on hardware scaling, developer scaling, is the
codebase just unmanageable? this would be a costly transition
// Jonathan Vanasco
w. http://findmeon.com/user/jvanasco
e. [EMAIL PRO
cessing, and write a
session expiry system in an event driven framework ( or even use cron/
at jobs to trigger shell scripts )
// Jonathan Vanasco
w. http://findmeon.com/user/jvanasco
e. [EMAIL PROTECTED]
| Founder/CEO - FindMeOn, Inc.
| - - - - - - - - - - - - - - - - - - - - - - - - - -
On Feb 7, 2008, at 2:41 PM, Perrin Harkins wrote:
Sure, it's a building block. You build the expiration part on top of
it. Either you use a timestamp column in your database or you update
a timestamp in the session data. Then you check that to see if too
much time has passed.
You can certai
On Jan 6, 2008, at 12:37 PM, Kurt Hansen wrote:
I'm using Crypt::RSA module for generating public & private keys.
Now the
problem is that when I'm storing the keys in the database, and again
bringing them to do the signature or verification the Crypt::RSA
module is
unable to understand the
try using Crypt::OpenSSL::RSA
its a little faster. there is a memory leak in it, but the max-
requests directive will make it pretty inconsequential.
On Dec 28, 2007, at 5:37 AM, arnab wrote:
Hi Everyone,
I'm using a small script to use the Crypt::RSA module under windows
using
Active
On Dec 22, 2007, at 11:53 AM, Adam Prime wrote:
I believe in this situation what you want is $r->status
(Apache::Const::HTTP_OK). HTTP_OK and OK are not the same thing
at all.
It's a mean trick... one is an HTTP constant, the other is a
mod_perl constant ( ie HTTP_ prefix and no prefix )
On Dec 23, 2007, at 1:53 AM, [EMAIL PROTECTED] wrote:
I think the print magic only happens if you are running under
SetHandler perl-script, and not if you are running under SetHandler
modperl.
Ah, that seems to be it.
I never used perl-script ; I went straight for modperl when i did the
On Dec 22, 2007, at 4:47 PM, Perrin Harkins wrote:
By the way, if you just call print() normally it should all be grabbed
by mod_perl anyway. Is there some reason you need to call $r->print()
instead?
I thought it only does that if you bind STDOUT the right way on
compile time, otherwise it
I'm surprised you're even getting a redirect, this doesn't make sense
to me. the MP cleanup handler is supposed to happen after the
request is served / client connection is terminated (docs below)
if you're trying to do a redirect after processing, try a stacked
handler
http://perl.apac
On Dec 3, 2007, at 6:30 PM, Boysenberry Payne wrote:
Our system could benefit a lot from being able to compile SWFs on
the fly; right now they're all
static files loaded dynamically. I could see making them
dynamically as needed, while still serving
up the static renditions.
We do some d
Ext is good. Personally, I like the MochiKit system (though a good
friend maintains it). A few of the big-guys use it for all their
internal systems.
It has a neat dev enviroment - even has an interpreter for you to dev
in.
http://mochikit.com/examples/interpreter/index.html
O
On Dec 3, 2007, at 6:30 PM, Boysenberry Payne wrote:
Our system could benefit a lot from being able to compile SWFs on
the fly; right now they're all
static files loaded dynamically. I could see making them
dynamically as needed, while still serving
up the static renditions.
We do some d
What does it download?
print "Content-type: text/plain\n\n";
print "Mod Perl 2 Rocks\n";
or
Mod Perl 2 Rocks
?
On Nov 18, 2007, at 11:00 PM, Perrin Harkins wrote:
Okay, the copy/paste error just confused me.
In any case, Apache2::Reload wipes all package variables. It uses
ModPerl::Util::unload_package. So, this is the intended behavior. My
general advice is to only used Apache2::Reload on a dev serv
atcher to a factory class
On Nov 18, 2007, at 10:37 PM, Perrin Harkins wrote:
On Nov 18, 2007 7:30 PM, Jonathan Vanasco <[EMAIL PROTECTED]>
wrote:
below is a summation of my problem. when a2::reload recompiles off
of a changed sub, i lose the entire WATCH_ME var.
What would this
I'm losing variables under apache2:: reload
below is a summation of my problem. when a2::reload recompiles off
of a changed sub, i lose the entire WATCH_ME var.
i think this might happen because of the begin blocks. and the way
plugins register. i thought it wise to bring this up though,
u get your HTML data
as without mod_tidy.
To load the module into Apache, add it to APACHE_MODULES in
/etc/sysconfig/apache2 ('a2enmod mod_tidy'). To learn about the
configuration, refer to
/usr/share/doc/packages/apache2-mod_tidy/README.
// Jonathan Vanasco
w. http://findmeon.co
We want to periodically analyze our apache error logs, and send out
email reports with summaries of new errors that have occurred since
the last report. Ideally, similar errors would be combined into
groups, and reported in order of frequency.
This seems like a common task (something I've w
On Nov 13, 2007, at 3:04 PM, Dodger wrote:
Something doesn't sound right with this assessment. Stealing the
digest(password) wouldn't let you in on a different connection because
you'd be using a different seed on a different connection...
Yes, you're right , as is your example.
However, the
an unseeded digested password and limit replay
attacks.
// Jonathan Vanasco
w. http://findmeon.com/user/jvanasco
e. [EMAIL PROTECTED]
| Founder/CEO - FindMeOn, Inc.
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
|
On Nov 13, 2007, at 11:48 AM, Michael Peters wrote:
Why is this considered "ticketless"? Isn't the challenge that you
mention below
really a ticket? And does the client need to present this ticket on
every request?
Yes, you're right - the challenge is a ticket -- and must be
presented on
y
The SVN is here:
http://dev.2xlp.com/svn/mod_perl/Authen::Ticketless/trunk/
// Jonathan Vanasco
w. http://findmeon.com/user/jvanasco
e. [EMAIL PROTECTED]
| Founder
i'm just tossing this idea out...
1) have a profiler package that handles all the logging, etc - and
uses a constant
package MyApp:::Profiler;
use constant DO_PROFILE=> 1;
sub profile {
my ( $marker )= @_ ;
#log;
}
1;
2)
On Nov 10, 2007, at 8:00 PM, Hendrik Van Belleghem wrote:
To be honest, I haven't been able to get DBD::mysql compiled, nor
Apache2::Request (properly - still some strange errors in the
apache2 error log when I try to load it).
I haven't fully tested the Apache2 (or mod_perl for that matter).
Slightly off-topic:
The 10.2 10.3 and maybe 10.4 versions of Apache that came with OS X
had library conflicts with mysql/php if you tried to compile modperl
1 or 2
Can I interpret your post to mean that one does not have to rebuild
Apache2 now too?
On Nov 10, 2007, at 9:56 AM, Hen
On Nov 8, 2007, at 1:40 PM, John ORourke wrote:
Pound (http://www.apsis.ch/pound/index_html) is light-weight,
easy to
I can disagree -- nginx does everything that pound does, plus
will handle your vanilla
FLAME WAR!!!1!1!
well its not meant to flame... your options are this:
a)
On Nov 8, 2007, at 5:50 AM, Clinton Gormley wrote:
Pound (http://www.apsis.ch/pound/index_html) is light-weight, easy to
configure, fast, stable, and makes the whole SSL and load balancing
dead
easy.
I can disagree -- nginx does everything that pound does, plus will
handle your vanilla s
On Oct 24, 2007, at 10:37 PM, Foo JH wrote:
What is fast to cook, good to eat is HTML::Template. No XML, easy
abstraction between your web designer and developer.
I GREATLY prefer using TAL ( in perl using Petal ) for the V
someone finally made an integration for Petal and Catalyst.
unfo
On Aug 10, 2007, at 10:25 PM, Mag Gam wrote:
I have just started learning perl and mod_perl, and I must admit I
am enjoying it a lot!
I am tying to upload a file, so I can do some calculations to the
file, my question is what is the "correct" and most "efficient" way
to upload the file, an
Are we going to have 2.09 release? It's been quite some time since
RC2
actually, i'd like to see an RC3-- there was an issue I kept
complaining about that Joe was going to solve thanks to some testing
by [EMAIL PROTECTED] -- reference the posting on 2007.05.25
Supposedly, this is going
e the info in $r ; you
ESPECIALLY DO NOT want to do that in your case
// Jonathan Vanasco
Founder/President - FindMeOn
Fonder/CEO - RoadSound
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
| FindMeOn.com - The cure fo
On Aug 2, 2007, at 11:07 AM, Carl Johnstone wrote:
I've got a two-apache reverse proxy setup, split over two hosts.
The problem I've got is that I'd like to put the user_id in the
access logs so that our log analysis software can make use of it.
Setting apache->user correctly logs the user
On Jul 29, 2007, at 12:15 PM, Brian Reichert wrote:
But, that contradicts the behavior I see with my command-line tool
demo:
distinct processes with distinct tied hashes can sucessfully share
data
through the sdbm. :/
any reason why you're using sdbm ? you might be better off with bdb,
On Jul 20, 2007, at 8:44 AM, Michael Peters wrote:
For some reason, some people are hesitant
to run multiple versions of apache on the same machine, but there
are lots of
people who do it all the time and it works out just fine.
If you're concerned about running 3 apaches (1 for mod_perl, 1
connections for 10 children , as any wait time will be offset by db
blocking in later request cycles of your app. thats theoretical
though, i haven't had the need/time to try that, but i&
to rewrite mod_autoindex to get your functionality.
However, that wouldn't be very hard to do in MP .
// Jonathan Vanasco
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
| CEO/Founder Synd
On Jul 13, 2007, at 9:48 AM, Perrin Harkins wrote:
On 7/13/07, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
I'm thinking of the situation where you have 1 parent, 4 children.
all 4 children hit max-requests and exit before the first replacement
spawns. without a standing connec
First off- thank you perrin , i'm a step closer to fully
understanding this.
On Jul 12, 2007, at 9:14 PM, Perrin Harkins wrote:
No. This is explicit shared memory, not a mysterious copy-on-write
thing. You need to initiate access separately from each process so
that none of the XS stuff
Could you elaborate on this?
I'm a bit unclear:
are you suggesting
a) the tie be global pre-fork
b) the tie be post-fork
c) there be no tie whatsoever , and somehow a connection is made
using the API at the beginning , and everything just uses the library/
api methods
?
m
little mistake like that can be fixed by moving a 'my' from a package
into a sub.
thats a common mistake that could result in that effect. the other
answers are much more specific to your
gpool. the apache::dbi/dbi cached don't
really pool; they just override connects for established connections
on their process and reuse them. things like sqlrelay/pgpool will
let you use 50 db connections for 150 server processes ( by blo
variable names can change, and the only
way to get/modify vars is through the api methods.
// Jonathan Vanasco
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
| CEO/Founder SyndiClick Networks
On Jul 3, 2007, at 5:51 PM, Perrin Harkins wrote:
I don't really understand this description. If you're trying to code
a singleton pattern, use global variables to hold the object. That
makes it clearer what your intent is.
Scoping works the same as usual under mod_perl. If you need acces
competing for resources with processes
that can take several seconds. bad idea.
// Jonathan Vanasco
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
ou a 2 deep directory \d\d = 64*64 = 4096
files
if only base32 were more common thats a good sweet spot. for
simplicity, i usually do 3 base16 chars. but 2 base32 might be
better for your os.
// Jonathan Vanasco
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ou're just going to bloat apache and tie up resources.
i run nginx on port80 for static content, push php content to fastcgi
and proxy certain urls to mod_perl. my server's efficiency spiked
drastically when i moved away from an all-apache setup.
ral static
file handling, under mp if at all possible. let it handle content
generation and authorization as the 'brains' -- thats what it does
best. use other apps like perlbal, nginx, whatever to handle your
static files and large uploads.
erl servers. all of the db interaction on
that stuff is handled by requests to internal perl-servers which
return json objects. its really gives us the best of both worlds.
On Jul 1, 2007, at 4:47 AM, Tony van der Hoff wrote:
On 30 Jun at 16:55 Jonathan Vanasco <[EMAIL PROTECTED]>
1 - 100 of 802 matches
Mail list logo