/.
- Perrin
compared
to IfModule tricks that happen on the fly. It does have an advantage in
that you can use it to handle configuration variations for QA and
development systems.
- Perrin
/
See
http://thingy.kcilink.com/modperlguide/config/Alias_Configurations.html
for more.
- Perrin
-script
PerlHandler HTML::Mason
/Directory
It looks to me like you have this set up backwards. It's going to serve
~httpd/html/mason/perl with Mason and ~httpd/html/mason with
Apache::Registry. Is that what you meant to do?
- Perrin
ct here:
http:[EMAIL PROTECTED]
- Perlet::Mail that will provide asynchronous Mail handoffs
qmail-inject will cover this.
The other examples (HTML/XML parsers) don't make sense to me, since
these work fine with mod_perl and are generally synchronous
applications.
- Perrin
they want actual pooled connections instead they
usually don't have a good reason for it.
- Perrin
clients..
Seems like you'd handle this the same as any HTML form with a POST
method. If you aren't sure what that looks like you can read the HTTP
specs or make LWP generate some POST requests and look at them. It's
pretty simple stuff.
- Perrin
on.
- Perrin
so staying
in the Hilton Olympia, incidentally.
- Perrin
can't
remember.
It was during the talk. The tool is called Daquiri, and he said it was
available in the mod_backhand CVS tree.
I have also found httperf and http_load pretty useful for this stuff,
although they don't support logfile playback.
- Perrin
this
sort of problem using filter modules.)
- Perrin
On Mon, 30 Oct 2000, Marek W wrote:
Do you possibly know what could have caused this error while trying to run
this module. I use Linux RH 6.2. and mod_perl 1.23
I've had problems with Apache::DB when using Apache::Request. I have not
attempted to solve them yet.
- Perrin
serialize perl data structures as
XML. Or you can just write a template for it.
- Perrin
this with no front-end proxy, just
mod_perl servers. That's what Theo was suggesting.
I use a mod_proxy front-end myself and it works very well.
- Perrin
On Tue, 31 Oct 2000, Gunther Birznieks wrote:
As a bonus, if you write your app smart with cache directive
headers, some of the dynamic content can truly be cached by the front-end
server.
We're using this technique now and it really rocks. Great performance.
- Perrin
once in every child,
but only once.
- Perrin
On Tue, 31 Oct 2000, Ask Bjoern Hansen wrote:
On Mon, 30 Oct 2000, Perrin Harkins wrote:
[...]
- Don't use a proxy server for doling out bytes to slow clients; just set
the buffer on your sockets high enough to allow the server to dump the
page and move on. This has been discussed
some fun OO stuff, as well as a bunch of scalability tricks.
I was also thinking about presenting a comparison of templating methods
and modules.
- Perrin
{
handle_error();
};
It's not Graham Barr's fault; that's just a byproduct of Perl's support
for closures (I think).
- Perrin
balancer instead.
We use that setup with a hardware load balancer. It works very well.
- Perrin
feels like a throw away, because mod_perl
2.0 will solve the problem in the right way with real pooling of
database handles (and other objects) between threads.
Maybe it's time for DBD:: authors to start checking their code for
thread safety?
- Perrin
On 3 Nov 2000, David Hodgkinson wrote:
Dare I add that Squid has plenty of low-latency cacheing features you
could use?
In my tests, a modern version of mod_proxy (serving from cache) was faster
than Squid on Linux.
- Perrin
had so much RAM it was all getting buffered already. If you
don't have enough RAM, it might help, but I suspect these are more
expensive than equivalent amounts of RAM.
- Perrin
, even under heavy load. I would encourage others to try
benchmarking it for themselves, but I currently see no reason to use Squid
over mod_proxy.
- Perrin
nd should be
avoided if possible. Using fully-qualified names is the simplest way
around it.
- Perrin
On Mon, 6 Nov 2000, Ruslan Sulakov wrote:
source: http://perl.apache.org/guide/dbm.html
q: Is there a way to lock BerkeleyDB(Not DB_File) version 2.x and 3.x?
Read the BerkeleyDB docs. It has a built-in page-level locking scheme.
- Perrin
ost common tasks
exist (Apache::SSI, Apache::PerlRun, Apache::File).
- Perrin
sending it
straight to the browser.
- Perrin
instead.
- Perrin
of your mod_perl
server (like mod_proxy or Squid), you can just set Expires headers in your
pages and this will be handled for you by the proxy.
- Perrin
this on a mod_perl server already, it might actually be
easier to write a TransHandler for it, and use an MD5 hash or something to
generate the file names. Matt Sargent does this sort of thing in AxKit,
so that might be a place to steal code from.
- Perrin
recommend you give the proxy approach another look. Personally, I avoided
it until the hardware costs of scaling without it became prohibitive.
- Perrin
.
- Perrin
terface.
Hope these findings are useful to others.
They are. Keep 'em coming.
- Perrin
up fast when you have your MaxClients
set at less than 100.
KeepAlive is great on a proxy server or dedicated image server though.
- Perrin
On Thu, 9 Nov 2000, Differentiated Software Solutions Pvt. Ltd wrote:
When we rebuild the hash in the RAM it takes too much time.
Did you try using Storable as the data format? It has a function to load
from files which is very fast.
- Perrin
looks like something that would be more likely to happen in a threaded
environment where database handles were shared across threads.
- Perrin
_not_reuse method which
could be called before someone does something dangerous. As long as they
remember.
But that would also mean no more persistent connection. Maybe that would
work if you don't do it very often.
- Perrin
be there in the next handler. No
need to serialize it with Data::Dumper. Better than using a normal
global because it gets automatically cleaned up after the request.
- Perrin
as happens to all of us.
Okay, okay, I'll finish it.
- Perrin
.
- Perrin
r
the Perl conference.
- Perrin
be possible through the
Apache API.
If that's all you want do, don't bother using mod_perl for it. It sounds
like you could maybe do it with mod_rewrite or a tiny custome TransHandler
written in C. No need to use all that memory loading Perl just for this.
- Perrin
= time + 360; # expires in one hour
$r-header_out('Expires' = Apache::Util::ht_time($expires));
$r-header_out('Last-Modified' = Apache::Util::ht_time($last_modified));
Or did you have something different in mind?
- Perrin
whether or not you can use the static file. This will be a bit
slower. I think AxKit does something along these lines, and you could
probably steal some code for it from there.
- Perrin
module is troublesome.
I also use handlers invoked as class methods so that I can do some
inheritance stuff in my modules. I don't think Apache::Registry can deal
with that at this point.
- Perrin
-
To unsubscribe, e-mail
request?
Any thoughts?
You might want to look at the Mason caching API. It would be nice to make
an interface like that available on top of a module like this.
- Perrin
package MLDBM::Sync;
use MLDBM;
use Fcntl qw(:flock);
use strict;
no strict qw(refs);
use vars qw($AUTOLOAD);
sub
it compares to HTTP::Lite in size and speed? Can it do SSL?
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
could bring it more in line with SDBM performance.
If you have the RAM to spare - and I guess you do, if you're considering
things like RAM disks - you could try IPC::MM too. I think it will be
faster than the other IPC modules because it's a Perl API to a shared hash
written in C.
- Perrin
commonly used pages in RAM. It wil buffer the frequently used
files and page out unused mod_perl code. Much simpler.
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
wrote this simple profiler. Take a look
and tell me if you think it worths releasing on CPAN...
Try DBIx::Profile. I've had great success with it.
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
seemed to work.
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
looking at other solutions again.
If you do try it out, I'd be eager to hear what your experiences with it
are.
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
session.
Whay are you worried about the lock files? Have you had a problem with
them lingering?
Incidentally, if you're using a database for storage you don't need to do
additional locking. Just use NullLocker.
- Perrin
this be the reason of that bad behaviour ?
Returning the content-length field to the browser would solve this ?
You are either having some kind of error on the server (check the
error_log) or the connection is timing out.
- Perrin
e/mod_perl from source? Are you using DSO?
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
,
'name2' = 'value2',
);
# in startup.pl
use SiteConfig ();
# in your module
my $value2 = $SiteConfig::hash{'name2'};
my $entire_hash = %SiteConfig::hash;
my $hash_ref= \%SiteConfig::hash;
- Perrin
-
To unsubsc
problem, but fill_hash() isn't really a class method, the way
you've written it here.
use SiteConfig();
use common;
my $value = $SiteConfighash{'name');
Is that a typo? ^^
- Perrin
-
To unsubscribe, e-mail: [EMAIL
ic is easy in J2EE. It's not
clear how you do this in Perl?
Use an RDBMS.
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
::Registry.
I've never heard anyone argue that you should always write handlers from
scratch instead of developing (or downloading) a framework along the lines
of your AO project.
- Perrin
-
To unsubscribe, e-mail: [EMAIL
that's faster than Oracle (e.g. MySQL), but it's
hard to build one that does ACID transactions and still has better
performance and scalability. What have you seen that works?
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED
On Tue, 5 Dec 2000, brian moseley wrote:
On Tue, 5 Dec 2000, Perrin Harkins wrote:
Transaction support for your business logic is easy in J2EE. It's not
clear how you do this in Perl?
Use an RDBMS.
what about transactions that span data sources? yes, this
does happen.
Someone
and file handles though.
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
want the memory back, undef your lexicals after you
finish with them.
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
it is to make it play with
mod_perl though. Apache::Debug normally just dumps you into the shell
debugger. Maybe setting an environment variable would do it.
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
On Thu, 7 Dec 2000, Jimi Thompson wrote:
Everything required to make the module work ought to be included in
the package or at least cross referenced to it.
Newer versions of CPAN resolve dependencies for you, and you can always
make a Bundle:: for your project.
- Perrin
not so hard if you give it a chance.
I've taught a number of people here how to use it. I'm always amazed that
more people don't use tools like the debugger and the profiler. They're
life savers.
- Perrin
-
To unsubscribe, e
of the modules you're
having trouble with about correcting their makefiles. CPAN.pm works
great, but it can't read minds. Yet.
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On Thu, 7 Dec 2000, Tim Bunce wrote:
On Wed, Dec 06, 2000 at 04:24:24PM -0800, Perrin Harkins wrote:
On Wed, 6 Dec 2000, Paul wrote:
I was pointed to IPC::Sharable, IPC::Sharelite.
I'll look at those.
Take a look at IPC::MM for a shared memory hash implemented in C. Also,
File
...
Unfortunately, GTop is kind of a pain to compile. It seems to depend on
some Gnome stuff. We use Apache::SizeLimit for this reason, and it works
well.
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
up with.
There are a bunch of discussions about this in the archives, including one
this week. Joshua Chamas did some benchmarking on a dbm-based approach
recently.
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED
equest- so
of course that isn't going to work.
Just put it in a global.
$Cached::Data::Thingy = $my_object;
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
it and read it? I saw
some posts about it a while back, but no code...
Isn't it just this?
tie %session, 'Apache::Session::Foobar', $id;
- Perrin
On Wed, 13 Dec 2000, Jeremy Howard wrote:
Perrin Harkins wrote:
Apache::Session::File - Dual-PIII-600/512MB/Linux 2.2.14SMP: Ran 4
times.
First time: ~2.2s. Second time: ~5.0s. Third time: ~8.4s. Fourth time:
~12.2s.
Is there any reason not to use a file tree approach (splitting
Please read the archives of this list before asking for Perl/PHP
comparisons. It has been discussed ad nauseum. There are many good
search interfaces for the list archives that will direct you to the
previous posts.
- Perrin
engineered sites being built in mod_perl. Most of the articles I see
about Perl tend to play up the "quick hack" aspect, and ignore things like
OO design, maintainability, and scalability. Those things are the stock
in trade of Java articles, as a quick look through Java World will show.
- Perrin
not as if we need to take credit cards in the mod_perl store
or something. (Although that would certainly help with the mod_perl bar
tab at the next ApacheCon.)
- Perrin
(And, no, I don't think we need to have a page running a guestbook or
calculator on the site to demonstrate the power of mod_perl
a pretty
powerful system and it was designed for mod_perl. Look it up on CPAN.
- Perrin
Apache handle these pages with core (i.e. as static), but that
sounds like more work.
- Perrin
anything that's close
to "normal". It does a harsh kill which can leave your users with a
"document contains no data" and possibly mess up open dbm files, etc.
It works well for catching runaways though.
- Perrin
ling SSI pages twice as fast
as Apache::SSI. However, in tests we've done with real production pages
(30-60K, half dozen or so includes per page) Apache::SSI was actually a
little bit faster. Of course this was about a year ago so the tables
may have turned since then.
- Perrin
of choice.
I volunteer to review code and offer tuning tips for the platforms I'm
familiar with.
- Perrin
in the number as a
query arg? Then you can test the query parsing of each system as well.
- Perrin
for people
who don't need SSL and want to squeeze great performance out of budget
hardware.
- Perrin
ld be nice to increase interoperability between the two
projects.
- Perrin
is already fixed
in mod_perl 2, I doubt anyone will feel like messing with it before that
gets released. Your experiment demonstrates that the MRU approach has
value, so I'll be looking forward to trying it out with mod_perl 2.
- Perrin
other people
who use their servers for multiple tasks.
This is all hypothetical and I don't have time to experiment with it until
after the holidays, but I think the logic is correct.
- Perrin
a new connection when it fails.
- Perrin
On Fri, 29 Dec 2000, Alexander Farber (EED) wrote:
Why? With HERE you can't indent your code:
Left-aligning the final line never really bothered me, since it doesn't
bother emacs. To each their own I guess. I find the HERE doc to be one
of the nicest Perl idioms.
- Perrin
pache::PageKit, which provides a skeleton for
developing applications using HTML::Template. I use a homegrown system
which is very similar in spirit but works with Template Toolkit, which I
prefer.
Hope that gets you started. There's tons more in the archives.
- Perrin
ain number
of concurrent requests on the site. Better to do this on the proxy side
though, so maybe mod_throttle could do it for you.
- Perrin
any interpreters can fit in
memory. I would expect the size of one Speedy + one httpd to be about
the same as one mod_perl/httpd when no memory is shared. With sharing,
you'd be able to run more processes.
- Perrin
be cool if the test ran a few times, dropped the
high and low for each system, and took an average of the remaining
times. That would smooth out some of the inaccuracies that are
unavoidable with this kind of benchmarking.
Nice work.
- Perrin
.
- Perrin
Buddy Lee Haystack wrote:
Does this mean that mod_perl's memory hunger will curbed in the future using some of
the neat tricks in Speedycgi?
Yes. The upcoming mod_perl 2 (running on Apache 2) will use MRU to
select threads. Doug demoed this at ApacheCon a few months back.
- Perrin
to purge old entries
from.
- Perrin
another DBM file to maintain.
I find it kind of painful to trim dbm files, because most implementations
don't relinquish disk space when you delete entries. You end up having to
actually make a new dbm file with the "good" contents copied over to it in
order to slim it down.
- Perrin
for it.
This is definitely a better way to do it than by setting max size or min
shared size. We had a dramatic improvement in process lifespan after
changing it.
- Perrin
On Tue, 9 Jan 2001, Joshua Chamas wrote:
Perrin Harkins wrote:
We added that in, but haven't contributed a patch back because our hack only
works on Linux. It's actually pretty simple, since the data is already
there on Linux and you don't need to do any special tricks
On Tue, 9 Jan 2001, Elman Vagif Abdullaev wrote:
Does anyone know if there is a module that enables dynamic cache
allocation for apache web server on the proxy?
"Dynamic cache allocation" could mean anything. Can you be more specific?
- Perrin
201 - 300 of 1298 matches
Mail list logo