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 author

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::

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 ex

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 --

debuggers

2000-12-07 Thread Perrin Harkins
On Thu, 7 Dec 2000, martin langhoff wrote: > [1] Having grown up in a cushioned, fancy VB 3.0 IDE, I still > find both vi, emacs and textmode debug too harsh for me. You could try ptkdb or DDD for GUI debugging. - Perrin -

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 ma

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-inten

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 an

Re: mod_perl advocacy project resurrection

2000-12-06 Thread Perrin Harkins
Gunther Birznieks wrote: > Has anyone written a Perl IDE in Perl? There's PerlComposer: http://perlcomposer.sourceforge.net/ Not too far along yet, from the looks of it. - Perrin - To unsubscribe, e-mail: [EMAIL PROTECTED] For

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 transa

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
Brian, you've been taking a beating on this thread. I don't want to add to it, but you did raise a couple of interesting questions in this post. > the availability of application server products in the java world is > another example. go look at enhydra enterprise > (http://www.enhydra.org/softw

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, 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,

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' => 'va

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: > > ... > @arra

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 Apac

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 t

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: > 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: 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

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: BerkeleyDB

2000-11-23 Thread Perrin Harkins
On Thu, 23 Nov 2000, Tim Bunce wrote: > On Wed, Nov 22, 2000 at 10:57:46AM -0800, Perrin Harkins wrote: > > > We got past these problems and then ran > > into issues with db corruption. If Apache gets shut down with a SIGKILL > > (and this seems to happen fairly o

Re: New Module Idea: MLDBM::Sync

2000-11-22 Thread Perrin Harkins
On Wed, 22 Nov 2000, Paul Lindner wrote: > Might MLDBM::Sync work over an NFS mounted partition? It might, since it's lock-file based. Performance will be poor though. You'd probably be better off using MySQL to share data if you have a cluster of machines. > That's one reason I've not used t

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 th

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

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

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 thro

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 diff

Re: mod_proxy caching documentation

2000-11-16 Thread Perrin Harkins
On Thu, 16 Nov 2000, Joshua Chamas wrote: > I think it would be interesting if you chronicled the capacity > improvements to your site using the mod_proxy server like this. > I don't know how well mod_proxy does this caching from a performance > perspective, and it might be nice to see some num

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 'docume

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: 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 > cor

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 > th

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 reques

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 h

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 i

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 peopl

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 transaction

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-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
"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 po

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: 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

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 a

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 fron

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: 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 th

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 i

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: 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,

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-behav

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: > 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: 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 alternativ

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: 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: 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 en

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 > >

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 o

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: 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

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 serve

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: 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/ >http://modperl.internal.com/root/s

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 bef

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 > w

Re: OT: ApacheCon/Europe

2000-10-18 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: 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 c

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 >

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 m

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: 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: httpd keeps growing

2000-10-07 Thread Perrin Harkins
Andreas Schiffler wrote: > In reply to my own question, I found the cuplrit after some poking > around in frequent restarts of the webserver using: > apachectl restart > > After each code change, the new scripts were copied onto the server and > apache restarted. Since we are in active develo

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 prog

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

2000-09-30 Thread Perrin Harkins
martin langhoff wrote: > What I see in the not-so distant future is a hell of a configuration > nightmare. From the start, this box should be hosting about 30 vhosts, > and I don't really want to keep them in synch across 3 different files. > So I thought of using a single monolithic vhos

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

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 u

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 ex

Re: Apache::DBI problem

2000-09-12 Thread Perrin Harkins
On Tue, 12 Sep 2000, Evelin Halling wrote: > I am using Apache::DBI for user authentication and it works just fine > with one exception, it does not kill the sql backend server process > starting up during authentication, so after some time postgres is > running out of allowed backend server proce

Re: persistent info (storing config?)

2000-09-11 Thread Perrin Harkins
On Sun, 10 Sep 2000, Neil Conway wrote: > However, I'd rather not parse the entire config file for every single > request (the config file may be very long, and/or consist of multiple > files). Is there any way to parse the config file once, store the > results, and make the data available to any

Re: Memory leak hell...

2000-09-10 Thread Perrin Harkins
Matt Sergeant wrote: > Can anyone give me _any_ help in figuring out where this might be coming > from? When I'm working on problems like this, there are two basic things I try. They're not rocket science, but they usually work. The first is removing sections of code until the leak goes away.

Re: SELECT cacheing

2000-09-08 Thread Perrin Harkins
On Fri, 8 Sep 2000, Roger Espel Llima wrote: > > - If possible, use some existing cache module for the storage, like > > Apache::Session or one of the m/Cache/ modules on CPAN. > > Others have suggested Storable. I've used this one before, and I can > agree that it's probably a good solution. S

Re: SELECT cacheing

2000-09-08 Thread Perrin Harkins
On Fri, 8 Sep 2000, Tim Sweetman wrote: > > - Use the DBIx namespace for the module. > > Possibly. SQL is not the only application for this sort of tool, though > it seems to be the main one. The module we're discussing is DBI-specific. At least the interesting part of it is. The actual cachi

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread Perrin Harkins
On Fri, 8 Sep 2000, Stas Bekman wrote: > > As far as benchmarks are concerned, I'm sending one mail after having > > displayed the page, so it shoul'dnt matter much ... > > Yeah, and everytime you get 1M process fired up... Nevertheless, in benchmarks we ran we found forking qmail-inject to be q

Re: SELECT cacheing

2000-09-07 Thread Perrin Harkins
On Thu, 7 Sep 2000, Roger Espel Llima wrote: > The question now is: is there any interest in releasing this? I could > write some minimal docs and give it a 'proper' module name, if there's > interest. I'd say this is probably useful to some people, so go ahead. A few suggestions: - Use the DB

Re: Auto rollback using Apache::DBI

2000-09-07 Thread Perrin Harkins
On Thu, 7 Sep 2000, Nicolas MONNET wrote: > |Well, Apache::DBI does push a cleanup handler that does a rollback if > |auto-commit is off. Are you saying this isn't working? > > I've run into a situation where it was'nt. I wanted to make sure > it's not the desired behaviour, before I can dig mor

Re: Auto rollback using Apache::DBI

2000-09-07 Thread Perrin Harkins
On Thu, 7 Sep 2000, Nicolas MONNET wrote: > I might get something wrong, but while in non-autocommit, if a script dies > before rollbacking or commiting, looks like the transaction never gets > cancelled until I kill -HUP httpd! Quite a problem ... > > Is there any known way to catch this? Well

Re: upgrading mod_perl on production machine

2000-09-06 Thread Perrin Harkins
On Wed, 6 Sep 2000, Bill Moseley wrote: > I hope I didn't miss anything in the Guide at install.html and in > control.html, but I was looking for any suggestions on upgrading mod_perl > and Perl on a running production machine to limit the amount of down time. We use RPMs. Some form of package,

Re: Poor man's connection pooling

2000-09-06 Thread Perrin Harkins
On Wed, 6 Sep 2000, Jay Strauss wrote: > Being a database guy but new to Mod_Perl (disclaimer: If these aspects have > already been implemented and/or talked about please excuse me). Before going down this road again, I suggest reading the definitive work on the subject, which is a post from Jef

Re: Poor man's connection pooling

2000-09-06 Thread Perrin Harkins
On Wed, 6 Sep 2000, Stas Bekman wrote: > Just a small correction: > > You can cause pages to become unshared in perl just by writing a variable, >^^^ > so it's almost certain to happen sooner or later. > > Or for example calling pos()

Re: Poor man's connection pooling

2000-09-05 Thread Perrin Harkins
On Tue, 5 Sep 2000, Michael Peppler wrote: > I've come across a technique that allows modperl processes to share a > pool of database handles. It's not something that I have seen > documented, so I figured I'd throw it out here. > > The idea is to create a pool of connections during the main > a

Re: HTML Template Comparison Sheet ETA

2000-09-04 Thread Perrin Harkins
Sam Tregar wrote: > > On Mon, 4 Sep 2000, Perrin Harkins wrote: > > > Embedded perl is absolutely the best answer sometimes, but don't > > underestmate the value of turning your example into this: > > > > [% FOREACH thing = list %] > > [% thing.

Re: HTML Template Comparison Sheet ETA

2000-09-04 Thread Perrin Harkins
brian moseley wrote: > > On Mon, 4 Sep 2000, Perrin Harkins wrote: > > > [% FOREACH thing = list %] > > [% thing.name %] > > [% END %] > > what's the value? It's easier for some people to understand and write without help from an engineer. > y

Re: HTML Template Comparison Sheet ETA

2000-09-04 Thread Perrin Harkins
I was trying to stay out of this one, but... brian moseley wrote: > % for my $thing (sort @list) { ><% $thing->{name} %> > % } [...] > there are no sophisticated or mysterious constructs in those > examples... Just two kinds of data structures, hash de-referencing syntax, and lexical scopi

Re: HTML Template Comparison Sheet ETA

2000-09-04 Thread Perrin Harkins
"Paul J. Lucas" wrote: > > What about conditionals and loops though? > > Wouldn't they break the "preview" ability? > > No: for loops, you just get one iteration; for conditionals, you > get the result as if the condition were true. Thanks for the explanation. I can still think

Re: HTML Template Comparison Sheet ETA

2000-09-04 Thread Perrin Harkins
"Paul J. Lucas" wrote: > And I still think that: > > > Name: John Q. Public > Job: mod_perl guru > > > is cleaner still: *pure* HTML (no fake elements) that any web > tool will understand and dummy-content so the page designer

Re: question on code snippet in mod_perl guide

2000-08-31 Thread Perrin Harkins
On Thu, 31 Aug 2000 [EMAIL PROTECTED] wrote: > What I think is going on is that the script gets killed by Oracle for > being idle and tries to ping the connection, but the ping fails. It is supposed to reconnect when the ping fails. I've had problems getting reconnects to Oracle 8 working. The

Re: Modperl in E-Business apps

2000-08-31 Thread Perrin Harkins
On Thu, 31 Aug 2000, Ken Kosierowski wrote: > The subject of this message might be better worded as "Is mod_perl > ready for E-Business apps, and is anyone using it for such?". Yes. Many businesses run their primary web applications on mod_perl. Take a look at the sites and success stories on

Re: Apache::Session and performance question

2000-08-28 Thread Perrin Harkins
On Mon, 28 Aug 2000, Chris Brooks wrote: > I went back through the documentation on Apache::Session, > Apache::Session::DBIStore, and Apache::DBI, and I haven't found a > problem in the way we have implemented this. Does anyone else have > suggestions, or has anyone else experienced a similar per

<    7   8   9   10   11   12   13   14   15   >