Re: Caching search results

2001-01-08 Thread Perrin Harkins
Bill Moseley wrote: Anyway, I'd like to avoid the repeated queries in mod_perl, of course. So, in the sort term, I was thinking about caching search results (which is just a sorted list of file names) using a simple file-system db -- that is, (carefully) build file names out of the queries

Re: Caching search results

2001-01-08 Thread Perrin Harkins
On Mon, 8 Jan 2001, Sander van Zoest wrote: starters. A dbm would be fine too, but more trouble to purge old entries from. You could always have a second dbm file that can keep track of TTL issues of your data keys, so it would simply be a series of delete calls. Granted you would have

Re: Linux Hello World 2000, Results In!!

2001-01-06 Thread Perrin Harkins
Joshua Chamas wrote: The Hello World 2000 benchmark is complete, and my results are below Kind of harsh results for Template Toolkit, but it makes sense given the nature of the test. Variable interpolation in TT provides extra functionality to give transparent access to method calls, coderefs,

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscripts that contain un-shared memory

2001-01-06 Thread Perrin Harkins
Sam Horrocks wrote: Don't agree. You're equating the model with the implemntation. Unix processes model concurrency, but when it comes down to it, if you don't have more CPU's than processes, you can only simulate concurrency. [...] This url:

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscripts that contain un-shared memory

2001-01-06 Thread Perrin Harkins
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

Re: the edge of chaos

2001-01-04 Thread Perrin Harkins
Justin wrote: Thanks for the links! But. I wasnt sure what in the first link was useful for this problem, and, the vacuum bots discussion is really a different topic. I'm not talking of vacuum bot load. This is real world load. Practical experiments (ok - the live site :) convinced me that

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscripts that contain un-shared memory

2001-01-04 Thread Perrin Harkins
Hi Sam, I think we're talking in circles here a bit, and I don't want to diminish the original point, which I read as "MRU process selection is a good idea for Perl-based servers." Your tests showed that this was true. Let me just try to explain my reasoning. I'll define a couple of my base

Re: comparison of html/perl methodologies

2000-12-31 Thread Perrin Harkins
On Sun, 31 Dec 2000, Paul Phillips wrote: Now, I'm interested in looking at web authoring from the reverse perspective - embedding Perl in html. A quick look tells me that there are a number of possibilities out there -- Apache ASP Mason Embperl HTML::Template There are probably some

Re: XMas printing benchmark

2000-12-29 Thread Perrin Harkins
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

Re: Apache::DBI and altered packages

2000-12-22 Thread Perrin Harkins
my Oracle gurus here tell me that whenever a package changes any open connections will get this error. Since the connection itself ok (just not the stuff I need to use) the only solution currently available seems to be $r-child_terminate() so that at least that child doesn't barf every time.

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscripts that contain un-shared memory

2000-12-21 Thread Perrin Harkins
Gunther Birznieks wrote: Sam just posted this to the speedycgi list just now. [...] The underlying problem in mod_perl is that apache likes to spread out web requests to as many httpd's, and therefore as many mod_perl interpreters, as possible using an LRU selection processes for picking

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscriptsthat contain un-shared memory

2000-12-21 Thread Perrin Harkins
Hi Sam, Processes 1, 2, 3 are running. 1 finishes and requests the mutex, then 2 finishes and requests the mutex, then 3 finishes and requests the mutex. So when the next three requests come in, they are handled in the same order: 1, then 2, then 3 - this is FIFO or LRU. This is bad

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscriptsthat contain un-shared memory

2000-12-21 Thread Perrin Harkins
On Thu, 21 Dec 2000, Ken Williams wrote: So in a sense, I think you're both correct. If "concurrency" means the number of requests that can be handled at once, both systems are necessarily (and trivially) equivalent. This isn't a very useful measurement, though; a more useful one is how

Re: recommendation for image server with modperl

2000-12-19 Thread Perrin Harkins
On Tue, 19 Dec 2000, Justin wrote: I've been catching up on the modperl list archives, and would just like to recommend "mathopd" as an image web server. I think you'll find thttpd (http://www.acme.com/software/thttpd/) faster and somewhat better documented. However, I'd like to point out

Re: RFC: Hello World 2000 Benchmark

2000-12-18 Thread Perrin Harkins
On Mon, 18 Dec 2000, Joshua Chamas wrote: The rand() is only in there to prevent a language compiler from rendering the whole thing static if it were able to guess that all of the variables would be knowable by unwinding the for loops. Instead of using a random number, why don't you pas

Re: load average: 24.07, 14.76, 9.20

2000-12-17 Thread Perrin Harkins
Joshua Chamas wrote: Use Apache::Resource, PerlModule everything you can especially Apache::ASP, and use Apache::ASP-Loader() to precompile your scripts. If you are getting out of memory errors, make sure your MaxRequests are low (200 often), MaxClients low (100 often), and use a mod_proxy

Re: Linux Hello World Benchmarks: +PHP,JSP,ePerl

2000-12-17 Thread Perrin Harkins
Gunther Birznieks wrote: But it's a shame that the only way to get faster than PHP is to write a raw Mod_perl handler according to the benchmarks. All the other mod_perl tools seem slower. It makes sense though. All the other tools do more setup work on each request: parsing input,

Re: RFC: Hello World 2000 Benchmark

2000-12-17 Thread Perrin Harkins
Joshua Chamas wrote: The first of these runtime benchmarks is geared towards templating or embedded environments like ASP,PHP,Embperl,JSP,Mason ... the Hello World 2000 benchmark below has these characteristics: 2+ levels of code layering 1 rand() value per request 6 for loops

Re: Email (mod_perl) Apache module?

2000-12-15 Thread Perrin Harkins
On Fri, 15 Dec 2000, martin langhoff wrote: I have this dangling idea of building a TWIG lookalike (in Perl), with a 'plug-in'/'module' structure, so I may write the email client, and others fill with their desired modules. Is there a reason you don't want to just hack on WING? It's a

Re: handling HEAD requests

2000-12-15 Thread Perrin Harkins
On Fri, 15 Dec 2000, Robin Berjon wrote: I'm working on a modperl site that doesn't presently handle HEAD requests properly (it returns the entire content). If all the information you need to generate a given page is in the URL, you can also let mod_proxy cache it and handle the HEAD requests

Re: Mod_perl tutorials

2000-12-13 Thread Perrin Harkins
Andrew Ho wrote: someone else already mentioned, it also doesn't use mod_perl itself. :) I'm baffled by the insistence of everyone on this thread that a bunch of static pages like the ones on perl.apache.org should be served by mod_perl. Shall I show you all how to change Apache's headers? We

Re: Apache::Session benchmarks

2000-12-12 Thread Perrin Harkins
FYI-- here are some Apache::Session benchmark results. As with all benchmarks, this may not be applicable to you. Thanks for taking the time to run these and write up the results. Benchmark: This benchmark measures the time taken to do a create/read for 1000 sessions. It does not destroy

Re: Apache::Session benchmarks

2000-12-12 Thread Perrin Harkins
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

Re: Mod_perl vs mod_php

2000-12-12 Thread Perrin Harkins
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

Re: Article idea: mod_perl + JSP

2000-12-12 Thread Perrin Harkins
On Tue, 12 Dec 2000, Nathan Torkington wrote: In that vein, I'd love to see an article on mod_perl and JSP cooperating. That is, a website that uses both and admits that each has its place. I know a lot of people don't like Java (I'm one of them), but mentioning JSP is the foot in the door

sites running mod_perl

2000-12-12 Thread Perrin Harkins
Here's a patch for the sites.html page that adds information on our use of mod_perl at eToys. - Perrin 309a310,316 The Internet's largest on-line toy store, a href="http://www.etoys.com/"eToys.com/a, uses mod_perl extensively. We use an object-oriented approach built on standard CPAN

Re: perl's memory leak

2000-12-08 Thread Perrin Harkins
On Fri, 8 Dec 2000, Stas Bekman wrote: If you have linux you have (or can have GTop), which gives you an API to do this and many other things. Apache::SizeLimit::linux_size_check is just a custom function that you cannot really re-use (unless you put it into some other module...

Re: [ANNOUNCE] new site: scaling mod_perl (+tool: mod_perl + DBD::Oracle)

2000-12-08 Thread Perrin Harkins
The enterprise mod_perl architectures idea that I posted earlier has evolved into a slightly modified idea: a 'scaling mod_perl' site: http://www.lifespree.com/modperl. The point of this site will be to talk about synthesize techniques for scaling, monitoring, and profiling large,

Re: Persistent objects between init and content handlers

2000-12-08 Thread Perrin Harkins
On Fri, 8 Dec 2000, Doran L. Barton wrote: I've got information stored in a DBI-accessible database. I would like to read this information from the database and populate an object with the data (really just a tree of hashes). This database "dump" into the object should occur at child-init

Re: perl's memory leak

2000-12-07 Thread Perrin Harkins
On Thu, 7 Dec 2000, Ivan E. Panchenko wrote: Today I discovered a strange behaiviour of perl, and I wonder if anybody can tell me what to do with it. The matter is that perl DOES NOT REUSE MEMORY allocated for intermediate calculation results. This is specially harmful to data-intensive

Re: debuggers

2000-12-07 Thread Perrin Harkins
On Thu, 7 Dec 2000, martin langhoff wrote: All this talk about DDD is making me wonder if there is a suitable (graphical) Perl IDE that I can run on Gnome. Last time I tried them, I found ptkdb a bit nicer than DDD, mostly because DDD was kind of slow. I don't know how easy it is to

Re: mod_perl advocacy project resurrection

2000-12-07 Thread Perrin Harkins
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

Re: debuggers

2000-12-07 Thread Perrin Harkins
On Thu, 7 Dec 2000, martin langhoff wrote: I've always considered mod_perl to be completely debugger-unfriendly. That's why I write modules that I can test from a standard script, and then call those modules from Embperl pages or Registry scripts. Apache::Debug works. It's almost

Re: Dependent modules

2000-12-07 Thread Perrin Harkins
On Thu, 7 Dec 2000, Jimi Thompson wrote: That would be a comment from me :) On Sparc-Solaris 2.6, getting CPAN to install the dependent modules or even tell you what they are doesn't always (read - seldom - at least in my experience) work. If that's the case, you should speak to the authors

Re: shared mem [was: mod_perl advocacy project resurrection]

2000-12-07 Thread Perrin Harkins
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

Re: shared mem [was: mod_perl advocacy project resurrection]

2000-12-06 Thread Perrin Harkins
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::Cache is sometimes faster than the IPC modules. I don't think any of these solve problems like sharing sockets and

Re: mod_perl advocacy project resurrection

2000-12-05 Thread Perrin Harkins
On Tue, 5 Dec 2000, Matthew Kennedy wrote: I've worked with both (Java 2 EE and tools like Apache::ASP/Mason). What people want out of an "enterprise solution" is a middle tier which is not tied into the presentation. When you free your process decisions from the presentation in that way, you

Re: mod_perl advocacy project resurrection

2000-12-05 Thread Perrin Harkins
On Tue, 5 Dec 2000, brian moseley wrote: i know there are several people on the list who swear by "all handlers, all the time". i've never heard anybody give a reason for that preference that actually made sense to me. That usually comes up in the context of handlers vs. Apache::Registry.

RE: mod_perl advocacy project resurrection

2000-12-05 Thread Perrin Harkins
On Tue, 5 Dec 2000, Michael Nachbaur wrote: This is exactly what people mean on this list about people not understanding the principles of enterprise programming. Easy there. You don't know anything about me or how much traffic my site handles. THere is absolutely no way to scale a system

Re: mod_perl advocacy project resurrection

2000-12-05 Thread Perrin Harkins
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

Re: Variable initialization in startup.pl

2000-12-04 Thread Perrin Harkins
I don't see the reason why it isn't working, but here are a couple of notes that might lead you to something. package SiteConfig; %hash=(); and define a fill_hash() routine in another package: package common; use SiteConfig; sub fill_hash() { %SiteConfig::hash = ('name' = 'value',);

Re: Apache::DBI problem and writting a perl module!!!

2000-12-03 Thread Perrin Harkins
Edmar Edilton da Silva wrote: I still didn't solve the problem of the Apache::DBI. It can not be loaded into the apache's startup.pl file because happens a error during the starting of the apache, the child processes are not created. For using the Apache::DBI I had to add the "use

Re: Variable initialization in startup.pl

2000-12-03 Thread Perrin Harkins
Andreas Schiffler wrote: Hi, I seem to have an odd problem with variable setup and use. The platform is apache/mod_perl as per LinuxMandrake 7.1. Here is the setup: A) I have a configuration.pm with variable declarations and no "use strict" similar to this: ... @array=() ...

Re: empty or incomplete page returned

2000-11-30 Thread Perrin Harkins
On Thu, 30 Nov 2000, Francesc Guasch wrote: I'm building a web application using mod_perl. Sometimes when I do tests using a slow connection I get empty pages returned. This doesn't happen from the local net. The server used for the test isn't tuned and it has low cpu and ram. Could this

Re: Apache Session and Lock files

2000-11-29 Thread Perrin Harkins
On Wed, 29 Nov 2000, cbell wrote: After tying a hash variable to a session, and writing to it, I would like to undef my hash variable just to make sure that the session lock file is deleted. However, when I do this, then any changes I make to the session hash don't get saved. Well, yeah.

Re: RFC: DBI::Prof

2000-11-28 Thread Perrin Harkins
On Tue, 28 Nov 2000, Stas Bekman wrote: I have a huge project with lots of tables, and the performance wasn't that well. So I've started to review the tables definitions and have found that some indices were missing. I was sick from doing the tracing of all possible SQL calls manually, so I

Re: RFC: DBI::Prof

2000-11-28 Thread Perrin Harkins
On Tue, 28 Nov 2000, Stas Bekman wrote: Looks like it does pretty much the same but returns too much info, which makes it quite hard to use when you have 100+ queries in some requests :) I suspect it would be pretty easy to add in a threshold like the one in your module. And fetch()es are

Re: Determining memory available for cache

2000-11-24 Thread Perrin Harkins
On Fri, 24 Nov 2000 [EMAIL PROTECTED] wrote: I want to set up a cache, storing html templates and perl widgets (held in MySQL) that are regularly eval'd. I want to attach timestamps and hit counts to each stored scalar, to help decide which are the most important values to cach, and allow

Re: New Module Idea: MLDBM::Sync

2000-11-22 Thread Perrin Harkins
On Wed, 22 Nov 2000, Tim Bunce wrote: I'm puzzled why people wouldn't just use version 3 of Berkeley DB (via DB_File.pm or BerkeleyDB.pm) which supports multiple readers and writers through a shared memory cache. No open/close/flush required per-write and very very much faster. Is there a

Re: New Module Idea: MLDBM::Sync

2000-11-21 Thread Perrin Harkins
On Fri, 17 Nov 2000, Joshua Chamas wrote: I'm working on a new module to be used for mod_perl style caching. I'm calling it MLDBM::Sync because its a subclass of MLDBM that makes sure concurrent access is serialized with flock() and i/o flushing between reads and writes. I looked through

Re: [ANNOUNCE] HTTP::GHTTP

2000-11-21 Thread Perrin Harkins
On Tue, 21 Nov 2000, Matt Sergeant wrote: HTTP::GHTTP is a lightweight HTTP client library based on the gnome libghttp library. It offers a pretty simple to use API for doing HTTP requests. This can be useful under mod_perl because the alternatives (e.g. LWP) are quite large. Any idea how it

Re: New Module Idea: MLDBM::Sync

2000-11-21 Thread Perrin Harkins
On Tue, 21 Nov 2000, Joshua Chamas wrote: On my box, some rough numbers in writes per sec, with doing a tie/untie for each write, are: sync writes/sec with tie/untie SDBM_File 1000 DB_File 30 GDBM_File 40 Note that on a RAM disk in Linux, DB_File goes to 500

Re: CGI scripts mod_perl

2000-11-20 Thread Perrin Harkins
On Mon, 20 Nov 2000, Gunther Birznieks wrote: Most normal applications do not require every bit of speed eeked out of them that may be possible with an Apache handler. In the mod_perl guide, a reasonably fast machine (which most production mod_perl sites run on) shows very little time

RE: [RFC] Apache::Expires

2000-11-16 Thread Perrin Harkins
On Thu, 16 Nov 2000, Geoffrey Young wrote: it's the lack of a 304 that's bothering me (today :) If I just put your lines into a handler I get this from netscape: If-Modified-Since = Thu, 16 Nov 2000 12:48:04 GMT; length=1150 but, since there is no modification time for the 'document' to

Re: Chaining Perl and C handlers

2000-11-15 Thread Perrin Harkins
On Wed, 15 Nov 2000, Andrew Chen wrote: The new parameter (which in the example was moe and not joe, my mistake) will be a "webid", a unique identifier for each website that is parsed out of the physical location of the file. For example, www.joe-honda-dealer.com/inventory.jsp

Re: [RFC] Apache::Expires

2000-11-15 Thread Perrin Harkins
On Wed, 15 Nov 2000, Geoffrey Young wrote: I was wondering if anyone has some experience with expire headers for dynamic documents - kinda like mod_expires but for dynamic stuff. We do this, and let mod_proxy use our headers to control its cache and handle If-Modified requests. anyone else

Re: [ANNOUNCE] ApacheCon USA 2001: Call For Papers

2000-11-14 Thread Perrin Harkins
On Tue, 14 Nov 2000, Gunther Birznieks wrote: I'd like to see a talk on templating systems and mod_perl. Hint to whomever is watching. :) I was planning to submit my paper, "Perl Templating Systems Deathmatch". I'd also be very interested in performance benchmarks related to some of the

Re: Templates - what choose ?

2000-11-13 Thread Perrin Harkins
On Tue, 14 Nov 2000, Gunther Birznieks wrote: I think that was the thread where a couple of really nice people said they were going to summarize the long thread for everyone to benefit from in the future because it's such a common topic. But I guess time has gotten the best of them as

Re: Child Process Expiration ( Was RE: Memory Usage)

2000-11-13 Thread Perrin Harkins
On Mon, 13 Nov 2000, Tom Harper wrote: was wondering what other folks set their child process expiration at for best performance with mod-perl (and why) ? I set it to 0 and use Apache::SizeLimit. No point in killing a process that isn't too large just because it served x number of

Re: Passing data structures between Stacked Handlers

2000-11-12 Thread Perrin Harkins
Thomas Klausner wrote: If there isn't, could it be implemented by dumping the data structure to $r-notes (with Data::Dumper) and have it eval'ed back by the next handler? If you use $r-pnotes, you can just put a reference to an arbitrary data structure into it and it will still be there in

Re: database access

2000-11-10 Thread Perrin Harkins
On Fri, 10 Nov 2000, Tim Sweetman wrote: Would you be interested in adding support for resetting some of these to Apache::DBI? It's pretty easy to do, using PerlCleanupHandler like the auto-rollback does. It would be database-specific though, so you'd have to find a way for people to

Re: database access

2000-11-09 Thread Perrin Harkins
On Thu, 9 Nov 2000, Tim Sweetman wrote: Apache::DBI is, as far as I know, dangerous, and people rarely seem to warn of this. It's no more dangerous than any other scheme for persistent connections, like JDBC pooling, etc. It's dangerous because: (a) Although it rolls back any transactions

Re: Sharing vars across httpds

2000-11-08 Thread Perrin Harkins
Greg Cope wrote: Have you benchmarked this vs IPC::ShareLite ? Sorry, I don't have numbers for ShareLite vs. files. However, this is from DeWitt Clinton's File::Cache module docs: File::Cache implements an object store where data is persisted across processes in the filesystem. It was

Re: Fast DB access

2000-11-08 Thread Perrin Harkins
"Differentiated Software Solutions Pvt. Ltd" wrote: 3. We have a problem rebuilding this database in the ram even say every 1000 requests. What problem are you having with it? We tried using dbm and found it a good compromise solution. We found that it is about 8 times faster than

Re: dynamic vs. mostly static data

2000-11-08 Thread Perrin Harkins
On Wed, 8 Nov 2000, Marinos J. Yannikos wrote: Something else that seems to work well, although I can't really explain it, is to disable keepalive support. For some reason, the number of concurrent processes (for a single server setup) went from 70-80 to approx. 20(!), without a noticeable

Re: Fast DB access

2000-11-08 Thread Perrin Harkins
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

Re: dynamic vs. mostly static data

2000-11-07 Thread Perrin Harkins
On Tue, 7 Nov 2000, Marinos J. Yannikos wrote: If you have a caching proxy server running in front 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. True, both methods have advantages and

Re: dynamic vs. mostly static data

2000-11-07 Thread Perrin Harkins
On Wed, 8 Nov 2000, Marinos J. Yannikos wrote: Only if you don't already have a proxy front-end. Most large sites will need one anyway. After playing around for a while with mod_proxy on a second server, I'm not so convinced; we have been doing quite well without such a setup for some

Re: modifying $subr-run

2000-11-06 Thread Perrin Harkins
On Mon, 6 Nov 2000, Todd Finney wrote: The only difficulty then remaining is the existing CGI scripts that this system wraps. There are several dozen of these in place already, and changing the argument handling would be rather tedious. Do you know of an easy method for handling that

Re: Sharing vars across httpds

2000-11-06 Thread Perrin Harkins
On Mon, 6 Nov 2000, Differentiated Software Solutions Pvt. Ltd wrote: We want to share a variable across different httpd processes. Our requirement is as follows : 1. We want to define one variable (which is a large hash). 2. Every httpd should be able to access this variable (read-only).

Re: dynamic vs. mostly static data

2000-11-06 Thread Perrin Harkins
On Tue, 7 Nov 2000, Marinos J. Yannikos wrote: If possible with your data, it'd probably be a good idea to generate static pages on-the-fly using mod_rewrite as in the related guide: http://www.engelschall.com/pw/apache/rewriteguide/#ToC33. If you have a caching proxy server running in front

Re: Locking BerkeleyDB 2.x, 3.x

2000-11-05 Thread Perrin Harkins
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

Re: modifying $subr-run

2000-11-05 Thread Perrin Harkins
Todd Finney wrote: This another follow-up to a previous thread, "maximum (practical) size of $r-notes", from last week. We're trying to redirect the output of $subr-run(), and return it as a variable instead of sending it to the browser. Usually people consider this, realize that it's

Re: HTTP Mod_Perl mini-server

2000-11-03 Thread Perrin Harkins
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

Re: HTTP Mod_Perl mini-server

2000-11-03 Thread Perrin Harkins
On Fri, 3 Nov 2000, Vivek Khera wrote: Lately I've been getting very interested in using solid-state disks for high-performance issues. They're expensive, but if you need that much speed, they're worth it. Are they? I tried one once, and it wasn't any faster than my normal disk because I

Re: HTTP Mod_Perl mini-server

2000-11-03 Thread Perrin Harkins
On 3 Nov 2000, David Hodgkinson wrote: In my tests, a modern version of mod_proxy (serving from cache) was faster than Squid on Linux. Really? Cool. What about taking memory usage into account? Well, Squid is kind of a memory hog and mod_proxy has been extremely light and well-behaved,

Re: how to do this??

2000-11-03 Thread Perrin Harkins
On Thu, 2 Nov 2000, Michael wrote: #handler package MyHandler; use Module qw(sub1 sub2); use Apache; use vars qw(@ISA) @ISA = qw (Module Apache); calling sub1 from apache using THIS handler named "MyHandler" results in Module::sub1 identifing the "caller" as Apache. Okay, I'll

Re: Connection Pooling / TP Monitor

2000-11-02 Thread Perrin Harkins
Tim Bunce wrote: You could have a set of apache servers that are 'pure' DBI proxy servers. That is, they POST requests containing SQL (for prepare_cached) plus bind parameter values and return responses containing the results. Basically I'm proposing that apache be used as an alternative

Re: Putting together the TPC mod_perl track

2000-11-01 Thread Perrin Harkins
On Wed, 1 Nov 2000, Nathan Torkington wrote: * Case studies showing how big companies use mod_perl This latter is an important part of the Perl conference. Many companies who would never 'fess up to using Perl seem quite happy to send employees to speak at conferences. Their talks end up

Re: return from nested functions

2000-11-01 Thread Perrin Harkins
On Wed, 1 Nov 2000, Matt Sergeant wrote: Definitely use exceptions. I prefer Error.pm for this (sorry, Dave!), which allows your handler to simply be: sub handler { return try { ... } catch Exception::RetCode with { my $E = shift;

Re: ApacheCon report

2000-11-01 Thread Perrin Harkins
On Wed, 1 Nov 2000, Leslie Mikesell wrote: I still like the idea of having mod_rewrite in a lightweight front end, and if the request turns out to be static at that point there isn't much point in dealing with proxying. Or if the request is in the proxy cache... Has anyone tried putting

Re: ApacheCon report

2000-10-31 Thread Perrin Harkins
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

Re: hashes and mod_perl

2000-10-31 Thread Perrin Harkins
On Tue, 31 Oct 2000, Scott Alexander wrote: Is it in anyway possible to tie the hash once to a dbm file? At the moment it is tied every time a script is called. There's a whole chapter on this: http://perl.apache.org/guide/dbm.html. The short answer is that you have to tie the dbm file

Re: ApacheCon report

2000-10-31 Thread Perrin Harkins
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

Re: how to really bang on a script?

2000-10-30 Thread Perrin Harkins
On Sat, 28 Oct 2000, Matthew Byng-Maddick wrote: On Sat, 28 Oct 2000, Matt Sergeant wrote: exactly the same thing (changing server logs into a benchmark tool) at ApacheCon, only I can't for the life of me remember who it was. Theo, during the mod_backhand talk, or at lunch just before, I

Re: Proxy Rewrite

2000-10-30 Thread Perrin Harkins
On Mon, 30 Oct 2000, Kermit Tensmeyer wrote: ProxyPassReverse works as described and modifies the Location header. Is there something else that will filter/translate included URL's? For example ProxyPass /product/itemA/

Re: Apache::DB and core dump

2000-10-30 Thread Perrin Harkins
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

Re: ApacheCon report

2000-10-30 Thread Perrin Harkins
On Mon, 30 Oct 2000, Tim Sweetman wrote: Matt Sergeant wrote: On Fri, 27 Oct 2000, Tim Sweetman wrote: In no particular order, and splitting hairs some of the time... Sounded like mod_backhand was best used NOT in the same Apache as a phat application server (eg. mod_perl),

Re: ApacheCon report

2000-10-30 Thread Perrin Harkins
On Tue, 31 Oct 2000, Les Mikesell wrote: Ultimately, I don't see any way around the fact that proxying from one server to another ties up two processes for that time rather than one, so if your bottleneck is the number of processes you can run before running out of RAM, this is not a good

Re: OT: ApacheCon/Europe

2000-10-19 Thread Perrin Harkins
Gunther Birznieks wrote: Just wondering who all from mod_perl is going to ApacheCon/Europe next week and are there any plans to get together like there was at PerlCon. I'm going to be there. Some kind of get together would be cool. I'd like to hear about what other people are working on.

Re: ApacheCon Sunday Pub Meet

2000-10-19 Thread Perrin Harkins
On Thu, 19 Oct 2000, Matt Sergeant wrote: How about Harvey Floorbangers, from 7 till late. (erm, I think late might still be 11pm for england *sigh*)... "With a name like Harvey Floorbangers you'd expect this to be a cheesy theme bar with singing bar staff and signed guitars on the wall.

Re: XML help (offtopic)?

2000-10-17 Thread Perrin Harkins
Geoffrey Gallaway wrote: I think I might have been a slight bit confusing in the email. I need to have apache be able to *recieve* the POST and GET requests. I know how to send the XML to another server, I just need to know how to get *my* server to handle the requests/data from other

RE: Wild Proposal :)

2000-10-11 Thread Perrin Harkins
On Wed, 11 Oct 2000, Stephen Anderson wrote: There's DBI::Proxy already. Before jumping on the "we need pooled connections" bandwagon, you should read Jeffrey Baker's post on the subject here: http://forum.swarthmore.edu/epigone/modperl/breetalwox/38B4DB3F.612476CE@acm .org People

Re: Problem configuring handler in httpd.conf.

2000-10-10 Thread Perrin Harkins
On Tue, 10 Oct 2000, Todd Chapman wrote: I am trying to set up httpd.conf so that documents in /home/httpd/html/mason are handled by HTML::Mason but documents in /home/httpd/html/mason/perl are handled by Apache::Registry. The problems in that while Mason works, the Apache::Registry cgi

Re: Wild Proposal :)

2000-10-10 Thread Perrin Harkins
Hi Ajit, It's not entirely clear to me what problem you're trying to solve here. I'll comment on some of the specifics you've written down here, but I may be missing your larger point. OBJECTIVE Provide a perl server that can execute miscellaneous perl jobs that will communicate with

Re: Third post. PLease help. PerlHandler configuration question.

2000-10-09 Thread Perrin Harkins
On Mon, 9 Oct 2000, Todd Chapman wrote: That only solves half the problem. Since it is a virtual directory, how will Apache::Registry know where 'cgifile' really exists so it can run it? Either put it under your docroot or use the standard Alias stuff: Alias /perl/ /home/httpd/perl/

Re: One httpd.conf for both apache heavy and apache-light [IfModule]

2000-09-30 Thread Perrin Harkins
martin langhoff wrote: You mean you post-process your httpd.conf ? Phew! mmmh. I'm flabbergasted (sp?) and certainly mesmerized, can you tell us a bit more? It's pretty simple. We have a file with the varying bits of info in it (MaxClients, MaxRequestsPerChild, etc.) and a small program

Re: suggestions needed re. required files and persistent data

2000-09-28 Thread Perrin Harkins
On Thu, 28 Sep 2000, John Reid wrote: The problem I am facing is with our database definition files. These are custom files which are required at run time. The file consists of a long series of subroutine calls with arguments that refer to the definitions of fields, tables, etc. They are used

Re: Zope functionality under mod_perl

2000-09-28 Thread Perrin Harkins
On Thu, 28 Sep 2000, Philip Molter wrote: Recently, one of my co-employees has been messing around with Zope (http://www.zope.org) and I was wondering if there's a package that provides similar functionality using mod_perl and Apache rather than its own web server. Specically, what I want to

Re: Apache::DProf tip

2000-09-26 Thread Perrin Harkins
On Tue, 26 Sep 2000, Doug MacEachern wrote: the Apache::DB docs explain this: The connection between Apache::DProf and calling something in Apache::DB was not obvious to me until I thought about how DProf works. it should probably be made more clear though, maybe a comment in the config

<    6   7   8   9   10   11   12   13   >