there.
Of course if someone out there needs it on Win32 and wants to contribute
code to make it work, I'll take the patch.
- Perrin
is much less
spendable money than $40K as an employee.
- Perrin
/. I prefer a
more traditional templating approach, but some people love this stuff.
- Perrin
@PerlModule = qw(Blah); # add others to the list
Might as well just say use Blah;, I think.
- Perrin
Is there a standard way of dealing with users who are on high
bandwidth
connections who hit refresh (hold down F5 in IE for example) many
times
on a page that generates alot of database activity?
Try this:
http://www.stonehenge.com/merlyn/LinuxMag/col17.html
- Perrin
and look
at the pretty pictures.
While we're on the subject, thanks to everyone who contributed to the many
open source projects that we used. We couldn't have done it without you.
- Perrin
box or two instead. He replied that a Sun box
with equivalent power would have cost about 10 times as much as what we paid
for our rackmounted Intel machines. After that, I didn't worry about it too
much.
- Perrin
with through standard access
control stuff, plus the throttling code that was mentioned in the article.
The 2000 rush, which we built this new system for, was real customer
traffic, although there's always some joker with a bot trying to buy all the
PlayStation 2 units.
- Perrin
orders to a backend system for processing. I believe the last
revision of that was largely in PL/SQL. I don't know much about it, since
there was an entirely different team working on it.
- Perrin
over the place, as explained in
the Guide, but otherwise there is no significant overhead from having
use statements all over the place.
- Perrin
CPAN module for this.
Perhaps a port of JMS is in order.
- Perrin
Matthew Kennedy wrote:
On Mon, 2001-10-22 at 21:27, Perrin Harkins wrote:
It sounds like the limitation there is that you're interfacing with systems
that can't notify you when something new happens. That's not Perl's fault.
If you wrote your daemons in Java alpahabet soup, they'd still have
(Edition)
rather than simply a collection of APIs.
Something simple, like Perl Enterprise Project or Perl Enterprise APIs
makes more sense to me.
- Perrin
Steve Piner wrote:
Perrin Harkins wrote:
Chris Allen wrote:
[...]
Is $ENV{foo}='bar'; in startup.pl equivalent to PerlSetEnv foo bar
in httpd.conf?
Yes.
Are you sure? I experimented a few months ago, and found that
$ENV{foo}='bar'; would only last in each child until
[EMAIL PROTECTED] wrote:
I'm surprised that no one has, jokingly, suggested PEE.
Sorry, couldn't resist. :)
Neither could these people: http://pee.sourceforge.net/
perl.
- Perrin
declare package names. Do you pull in a bunch of functions with
something like 'use mylib.pl' with no package names declared in
mylib.pl? There is more discussion about this in the guide. In fact,
all of this is in the guide.
- Perrin
that answers mod perl questions?
There are lots of places that will answer mod_perl questions
(http://perlmonks.org/ for example), but none as good as this list.
- Perrin
to the relevant section. If you read that section and still don't
get it, ask more questions. Sending people links to the proper docs in
response to questions when possible is a simple matter of efficiency.
- Perrin
LPorcano wrote:
I am trying to set up a Apache::SSIChain to process the output from a
cgi running under Apache::Registry
I am using the following line in the conf file:
PerlHandler Apache::OutputChain Apache::SSI Apache::Registry
Shouldn't that be
PerlHandler
Perrin or others involved in the old eToys (or anyone in the new
Toys) --
does anyone know if this is the same mod_perl technology you guys wrote?
I'm not involved in that anymore, so I don't have first-hand information.
However, a brief look at the site makes me think they are not using any
needs with basic
Apache/mod_proxy, we didn't bother to look for something more complicated.
If I ran into problems with this now, I would probably look at Red Hat's Tux
server.
- Perrin
this is a read-only situation, you can open the dbm once
and keep the handle in a global. Then you save time by not needing to open
it on each request.
- Perrin
::Cache or MLDBM::Sync. If you just need an
exclusive lock, file locking is the simplest way to go.
- Perrin
).
Look at the FilesMatch directive in the Apache documentation. You
might also want Apache::Dispatch.
2- I currently have to restart my HTTP for changes to my mod_perl code
take affect. Is there any way so I don't have to do this.
Apache::StatINC or Apache::Reload.
- Perrin
Hi,
ScriptAlias is a CGI thing, not a mod_perl thing. If you're trying to run
thing with Apache::Registry, you should use Alias instead. If you're trying
to use CGI and need help with that, try posting your question on
http://perlmonks.org/.
- Perrin
/Exporter.pm line 57.
I'm not sure why this is complaining, but one thing you can do is not import
this function. You can do a 'use Image::Magick ()' and call it with a full
package name instead.
- Perrin
. If you're not sure
you've got all the facts right, post it to the list and people can check
it.
- Perrin
Basically, I'm trying to understand when to use Cache::Cache, vs. Berkeley
DB, and locking issues. (Perrin, I've been curious why at etoys you used
Berkeley DB over other caching options, such as Cache::Cache).
Cache::Cache didn't exist at the time. BerkeleyDB seemed easier than
rolling our
database handles yourself?
That doesn't make any sense. What are you doing in your caching that's
different from what Apache::DBI does?
- Perrin
.
- Perrin
not dead,
Perrin
)?
Impossible to answer. Totally depends on your setup.
6. What is a realistic time to expect all this to happen
in?
Also impossible to answer, since it depends on your developers and the full
requirements.
- Perrin
faster in mod_perl than with
CGI.
- Perrin
I seem to recall at least one major Apache module having an option
to use URL-based authentication instead of cookie-based... but I can't
seem to find that from a cursory perusal of CPAN.
Apache::ASP does this.
- Perrin
application. There are some CPAN modules that help with this kind
of thing, like CGI::EncryptForm.
- Perrin
access stuff in the Eagle book.
- Perrin
the IP address in the cookie, just generate a unique ID of your
own. I suggest using mod_unique_id.
- Perrin
who need better
performance on NT than mod_perl can currently give.
- Perrin
How can you specify a Location for these paramters,
or can they be used only from within the current section?
$r is a request object, so modifications only affect the current request.
If you want to affect all requests, you need to do it in the configuration
stage.
- Perrin
the
double loading of all Perl{Require,Module}s, but i doubt the people
suffering from the double load problem are using that feature. so i'll
deal with that later.
David, are you using Apache::ReadConfig or anything that uses it?
- Perrin
IIRC, I ran a test with only httpd.conf.default with only these additions
PerlModule My::Foo
then
package My::Foo;
warn initializing...;
in lib/perl and I got 'initializing' on each restart. no
Apache::ReadConfig
going on here.
And no PerlFreshRestart?
should be passing the user
name and password.
- Perrin
on 11/19/01 8:05 PM, Joshua Chamas at [EMAIL PROTECTED] wrote:
It has been a while, but here's a new set of Hello World benchmarks!
There was a recent announcement of HTML::Template::JIT, and Template Toolkit
has an XS option now. Any chance you could put those into the next round?
- Perrin
were careful about it.
- Perrin
it (see Apache::PerlRun for an exmaple), but why do you want to do this? If
you're just trying to save RAM, load the script at startup. If it's huge
and you don't usually need it, tell the current process to exit when it's
finished with this request.
- Perrin
There's a simple solution:
http://kobesearch.cpan.org/
seen this before and what could cause this?
Unless you see different behavior when running under CGI, this is not a
mod_perl question. I suggest you ask it on http://perlmonks.org/ and
post a code sample with your question.
- Perrin
this shouldn't be a
problem.
- Perrin
if this post solves your problem:
[EMAIL PROTECTED]">http://mathforum.org/epigone/modperl/relskoxpee/[EMAIL PROTECTED]
- Perrin
::MySQL.
It says to pass in connection info for a lock connection.
- Perrin
has ended as it shoulds or if it was
killed by BSD::resource ?
Put your cleanup code in a PerlChildExitHandler. Apache::SizeLimit will
allow this to be called, since it uses the $r-child_terminate() call.
BSD::Resource just does a harsh kill.
- Perrin
it. PATH_INFO was a good suggestion. I'd go with that if it can't be
added to the POST data.
- Perrin
Perrin Harkins wrote:
I believe the limiting done by BSD::Resource is pretty harsh and may
actually be at the kernel level. I don't think you can catch the signal
and
deal with it yourself. What you should do is use Apache::SizeLimit to
handle your size constraints, and just use BSD
seems to work better.
- Perrin
.
This is great! Good work. One less piece to write when getting a new
project started...
- Perrin
Try doing my $r=Apache::Request-new($r);
You're confusing Apache::Request with Apache-request(), which is easy to
do. Apache::Request is a different class, which is part of the libapreq
distribution. Apache-request() returns the current request object
(commonly called $r).
- Perrin
are you running? Are the problems with applications or static pages? Are
you running mod_perl at all? How much memory is free? Are you swapping?
How are you checking? What platform is this? Have you turned
Off the top of my head, your MaxClients is set way too high for a mod_perl
box.
- Perrin
We are using perl 5.6.0 for Apache 1.3/20, with mod_perl 1.26.
Are you sure? There was a problem with %INC and PerlModule, but I thought
it was fixed in 1.26.
- Perrin
At 18.07 -0400 10/11/2001, Perrin Harkins wrote:
We are using perl 5.6.0 for Apache 1.3/20, with mod_perl 1.26.
Are you sure? There was a problem with %INC and PerlModule, but I
thought
it was fixed in 1.26.
- Perrin
Indeed, like I said, I tested it by dumping %INC myself
. Also, there
are a whole bunch of people at http://perlmonks.org/ who are positively
chafing at the bit to answer tricky Perl questions for you.
- Perrin
multiple
replicated databases. With Apache::DBI, you would need to configure
your mod_perl servers to point to specific databases.
If you try this thing out, please report back to the list on how it
works for you. I think a lot of people here might be interested.
- Perrin
-connecting.
Another solution is to have the child process exit if the ping fails. You
get one failed request, but you clear out the messed up processes quickly
and replace them with new ones that can connect safely.
- Perrin
Glimpse and Swish which interface to C-based
engines.
- Perrin
doing something that drastic, you
could try some of the suggestions in the guide for verifying that you have a
working mod_perl install.
- Perrin
(for that is what
was for) gets so few hits, they'll all be getting failed if we do that ;
Okay, try never letting the connections go idle. Set up a cron to send in a
request every minute or so, or whatever it takes to keep your Oracle
connections active.
- Perrin
page and they all failed in various
interesting ways.
The amazingly fast ht://Dig (http://www.htdig.org/) engine can do phrase
searching, but I'm not certain how well it does with punctuation.
- Perrin
/3B30E553.AD3A7DB8@chamas.
com
In the message, Joshua suggests a workaround of running mod_perl
single-threaded (which shouldn't make any difference, since mod_perl on
Win32 is already single-threaded).
- Perrin
denied
Does any one know what's up?
In the time it takes you to debug it, you could switch your code to
MLDBM::Sync and forget about all these annoying shared memory issues. It
would probably be faster too.
- Perrin
is there a delete method/operation any where? Could not find anything
in
the perldoc docs indicating a method like that!
It supports the same interface as normal hashes, so you can delete keys
in the same way. You may also want to read the MLDBM documentation if
you haven't already.
- Perrin
Win2K box w/ Apache to run the Perl scripts right ...
You would certainly get better performance on Linux or BSD. If you have
to use Win32 and need better performance, you may have to look at other
options like ActiveState's PerlEx.
- Perrin
pass-thru for mod_perl requests. It seems to be
working out fairly well.
Ah, that makes sense. Good idea. People have reported that even with its
limitations on NT, mod_perl is still a lot faster than CGI or ASP with
PerlScript.
- Perrin
and database
connection daemons if you always need one of each to do anything.
In theory, using this thing could result in fewer database connections
although it would impact performance at least a little.
- Perrin
the scope of
the length of processing the request and then should become undef.
The best way to do this under mod_perl is to store it in $r-pnotes(). It's
documented in perldoc Apache, as well as the guide and the eagle book.
- Perrin
There are also tutorials on this subject linked from here:
http://httpd.apache.org/docs/misc/tutorials.html
- Perrin
It uses wildcard DNS and some other goodies to extend the
mod_perl-server-via-proxy-from-static-server setup
Why not just use name-based virtual hosts for the backend and avoid all the
monkeying with DNS?
- Perrin
feel pressured to
address this stuff now. I think the current module looks more than good
enough for an initial CPAN release.
- Perrin
I think the OpenInteract sample apps might do what you want. By the
way, please put the text of your message in the body of the mail rather
than as an attachment.
- Perrin
worlds and complicate maintenance and development. I'd advise
against trying to mix the two in a single request. If you really have
to use both, try to find a way to get the validation work done in the
perl program and then redirect to the servlet.
- Perrin
book.
- Perrin
hash interface on top of that.
- Perrin
e.g. $r-read($in,$r-header_in('Content-length'));
or $in=$r-content();
give's my handler the data, but unfotunately exclusive - so the data don't
reaches Apache::Registry and the cgi-script.
Any suggests?
Apache::RequestNotes.
- Perrin
can do that with Embperl too if
you can be disciplined about keeping separate components for application
logic vs. display.
- Perrin
what takes up so
much space:
It could be internal structures holding the state. Are you pre-loading this
module? It probably doesn't really use 1MB in each process.
- Perrin
real + shared and virtual. There's info on this
in the guide, and you can use modules like GTop or the size subs from
Apache::SizeLimit to help figure it out.
- Perrin
the persistence on the socket while running my
script under mod_perl, or do such scripts always need to be mod_cgi?
You're probably storing it in a global so it never gets cleaned up. Don't
do that.
- Perrin
keep-alive?
- Perrin
Apache
recognizes the directives.
You should be able to replace a PerlModule call with Perluse
MyModule;/Perl in the same place in httpd.conf. Does that work for
you? The Eagle book says to do that with earlier versions.
- Perrin
(though it doesn't serialize complex data by itself), and
MySQL with standard tables. Of course I could just do them myself,
since you were kind enough to provide code.
- Perrin
-child_terminate() to Apache::exit(). If this seems to work better
for you, let me know and I'll consider changing this in a future release
of Apache::SizeLimit.
- Perrin
-child_terminate() to Apache::exit(). If this seems to work better
for you, let me know and I'll consider changing this in a future release
of Apache::SizeLimit.
- Perrin
the whole thing.
- Perrin
Are you using PerlFreshRestart?
Same behavior, on or off.
That's strange. With PerlFreshRestart on, it is supposed to clear things
out when restarting, which seems consistent with what you're seeing. Are
you sure there is no difference in that trace at all when you turn it on or
off?
what about
$r-headers_out-add(Connection = 'close');
Good idea! I'll put that into a future release.
- Perrin
be that the performance characteristics of these
table types are well known already and I just don't follow the MySQL scene
well enough to know. I thought maybe the default tables type (MyISAM?)
which doesn't support transactions would have better speed for dirt simple
storage like this.
- Perrin
I can use a primer on researching WebMail programs
http://users.ox.ac.uk/~mbeattie/wing/
to prevent runaway
processes from eating up all your RAM. Apache::Resource will kill your
process even if it's in the middle of a response, so you don't want to use
it for normal size control.
- Perrin
Perrin Harkins wrote:
Try changing the call
$r-child_terminate() to Apache::exit(). If this seems to work better
for you, let me know and I'll consider changing this in a future release
of Apache::SizeLimit.
Geoff wrote:
what about
$r-headers_out-add(Connection = 'close');
I tried
to change this.
It's BSD specific module. It allow to set login class for process
to limit memory or time usage.
How about sending Stas a patch for the guide with information on this? It
might be useful to other BSD'ers.
- Perrin
-balancing hardware like Big/IP or Cisco LocalDirector.
- Perrin
501 - 600 of 1298 matches
Mail list logo