Re: Apache::SSI pain

1999-10-12 Thread Perrin Harkins
The thing that works best for me is to use an Apache::SSI object myself rather than using any kind of chaining. my $ssi = Apache::SSI->new($text, $r); print $q->header; # send the HTTP header $ssi->output(); Or you can capture the output instead of just sending it, like this: my $ssi

Re: Apache::DBI & MySQL

1999-10-13 Thread Perrin Harkins
Viren Jain wrote: > > I included the command "PerlModule Apache::DBI" in my mod_perl Apache > configuration files. Yet, over time there builds up more connection in > mysql than apache processes (only Apache/CGI should be accessing MySQL) and > most processes seem to have very high "Time"

Re: More on web application performance with DBI

1999-10-14 Thread Perrin Harkins
Oleg Bartunov wrote: > > On Thu, 14 Oct 1999, Perrin Harkins wrote: > > > Date: Thu, 14 Oct 1999 17:53:15 -0700 (PDT) > > From: Perrin Harkins <[EMAIL PROTECTED]> > > To: Jeffrey Baker <[EMAIL PROTECTED]> > > Cc: [EMAIL PROTECTED], [EMAIL PROTECTED

Re: More on web application performance with DBI

1999-10-14 Thread Perrin Harkins
On Thu, 14 Oct 1999, Jeffrey Baker wrote: > Zero optimization: 41.67 requests/second > Stage 1 (persistent connections): 140.17 requests/second > Stage 2 (bound parameters): 139.20 requests/second > Stage 3 (persistent statement handles): 251.13 requests/second I know you said you don't like it b

Re: DBI and pooling

1999-11-03 Thread Perrin Harkins
On Tue, 2 Nov 1999, John S. Evans wrote: > So I'm starting development on a project with multiple components which will > be talking to an Oracle 8 database, and I'm trying to understand what the > various options are. Pretty much everyone uses Apache::DBI. With Oracle, you can even get real con

Re: Trying not to re-invent the wheel

1999-11-10 Thread Perrin Harkins
On Wed, 10 Nov 1999, Ian Mahuron wrote: > I'm writing a mod_perl handler for a ColdFusion'esque embedded scripting > language... I was wondering what the quickest (performance wise) way to > parse through the HTML is. You could try Template Toolkit from CPAN. It does some caching and looks fast,

Re: RegistryNG docs?

1999-11-13 Thread Perrin Harkins
Ken Williams wrote: > > The only thing keeping RegistryNG from being the main version of Registry > (which it will be in the future) is that it hasn't been tested enough by people > like you. So go for it! It's probably going to be a much cleaner way to > proceed than mucking around in Registry

Re: lost getting mod_perl to work

1999-11-22 Thread Perrin Harkins
On Tue, 9 Nov 1999, Michael Cunningham wrote: > I downloaded apache 1.3.9 and configured it.. > then used cpan to install the apache module. > told it to compile apache for me.. > and then i did a make install. > > So I run httpd -l and I see modperl as a module now.. > > I put this in the http

Re: Managing session state over multiple servers

1999-12-16 Thread Perrin Harkins
On Thu, 16 Dec 1999, Simon Rosenthal wrote: > a) If your site runs on multiple servers, do you attempt to cache session > state records on the web server for any length of time after they are > retrieved from the DBMS ? and if so, how do you handle cache consistency > across all your servers -

Re: Summary of DB_File locking wrappers

2000-01-11 Thread Perrin Harkins
David Harris wrote: > > There are three locking wrappers for DB_File in CPAN right now. Each one > implements locking differently and has different goals in mind. It is > therefore worth knowing the difference, so that you can pick the right one > for your application. Good summary. Thanks! No

Re: Summary of DB_File locking wrappers

2000-01-11 Thread Perrin Harkins
On Tue, 11 Jan 2000, Stas Bekman wrote: > > > There are three locking wrappers for DB_File in CPAN right now. Each one > > > implements locking differently and has different goals in mind. It is > > > therefore worth knowing the difference, so that you can pick the right one > > > for your applic

Re: problems with module at root of web site

2000-01-12 Thread Perrin Harkins
Sean Chittenden wrote: > > Mind if I ask a nit-pick of a performance question? Currently > speed and performance are of upmost importance (I'm currently involved in > a mod_perl vs JServ development race). If you're on Linux, I can tell you right now that mod_perl is significantly faste

Re: oracle : The lowdown

2000-01-20 Thread Perrin Harkins
"G.W. Haywood" wrote: > On Thu, 20 Jan 2000, Perrin Harkins wrote: > > you can't guarantee your data will be in a consistent state without > > transactions or some other way to do atomic updates > [snip] > > (e.g. you're running a message board and

Re: ANNOUNCE: HTML::Mason 0.8

2000-01-24 Thread Perrin Harkins
On Sun, 23 Jan 2000, Jonathan Swartz wrote: > - New in-memory code cache keeps track of component usage, and > discards the most infrequently used components as needed. You can > specify the cache size with interp->max_code_cache_size. This sounds cool, but does it work, i.e. when you

Re: mod_perl flashback

2000-01-19 Thread Perrin Harkins
> >now, i have the exact same problem: i need my SSI to filter thru everithing: > >HTML, CGIs, PHP, etc. You get HTML filtering already. For CGIs, why not write a minimal PerlHandler to emulate CGI (i.e. set up the environment and execute the CGI script) and then run the output through SSI? For

Re: oracle : The lowdown

2000-01-20 Thread Perrin Harkins
Greg Stark wrote: > Actually for web sites the lack of transactions is more of a boon than a > problem. We're veering WAY off-topic here, but the fact is you can't guarantee your data will be in a consistent state without transactions or some other way to do atomic updates. Anything short of tha

Re: oracle : The lowdown

2000-01-20 Thread Perrin Harkins
Perrin Harkins wrote: > Greg Stark wrote: > > For example, it makes it very hard to mix any kind of long running query with > > OLTP transactions against the same data, since rollback data accumulates very > > quickly. I would give some appendage for a while to tell Oracl

Re: Novel technique for dynamic web page generation

2000-01-28 Thread Perrin Harkins
On Fri, 28 Jan 2000, Paul J. Lucas wrote: > I've implemented what I believe to be a novel technique for > dymanic web page generation. Although explained in much more > detail here: > > http://www.best.com/~pjl/software/html_tree/ Looks almost exactly like XMLC f

Re: ApacheDBI question

2000-01-28 Thread Perrin Harkins
On Fri, 28 Jan 2000, Deepak Gupta wrote: > How does connection pooling determine how many connections to keep open? > > The reason I ask is that I am afraid my non-modperl scripts are getting > rejected by the db server b/c all (or most) connections are being > dedicated to Apache activity. Pl

Re: splitting mod_perl and sql over machines

2000-01-28 Thread Perrin Harkins
On Fri, 28 Jan 2000, Marko van der Puil wrote: > There has been an discussion in the Mod_Perl mailing list about whether you > would profit from splitting your Mod_Perl enabled Apache server and a SQL > database like MySQL over multiple machines. To give this discussion some > technical and scient

Re: Novel technique for dynamic web page generation

2000-01-28 Thread Perrin Harkins
On Fri, 28 Jan 2000, Paul J. Lucas wrote: > > but it seems like it does tie your program closely to the structure of the > > documents. > > It does somewhat, but much less so than existing techniques: > > 1. Conventional CGI (a print-statement-laden Perl script): this > tigh

Re: ANNOUNCE: Updated Hello World Web Application Benchmarks

2000-01-28 Thread Perrin Harkins
On Fri, 28 Jan 2000, Joshua Chamas wrote: > I have updated the Hello World Web Application Benchmarks, > now at http://www.chamas.com/bench/ I guess this is just my day to complain about benchmarks. I find these benchmarks very confusing and not very useful. Benchmarks done on different hardwa

Re: ANNOUNCE: Updated Hello World Web Application Benchmarks

2000-01-29 Thread Perrin Harkins
Ken Williams wrote: > How about we come up with a "benchmark suite" that can be downloaded and run in > one shot on various platforms? Given the variety of things that are being > tested, this might be too gargantuan a test, and perhaps a few things would > have to be cut from the suite. But the

Re: ANNOUNCE: Updated Hello World Web Application Benchmarks

2000-01-29 Thread Perrin Harkins
Joshua Chamas wrote: > There is no way that people are going to benchmark > 10+ different environments themselves, so this merely offers > a quick fix to get people going with their own comparisons. I agree that having the code snippets for running hello world on different tools collected in one

Re: ANNOUNCE: Updated Hello World Web Application Benchmarks

2000-01-29 Thread Perrin Harkins
> I think too that the OS/machine results at > http://www.chamas.com/bench/hello_bycode.html could be more accurate > in comparing results if the results are also grouped by tester, > network connection type, and testing client so each grouping would > well reflect the relative speed differences w

Re: ANNOUNCE: Updated Hello World Web Application Benchmarks

2000-01-30 Thread Perrin Harkins
> On Sun, 30 Jan 2000, Perrin Harkins wrote: > > I can understand that; I just don't want mod_perl users to get a reputation > > as the Mindcraft of web application benchmarks. > > I'm not sure I see how that can happen when we quite clearly state that > php4

Re: IPC::Cache version 0.01 available

2000-01-30 Thread Perrin Harkins
> Hi, > > A week or two ago, in the squid performance thread, I mentioned that I was > looking for ways to eliminate squid from our production servers. I noted > that we are using squid to save an expensive trip to the database to > retrieve mostly static files. At that time I said that I plann

Re: Using network appliance Filer with modperl

2000-01-31 Thread Perrin Harkins
On Mon, 31 Jan 2000, siberian wrote: > My question is : Has anyone experienced any 'gotchas' in putting perl code > that modperl handlers use on a Network Attached file server like a network > appliance box ( www.netapp.com )? Just make sure you have time synchronized between your servers and the

Re: Caucho faster than mod_perl?

2000-02-01 Thread Perrin Harkins
Sean Chittenden wrote: > > > Supposedly, according to its benchmarks, it's faster than mod_perl... > impressive to say the least. Any chance someone has any experience > with this or would like to benchmark this technology? External validation

Re: Caucho faster than mod_perl?

2000-02-01 Thread Perrin Harkins
Sean Chittenden wrote: > > > Supposedly, according to its benchmarks, it's faster than mod_perl... > impressive to say the least. Any chance someone has any experience with this > or would like to benchmark this technology? Externa

Re: Caucho faster than mod_perl?

2000-02-02 Thread Perrin Harkins
Bill Moseley wrote: > Is Apache::Registry really that much of a hit in performance over a plain > old Apache content handler? And if so, why? No, it isn't. This is a "Hello World" benchmark we're talking about here, designed to show the difference in startup costs. A real app would not have su

Re: XML Configuration [Was: Re: Caucho faster than mod_perl?]

2000-02-02 Thread Perrin Harkins
Matt Sergeant wrote: > Also, what's different between Resin's smart caching and mod_perl's? Is it > just like StatINC? It can cache output in a way similar to Mason. They call this "Smart Caching". It reloads servlet classes pretty cleanly when code is updated, but doesn't track dependencies, s

Re: Mod_Perl learning track

2000-02-04 Thread Perrin Harkins
On Fri, 4 Feb 2000, Scott Chapman wrote: > What books do I need to read? There are plenty of good books on Perl, but don't neglect to read the excellent man pages. If you read all the man pages as well as The Guide at htp://perl.apache.org/guide/ you will be well on your way. - Perrin

Re: Mod_Perl learning track

2000-02-08 Thread Perrin Harkins
On Tue, 8 Feb 2000, Scott Chapman wrote: > What magazines are good on Perl? At least two of the members on this list write for Web Techniques (Lincoln and Randal). And of course The Perl Journal is good. - Perrin

Re: Apache::ASP and Apache::SSI problems

2000-02-10 Thread Perrin Harkins
On Thu, 10 Feb 2000 [EMAIL PROTECTED] wrote: > Okay, I installed mod_perl, Apache::ASP and required modules like > Apache::Filter, and Apache::SSI. (Note, some of the Apache:: modules will > not isntall via CPAN.pm, they look for HTTP in some messed up directory > where it oviously doesn't exist

Re: What's the benefits of using XML ?

2000-02-10 Thread Perrin Harkins
On Thu, 10 Feb 2000, Vlad Safronov wrote: > What's the benefits of using XML in building web site with dynamic > content? > (web site is a front end to database) This is off-topic for this list, but I can't resist... What's the benefit of using XML? You get to buy expensive application servers!

Re: Apache::ASP and Apache::SSI problems

2000-02-10 Thread Perrin Harkins
On Thu, 10 Feb 2000, Ken Williams wrote: > Yeah, I just saw the message. Since I tend not to use CPAN.pm (I like to > tinker around with stuff when I download/install) I've been ignorant of its > procedures. The main thing to know is that it won't install if the tests fail, unless you force it.

Re: What's the benefits of using XML ?

2000-02-11 Thread Perrin Harkins
On Fri, 11 Feb 2000, Matt Sergeant wrote: > XML and XSLT can provide this. Rather than write pages to a > specific style with toolbars in the right place, and format things how I > want them, I can write in XML, and down transform to HTML using a > stylesheet. When I want to change the look of my

Re: Apache::Session, DBD::Oracle

2000-02-08 Thread Perrin Harkins
On Wed, 9 Feb 2000, Robert Locke wrote: > We've been using the latest Apache::Session::DBI with some success > using Oracle 8i (DBD::Oracle 1.03) as the data store. (Basically, we > applied Ajit Deshpande's recommendation of patching DBIStore.pm with a > large number for LongReadLen. See > >htt

Re: ORA-12154: TNS:could not resolve service name with DBI under Apache

2000-03-29 Thread Perrin Harkins
On Wed, 29 Mar 2000, Jerome MOUREAUX wrote: > Alias /indicators2/perl "/disc1/sherpa_a/indicators2/perl" [...] > PerlSetEnv ORACLE_HOME /disc1/sherpa/oracle Do you really have a /disc1/sherpa directory and a /disc1/sherpa_a directory? - Perrin

Re: ORA-12154: TNS:could not resolve service name with DBI under Apache

2000-03-29 Thread Perrin Harkins
On Wed, 29 Mar 2000, Jerome MOUREAUX wrote: > My scripts run well if I launch it from the command line. Have you tried running them from the command line as the user who the webserver runs as? There may be something in your user environment that allows them to work which is not set up for this o

Re: performance mongers: since when is using CGI.pm or Apache::Registry dishonorable?

2000-03-29 Thread Perrin Harkins
> Many messages on this list perpetuate the notion that usage of CGI.pm and > Apache::Registry is for beginners. CGI.pm is a beautiful hack, and the kind of ultimately flexible program that could only have been written in perl. Why would you want to avoid CGI.pm? Because it's slower and uses mor

Re: performance mongers: since when is using CGI.pm or Apache::Registry dishonorable?

2000-03-31 Thread Perrin Harkins
On Fri, 31 Mar 2000, Vivek Khera wrote: > My question to all of you who use handlers directly, how do you manage > all your handler mappings? I've seen it done where you add a > mapping for each handler you use, which corresponds to each > "program" you need. This, in my experience, tends to be

Re: Transitioning from Apache::Registry

2000-04-03 Thread Perrin Harkins
On Mon, 3 Apr 2000, Drew Taylor wrote: > In light of the recent "performance monger" thread, I am interested in > information about transitioning from Registry scripts to Apache > handlers. Here is my situation, which I'm guessing is pretty common. [...] > use Search; > use CGI; > my $q = new CGI

Re: Transitioning from Apache::Registry

2000-04-03 Thread Perrin Harkins
On Mon, 3 Apr 2000, Drew Taylor wrote: > So I just write a small handler which does the same thing as the .pl > script and add a directive to use this > handler? Yes, that should work fine. > And I would need to setup a directive for each function > (Search, Cart, etc)? You probably want to

Re: prepare_cached and Apache::DBI.

2000-04-05 Thread Perrin Harkins
On Wed, 5 Apr 2000, Paul Sullivan wrote: > When attempting to use prepare_cached along with Apache::DBI, it > returns this error once it has ran through each of the apache > children. > > [Wed Apr 5 ...] [error] prepare_cached(...) statement handle > DBI::st=HASH(0x8296788) is still active a

Re: [slightly OT] Problem with cookies

2000-04-06 Thread Perrin Harkins
On Thu, 6 Apr 2000, Drew Taylor wrote: > I have a site which uses cookies for user tracking. If you go to > http://cloudstock.com/, the server is sending the cookie but the browser > is not accepting it ("warn before accepting cookie" is on). If I go to > http://www.cloudstock.com/ the cookie is s

ANNOUNCE: IPO::Shareable [Re: may be an off topic question..]

2000-04-06 Thread Perrin Harkins
On Thu, 6 Apr 2000, Niral Trivedi wrote: > This book has a topic in it in which it has given an example using a > module called 'IPO::Shareable' which is available from CPAN site.. =head1 NAME IPO::Shareable - Perl extension to get rich quick =head1 SYNOPSIS use IPO::Shareable qw(:NYSE);

Re: [slightly OT] Problem with cookies

2000-04-07 Thread Perrin Harkins
Jim Winstead wrote: > An important point is that although "Host:" wasn't required until > HTTP/1.1, all of the common browsers have sent it with 1.0 requests > for some time. Yes, but I've had problems with corporate proxy servers that don't send it. - Perrin

Re: Apache::Session -- Go Out of Scope!!!

2000-04-07 Thread Perrin Harkins
On Fri, 7 Apr 2000, Russell D. Weiss wrote: > Normally, this works great. No problem at all. This object goes out of > scope at the end of the script (it's scoped lexically with "my"). It also > goes out of scope when "die" is explicitly called. If I add "die 'Blah blah > blah'" to an app, thi

Re: REDIRECT missing Cookie

2000-04-11 Thread Perrin Harkins
Jim Winstead wrote: > > On Apr 08, Zeqing Xia wrote: > > Hi, > > > > I'm having a problem with setting the cookie in a REDIRECT. Basically, > > I'm doing this in a handler: > > > > $r->headers_out->add('Set-Cookie' => $cookie); > > $r->headers_out->add('Location' => $location); > > re

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-15 Thread Perrin Harkins
> Each process of apache has > it's registry which holds the compiled perl scripts in..., a copy of > each for each process. This has become an issue for one of the > companies that I work for, and I noted from monitoring the list that > some people have apache processes that are upwards of 25Meg

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: > Now with modperl the Perl garbage collector is > NEVER used. Because the reference count of those variables is never > decremented... it's because it's all in the registry, and it's hard to > tell... hmm... what should I throw away, and what should I keep? ;-). What I

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: > my $i=0; > dosomefunnierstuff(); > sub dosomefunnierstuff { > my $funnierstuff; > if($funnierstuff=~/funnier/) { > dosomefunnierstuff(); > } else { > $funnierstuff="funnier".$i++; > } > print "Funnie

Re: Problem with CGI::Carp under mod_perl

2000-04-18 Thread Perrin Harkins
On Tue, 18 Apr 2000, Steve Hay wrote: > I'm having problems using "CGI::Carp qw(fatalsToBrowser);" in modperl > scripts. [...] > The first one calls die() itself. Under Apache/CGI the die() message > appears in the web browser (albeit preceded by a > spurious Content-Type line), but under Apache/m

Re: Problem with CGI::Carp under mod_perl

2000-04-19 Thread Perrin Harkins
On Wed, 19 Apr 2000, Steve Hay wrote: > > Sounds like a difference in the way CGI scripts and mod_perl buffer. I > > fyou really want CGI::Carp to work, you need to make sure you don't send > > any output before it gets called. Maybe you have PerlSendHeader on? > > I did have PerlSendHeader On:

Re: Apache::DBI disconnect?

2000-04-25 Thread Perrin Harkins
"John S. Evans" wrote: > > Weird. The whole point of Apache::DBI (or so I understand it) is so that > your $dbh stays valid across CGI or Handler calls. That's right. The disconnect call is a no-op when using Apache::DBI. > I can only think of two reasons why I get the error message: > > 1)

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-26 Thread Perrin Harkins
On Tue, 25 Apr 2000 [EMAIL PROTECTED] wrote: > With mod_proxy you really only need a few mod_perl processes because > no longer is the mod_perl ("heavy") apache process i/o bound. It's > now CPU bound. (or should be under heavy load) I think for most of us this is usually not the case, since mo

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-26 Thread Perrin Harkins
On Wed, 26 Apr 2000, Leslie Mikesell wrote: > According to Perrin Harkins: > > On Tue, 25 Apr 2000 [EMAIL PROTECTED] wrote: > > > With mod_proxy you really only need a few mod_perl processes because > > > no longer is the mod_perl ("heavy") apache process

Re: [RFC] modproxy:modperl ratios...

2000-04-27 Thread Perrin Harkins
On Thu, 27 Apr 2000, Matt Sergeant wrote: > Is there any benefit of mod_proxy over a real proxy front end like "Oops"? There's a big study of proxy servers posted at http://bakeoff.ircache.net/N02/. There are some expensive ones with dedicated hardware that perform well. Of course, there are tr

Re: OOP, Inheritance, and mod_perl

2000-04-27 Thread Perrin Harkins
On Thu, 27 Apr 2000, bahwi wrote: > I have a question about OOP, Inheritance, and mod_perl. I have OO > pre-loaded module A, which clients B, C, and D use. Each one get's > their own, and the configuration variables are different. My question here > is how much memory does this take up? Is the mod

Re: speed up/load balancing of session-based sites

2000-04-27 Thread Perrin Harkins
On Thu, 27 Apr 2000, Dan McCormick wrote: > If you split things between a proxy and a mod_perl server, the first hit > would have to go through to the mod_perl server to initiate the session, > but subsequent requests which may not need the session info could be > sent to the proxy. Is that possi

Re: Document Caching

2002-03-07 Thread Perrin Harkins
Cahill, Earl wrote: > I would not be opposed to calling a different, > more standard function to check the cache (set up in a more standard way), > and then fetch accordingly. Look at how the Memoize module does it. You may be able to do something similar that would allow caching to be added ea

Re: PerlFreshRestart, mod_perl DSO, and Apache::StatINC

2002-03-07 Thread Perrin Harkins
Gordon Henriksen wrote: > I see three options open to me: > > 1. static mod_perl w/ PerlFreshRestart > Reloads %INC. > downside: Heresay claims historical instablity. > > 2. dynamic mod_perl > Tears down & cleans up Perl interpreter on graceful restart. > downside: Here

Re: PerlFreshRestart, mod_perl DSO, and Apache::StatINC

2002-03-07 Thread Perrin Harkins
Geoffrey Young wrote: > we do that frequently here - 7 servers behind a BigIP. I've always > wondered, though, whether this approach is foolproof for major > upgrades for applications that maintain state - since a user might > have a session created using a new-code box, then hit an old-code box

Re: PerlFreshRestart, mod_perl DSO, and Apache::StatINC

2002-03-07 Thread Perrin Harkins
> We had been using Option 1 for a long time & we had > absolutely no problems But doesn't it totally wreck your shared memory? For me that would make it unusable. I usually get a pretty large percentage of memory to be shared and count on that for getting maximum capacity from each box. - Per

Re: Response->Debug and IIS

2002-03-08 Thread Perrin Harkins
Mike Martinet wrote: > Can anyone tell me if $Response->Debug from Apache::ASP is implemented > in ActiveState Perl under IIS? Since your questions is about Microsoft ASP, you might want to ask it on a Microsoft ASP list. You already know that Apache::ASP supports it. - Perrin

Re: apache for windows/linux

2002-03-11 Thread Perrin Harkins
Wilfred Chan wrote: > I am fairly new at > this and I just wanted to ask what you guys think the differences are > between running apache on Windows VS on linux. The bottom line is that mod_perl has better performance on Linux because of threading issues on Windows. There's a link to a writeu

Re: [OT?] What exactly is forwarding?

2002-03-12 Thread Perrin Harkins
Paul Lindner wrote: > You'll find that $r->internal_redirect() is the mod_perl equivalent. > Also Apache::ASP containts the Transfer() method which accomplishes > the same thing. Personally, I always thought this was sort of a strange part of JSP. It really shows the page-centric thinking behin

Re: loss of shared memory in parent httpd

2002-03-12 Thread Perrin Harkins
Elizabeth Mattijsen wrote: > Since Perl is basically all data, you would need to find a way of > localizing all memory that is changing to as few memory chunks as > possible. That certainly would help. However, I don't think you can do that in any easy way. Perl doesn't try to keep compiled

Re: Debugging mod_perl

2002-03-12 Thread Perrin Harkins
Nico Erfurth wrote: > Today i had a big problem, and i don't know how to track it down. > After changing one of my tool-modules apache segfaults on startup. > > So, how can i debug something like this? Do you know exactly what you changed? In that case, you have a small amount of code to look

Re: loss of shared memory in parent httpd

2002-03-12 Thread Perrin Harkins
Bill Marrs wrote: > But... recently, something happened, and things have changed. After > some random amount of time (1 to 40 minutes or so, under load), the > parent httpd suddenly loses about 7-10mb of share between it and any new > child it spawns. One possible reason is that a perl memory

Re: Apache::TicketAccess

2002-03-12 Thread Perrin Harkins
Ray Recendez wrote: > I am new to perl/mod_perl and I am trying to implement secure > authentication with expirable ticket/cookies on our website (Apache > 1.3.9-Solaris 2.8). I am trying to use Apache::TicketAccess with Apache > 1.3.9, modssl, openssl, and mod_ssl installed but I am having pro

Re: trouble with GTop and

2002-03-12 Thread Perrin Harkins
Bill Marrs wrote: > When I install the recent Redhat 7.2 updates for glibc: > > glibc-2.2.4-19.3.i386.rpm > glibc-common-2.2.4-19.3.i386.rpm > glibc-devel-2.2.4-19.3.i386.rpm > > It breaks my Apache GTop-based Perl modules, in a way that I don't > understand. [...] > Anyone have a clue about wh

Re: Apache::TicketAccess

2002-03-12 Thread Perrin Harkins
Ray Recendez wrote: > Yes I have MD5 installed. However, MD5.pm is located in the following > locations: /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/MD5.pm ; > /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/MD5/MD5.pm ; and > /usr/local/lib/perl5/site_perl/5.6.1/MD5.pm. Which one is corre

Re: Cache::SharedMemoryCache locking up on Solaris

2002-03-12 Thread Perrin Harkins
Chris Allen wrote: > In desperation, I have switched to Cache::FileCache - which > works fine, but I would be interested to know, for a system > that handles several hundred database queries per minute: > > - What is the performance difference between SharedMemoryCache > and FileCache? You can t

Re: Apache::TicketAccess

2002-03-12 Thread Perrin Harkins
Ray Recendez wrote: > Running it from the command line seems to work: > rift_root>perl -MMD5 -e 'print "ok\n";' > ok Is it possible that you may have installed this module using a different compiler from the one you used for mod_perl? or maybe built mod_perl against a different perl installati

Re: query

2002-03-13 Thread Perrin Harkins
Parag R Naik wrote: > We have installed perl 5.6 but we are > not able to figure out how to instruct apache to use that version of > perl(5.6 You have to re-compile mod_perl. > Is the "our" directive used in some of files new to perl 5.6 because we > could not find that directive in the most

Re: Memory query

2002-03-13 Thread Perrin Harkins
Andrew Green wrote: > In particular, I'm > looking for reassurance that passing a reference to a hash doesn't copy > the hash itself into memory in any way, and that the memory overhead is > only as large as the largest $item. That's basically correct, but some dbm implementations will use their

Re: performance testing - emulating real world use

2002-03-13 Thread Perrin Harkins
Jauder Ho wrote: > Another application (commercial) is Mercury Interactive's LoadRunner. My experience with commercial load-testing apps is that they are outrageously expensive, a pain to program, don't really scale all that well, and mostly have to run on Windows with someone sitting at the m

Re: Serious bug, mixing mod-perl content

2002-03-13 Thread Perrin Harkins
Could you describe the actual nature of the error? How can you tell that the response you're getting is from the wrong virtual host and what is different about the virtual hosts' setup that causes the difference in responses? - Perrin

Re: Apache->print Timeout

2002-03-13 Thread Perrin Harkins
Geoffrey Young wrote: > I don't have a copy of the Eagle book in front of me The API chapter is online and it talks about print() and timeouts: http://modperl.com:9000/book/chapters/ch9.html - Perrin

Re: Serious bug, mixing mod-perl content

2002-03-14 Thread Perrin Harkins
mire wrote: > Beta contains new code and www is old code. We were calling www but once a > while beta would pop in. We noticed error messages that were giving whole > stack trace (caller) but those error messages were not present in www code, > they are implemented as a change in beta code. Are

[OT] underscores vs. init caps

2002-03-15 Thread Perrin Harkins
Georgy Vladimirov wrote: > The Java people escaped from the underscore and started > capitalization. underscores_are_much_easier_to_read ThanSomeSillyCapitalizationScheme. Underscores are the standard for Perl variable names, and for good reason. Anyway, it's a moot point because the name isn't

Re: 2 httpd processes looping in SQL statement

2002-03-18 Thread Perrin Harkins
Andre Terroux wrote: > Hi Team, new subscriber here hoping someone can help me out. I'm getting a > weird behavior with Apache: after running for a while, always two httpd > processes have to be restarted because they use up around 8% of CPU each. This is probably caused by a bug in your perl cod

Re: Global configuration

2002-03-19 Thread Perrin Harkins
In addition to the techniques Stas mentioned (which I've always found to be more than adequate), there are tons of configuration modules on CPAN. AppConfig, Config::* modules, etc. Just make sure you choose one that can do layered configs, so that you can specify a configuration that's shared and

Re: Security of a modperl enabled site

2002-03-19 Thread Perrin Harkins
> I am in front of a security issue. We are running several site using > modperl. Last days, a hacker used a script to call some script of our sites > for bad purpose. He needed to be authenticated, but we are only using > session cookies. Then, once he was loged in, he could retrieve this id and

Re: Subroutines taking time to return..

2002-03-20 Thread Perrin Harkins
> You cannot reliably measure CPU clocks with wallclock on the > multi-processor machine, unless you are running on Dos :) Even so, wall time is what most people actually care about, and it's fine to use if you're the only one doing work on that machine. > Also search the archives, about a year

Re: Subroutines taking time to return..

2002-03-21 Thread Perrin Harkins
David Brown wrote: > All good and well I thought.. But erm.. nothing is being created in the > dprof directory in the server-root. When you call the script, do you get segfaults in the error log? Make sure that you do the DProf stuff, including Apache::DB->init(), before you load any of your ot

Re: Off topic question & a little worried

2002-03-21 Thread Perrin Harkins
John Michael wrote: > Any idea as to how it got on my server. Someone found a serious security hole in something you're running. You have to assume that your server has been completely compromised and that the entire world now has root access to it through a hundred backdoors they installed.

Re: modperl and SQL db select

2002-03-21 Thread Perrin Harkins
Please, please, please KILL THIS THREAD!

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Perrin Harkins
Dan Wilga wrote: > If I either use DB 3.x or even run this from the commandline (bypassing > mod_perl) under DB 4 the problem goes away: only one locker is allocated > per loop, and therefore the total number used does not increase > unexpectedly. This sort of begs the question: why not use DB

Re: Off topic question & a little worried

2002-03-21 Thread Perrin Harkins
darren chamberlain wrote: > Another alternative is to replace it with something that appears > to do the same thing, but actually logs a ton of stuff from the > requestor. You can't trust any part of compromised box, right down to the 'ls' command. Once you know someone has been able to run arb

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Perrin Harkins
Dan Wilga wrote: > What surprises me is that all I have to do to introduce the problem is > run it under mod_perl. It acts normally when run from the commandline. Well, let's see, what would be different... Is it possible that the problem is concurrency from multiple mod_perl processes? What

Re: 'Pinning' the root apache process in memory with mlockall

2002-03-22 Thread Perrin Harkins
Stas Bekman wrote: > Moreover the memory doesn't > get unshared > when the parent pages are paged out, it's the reporting tools that > report the wrong > information and of course mislead the the size limiting modules which > start killing > the processes. Apache::SizeLimit just reads /proc on

Re: PerlModule hell - questions and comments

2002-03-22 Thread Perrin Harkins
Kee Hinckley wrote:> 1. *Why* are the apache config files executed twice (completely with > loading and unloading all the modules)? This is a core apache thing. Apache does it to verify that a restart is safe. See http://thingy.kcilink.com/modperlguide/config/Apache_Restarts_Twice_On_Start.

Re: PerlModule hell - questions and comments

2002-03-22 Thread Perrin Harkins
Kee Hinckley wrote: > At Embperl 2.0b6 Gerald switched to a new architecture. The previous > version was just a plain Perl module loaded as a handler by mod_perl. > This version is also an Apache module. Okay, if it's only in the recent betas then it's possible that only a few people have enc

Re: Performace...

2002-03-23 Thread Perrin Harkins
> Im curious as to the difference in performance when using perl scripts with > Apache::Registry or writing complete Apache Modules in Perl that conform to > the API? Check the list archives for benchmarks by Joshua Chamas. Note that there are other reasons to use handlers instead of Registry, w

Re: the Guide

2002-03-24 Thread Perrin Harkins
> Wouldn't it thus be simpler and more convenient > for 1st times like myself if the guide download were > simply the already created html pages which appear > online. Frankly, hardly anyone does that. Most people refer to the guide on-line. I've used mod_perl for years, referred to the gu

Re: Apache::DBI or What ?

2002-03-25 Thread Perrin Harkins
Ed Grimm wrote: > First, I'll suggest that there are hopefully other areas you can look at > optimizing that will get you a bigger bang for your time - in my test > environment (old hardware), it takes 7.4 ms per > disconnect/reconnect/rebind and 4.8 ms per rebind. Admittedly, I'm > dealing with

<    1   2   3   4   5   6   7   8   9   10   >