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 who cares if a post gets > > lost somewhere) then

Re: Can't exec programs ?

2000-01-20 Thread Pierre-Yves BONNETAIN
[EMAIL PROTECTED] said: > you'll get a better idea of the problem running strace (or truss) > against the server. in any case, you should avoid any code that's > forking a process, since it's throwing performance out the window. Is there a 'nice way' (meaning, a patch or manual change I ca

Re: oracle : The lowdown

2000-01-20 Thread G.W. Haywood
Hi there, On Thu, 20 Jan 2000, Perrin Harkins wrote: > We're veering WAY off-topic here Maybe. But I for one am happy for the diversion. A lot of mod-perl sites are doing just this kind of thing - after all, mod-perl is just a link in a chain, it's of no use intrinsically without some things

Re: Apache::ASP Debugging

2000-01-20 Thread G.W. Haywood
Hi there, On Thu, 20 Jan 2000, suresh gopal wrote: > since the eval of the program puts some of the errors to STDERR - > which goes to log file ( i hope this explaniation is correct). Is > there a way to display these infomation to the browser output?? I don't think I'd want to do that. What's

RE: Why does Apache do this braindamaged dlclose/dlopen stuff?

2000-01-20 Thread G.W. Haywood
Hi all, On Wed, 19 Jan 2000, Gerald Richter wrote: > in the long term, the solution that you have prefered in previous > mail, not to unload modperl at all, maybe the better one As I understand it with Apache/mod_perl: 1. The parent (contains the Perl interpreter) fires up, initialises th

Re: httpd not copied into APACHE_PREFIX

2000-01-20 Thread John M Vinopal
perl Makefile.PL USE_APACI=1 EVERYTHING=1 APACHE_PREFIX=/usr/local/apache On Thu, Jan 20, 2000 at 03:36:44PM -0600, Wang, Pin-Chieh wrote: > Hi, > I am building mod_perl-1.21 into apache_1.3.9 using apaci. > I run the following commands under mod_perl-1.21 directory > perl Makefile.PL EVERYTHING

Re: How do you handle simultaneous/duplicate client requests with modperl?

2000-01-20 Thread Jeffrey W. Baker
Keith Kwiatek wrote: > > Hello, > > I have a mod_perl application that takes a request from a client, then does > some transaction processing with a remote system, which then returns a > success/fail result to the client. The transaction MUST happen only ONCE per > client session. > > PROBLEM:

Re: How do you handle simultaneous/duplicate client requests with modperl?

2000-01-20 Thread Stas Bekman
> I have a mod_perl application that takes a request from a client, then does > some transaction processing with a remote system, which then returns a > success/fail result to the client. The transaction MUST happen only ONCE per > client session. > > PROBLEM: the client clicks the submit buttom

Re: problem

2000-01-20 Thread Cliff Rayman
unfortunately PERL_STACKED_HANDLERS used to be experimental and therefore EVERYTHING includes just about EVERYTHING except PERL_STACKED_HANDLERS. i think you need to add PERL_STACKED_HANDLERS=1 to your long list of Makefile.PL parameters. this has been discussed in the mail archives so you can s

HELP.... apache::session, Invalid Arg: SysVSemaphoreLocker.pm line 63

2000-01-20 Thread Keith Kwiatek
Hey Guys, Just installed Apache:Session tried to run the example.perl script that come with the install. I keep getting "Invalid Argument at SysVSemaphoreLocker.pm line 63. any idea what is going on? Keith

httpd not copied into APACHE_PREFIX

2000-01-20 Thread Wang, Pin-Chieh
Hi, I am building mod_perl-1.21 into apache_1.3.9 using apaci. I run the following commands under mod_perl-1.21 directory perl Makefile.PL EVERYTHING=1 APACHE_PREFIX=/usr/local/apache make make test make install Everything looks fine, httpd was created in apache_1.3.9/src,

problem

2000-01-20 Thread Etienne Pelaprat
Hi All, I've hit a problem that I can't seem to rectify. I compile mod_perl with EVERYTHING=1, but in one of my modules, I get the error: [Wed Jan 19 20:30:05 2000] null: Rebuild with -DPERL_STACKED_HANDLERS to $r->push_handlers at /usr/local/apache/lib/perl/Apache/BOSCIndex.pm line 37. Thi

RE: How do you turn logging off completely in Embperl?

2000-01-20 Thread Gerald Richter
> Thanks, Gerald! It might be a good idea as well to make the > default log file > be auto-configured during build time (if it finds apache sources) > to point to > embperl.log in whatever apache has configured as the log > directory. Using /tmp > is just a bad, bad idea. > I put it on the TO

httpd.conf's 407 setting doesn't quite work

2000-01-20 Thread Nancy Lin
Hi I don't know if this is a problem w/ modperl or apache itself. I'm running proxy server apache 1.3.9 and modperl 1.21. I'm using modperl to authenticate my users. When a user is invalid, my code does: } else { loginfo($r, "AuthenSession::handler: bad passw

RE: How do you turn logging off completely in Embperl?

2000-01-20 Thread Christian Gilmore
Thanks, Gerald! It might be a good idea as well to make the default log file be auto-configured during build time (if it finds apache sources) to point to embperl.log in whatever apache has configured as the log directory. Using /tmp is just a bad, bad idea. Regards, Christian > -Original Me

RE: How do you turn logging off completely in Embperl?

2000-01-20 Thread Gerald Richter
> The file gets created even if EMBPERL_DEBUG = 0 is set in 1.2.0. The > Changes.pod from > 1.2.1 doesn't indicate that this problem was corrected, so it > should still be > present. > > Try setting EMBPERL_DEBUG = 0 and not setting a EMBPERL_LOG (so > it is set to > default). Make sure the /tmp/e

RE: How do you turn logging off completely in Embperl?

2000-01-20 Thread Gerald Richter
> > There must be a bug somewhere because I had EMBPERL_DEBUG = 0 and > was getting > errors about not being able to write to /tmp/embperl.log. > > This is with v 1.2b4 I believe so if this has changed recently > that may be why > I got the errors. > This didn't have change recently, but it is po

Re: squid performance

2000-01-20 Thread Leslie Mikesell
According to Greg Stark: > I tried to use the minspareservers and maxspareservers and the other similar > parameters to let apache tune this automatically and found it didn't work out > well with mod_perl. What happened was that starting up perl processes was the > single most cpu intensive thing

RE: How do you turn logging off completely in Embperl?

2000-01-20 Thread Jason Bodnar
There must be a bug somewhere because I had EMBPERL_DEBUG = 0 and was getting errors about not being able to write to /tmp/embperl.log. This is with v 1.2b4 I believe so if this has changed recently that may be why I got the errors. On 20-Jan-00 Gerald Richter wrote: >> >> That's what I thought.

Re: Using mod_backhand for load balancing and failover.

2000-01-20 Thread Leslie Mikesell
According to Jeffrey W. Baker: > > Is anyone using mod_backhand (http://www.backhand.org/) for load > balancing? I've been trying to get it to work but it is really flaky. > For example, it doesn't seem to distribute requests for static content. > Bah. I just started to look at it (and note t

RE: How do you turn logging off completely in Embperl?

2000-01-20 Thread Gerald Richter
> > That's what I thought. Setting 'EMBPERL_DEBUG 0' should really > turn off any > kind of logging including even trying to open the log file. > Look at epio.c function OpenLog line 838 if (r -> bDebug == 0) return ok ; /* never write to logfile if debugging is disabled */ If the D

Re: squid performance

2000-01-20 Thread Leslie Mikesell
According to Greg Stark: > > I think if you can avoid hitting a mod_perl server for the images, > > you've won more than half the battle, especially on a graphically > > intensive site. > > I've learned the hard way that a proxy does not completely replace the need to > put images and other othe

Re: horrible memory consumption

2000-01-20 Thread Vivek Khera
> "JT" == Jason Terry <[EMAIL PROTECTED]> writes: JT> Is there a way I can tell where my memory usage is going in an JT> Apache child? I have a server that starts with acceptable JT> numbers, but after a while it turns into this It would probably be best if you started by reading through th

Re: oracle : The lowdown

2000-01-20 Thread Ed Phillips
For those of you tired of this thread please excuse me, but here is MySQL's current position statement on and discussion about transactions: Disclaimer: I just helped Monty write this partly in response to some of the fruitful, to me, discussion on this list. I know this is not crucial to mod_per

Re: How do you handle simultaneous/duplicate client requests with modperl?

2000-01-20 Thread Victor Zamouline
>If the processing status >is "in progress" Be careful if you expect the "in progress" status change to "done". If an error happens and the status never switches to "done", the session ID will remain forever "in progress" and a second attempt of the same request will be refused by your own applic

Compile error with mod_perl_1.21

2000-01-20 Thread Asghar Nafarieh
Hi, I get the following link error when I try to make apache_1.3.9 with mod_perl-1.21. Am I missing a library module? Thanks, -Asghar This is how I built it: cd mod_perl-1.21 perl Makefile.PL PREP_HTTPD=1 make make test make install cd ../apache_1.3.9 ./configure --with-layout=RedHat --tar

question about PerlChildInitHandler & PerlChildExitHandler

2000-01-20 Thread Huan He
Hello, Are there some similar directives for the threads on NT ? The problem I run into is on UNIX, I open sockets during PerlChildInitHandler and close the sockets during PerlChildInitHandler phase, but when I try to port my code to NT platform, I don't know how to do it. Does anyone know any

How do you handle simultaneous/duplicate client requests with modperl?

2000-01-20 Thread Keith Kwiatek
Hello, I have a mod_perl application that takes a request from a client, then does some transaction processing with a remote system, which then returns a success/fail result to the client. The transaction MUST happen only ONCE per client session. PROBLEM: the client clicks the submit buttom twi

Re: How do I package my DBI subroutines?

2000-01-20 Thread G.W. Haywood
Hi there, On Wed, 19 Jan 2000, Keith Kwiatek wrote: > We have recently installed a new machine with Apache/1.3.9 > mod_perl/1.21 mod_ssl/2.4.10 OpenSSL/0.9.4 perl 5.004_04 configured > A perl transaction handler that works fine on Apache/1.3.6 > mod_perl/1.21 5.00503 is now intermittantly dying

RE: mod_rewrite and Apache::Cookie

2000-01-20 Thread Geoffrey Young
for anyone interested... I wrote a PerlTransHandler and removed mod_rewrite and am seeing the same problem as outlined below... can anyone verify this? --Geoff > -Original Message- > From: Geoffrey Young > Sent: Wednesday, January 19, 2000 9:27 AM > To: '[EMAIL PROTECTED]' > Subject:

Re: horrible memory consumption

2000-01-20 Thread Bill
Stas Bekman wrote: > >If anyone knows how to figure out shared vs not shared memory in a > > process on Linux, I'd be interested in that too...and it sounds like Jason > > could benefit from the info as well. I know that Apache::Gtop can be > > used for mod_perl from reading The Guide (thanks

Re: Apache locking up on WinNT

2000-01-20 Thread Gerald Richter
> > > [and assign users to the different apache]. How many Apache can > > > I start ? > > > > > > > Only a matter of your memory... > > How much apaches with mod_perl won't hurt 128 MB NT box ? > (for application with 91 scripts and modules with summary > PERL code 376 KB) > (or how many RAM shoul

Performance ?'s regarding Apache::Request

2000-01-20 Thread Clifford Lang
mod_perl 1.21 Apache 1.3.9 Solaris 2.5.1, Linux 6.0 Is this a good or bad idea? I want to create an inheritable module based on Apache::Request mainly for uploading files, then create individual PerlHandler modules for individual page content. If I do this, will the uploaded files end up increa

Re: Apache locking up on WinNT

2000-01-20 Thread Waldek Grudzien
> > Oh my ... > > Indeed this happens. This is horrible ;o( > > and make mod_perl unusable with NT web site with many visitors ;o( > > How do you think - for intranet web application is it reasonable > > to run few Apaches (with mod_perl) on the same box ? > > yes, but as far as I know that isn't

Re: EMBPERL_SESSION_ARGS problem

2000-01-20 Thread Gerald Richter
> > >[6431]ERR: 24: Line 13: Error in Perl code: DBI->connect failed: Access > denied for user: 'www@dev2-sparc' (Using password: YES) at > >/usr/local/lib/perl5/site_perl/5.005/Apache/Session/DBIStore.pm line 117 > > > Note that the two parameters differ only by the target hostname... > and tha

Re: squid performance

2000-01-20 Thread Stas Bekman
On 20 Jan 2000, Greg Stark wrote: > I tried to use the minspareservers and maxspareservers and the other similar > parameters to let apache tune this automatically and found it didn't work out > well with mod_perl. What happened was that starting up perl processes was the > single most cpu intensi

EMBPERL_SESSION_ARGS problem

2000-01-20 Thread Jean-Philippe FAUVELLE
The following directives work fine with Embperl 1.2.0 >PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:database=www_sessions;host=dev2-sparc UserName=www Password=secret" >PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:database=www_sessions;host=localhost UserName=www Password=secre

Re: Apache locking up on WinNT

2000-01-20 Thread Gerald Richter
> Oh my ... > Indeed this happens. This is horrible ;o( > and make mod_perl unusable with NT web site with many visitors ;o( > How do you think - for intranet web application is it reasonable > to run few Apaches (with mod_perl) on the same box ? yes, but as far as I know that isn't possible as

Re: Apache locking up on WinNT

2000-01-20 Thread Waldek Grudzien
> > I added the warns to the scripts and it appears that access to the modules > > is serialised. Each call to the handler has to run to completion before > > any other handlers can execute. > > > > Yes, on NT all accesses to the perl part are serialized. This will not > change before mod_perl 2.

Re: A fix in sight: Apache::ASP: crash when placed in startup.pl

2000-01-20 Thread Tim Bunce
On Wed, Jan 19, 2000 at 09:11:51AM +, Alan Burlison wrote: > > I've posted a bug against DynaLoader to P5P. I think the fix is > probably to put an END handler in DynaLoader to unload the XS modules, > but I'm not familiar enough with the perl interpreter cleanup processing > to know if this

Re: question?

2000-01-20 Thread Rod Butcher
If I understand you correctly, you don't want to use mod_perl, just Perl. If so, the easiest way to use perl is to dowload ActivePerl (free) from Activestate website http://www.activestate.com/ActivePerl/download.htm It comes with great documentation, install it as per documentation. If you wish

Re: How download data/file in http [Embperl 1.2.0]

2000-01-20 Thread Gerald Richter
Hi I am using Emberl 1.2.0.   This is the probleme : I have a form with a submit bouton to download some data ( or a file ). I want that the user can save these data. When I submit it, the header that I want to send to generate the download is printed in the page ( ...and the da

Re: Why does Apache do this braindamaged dlclose/dlopen stuff?

2000-01-20 Thread Gerald Richter
> > Yes and no. If XS libraries are written with OO-style wrappers (which, IMHO, > they always should be), then surely you can catch the unloading in a DESTROY > sub and use that to do the deallocation of resources? Perl can only manage > Perl resources, and extension resources should be the respo

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 Oracle to just use > > the most

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: How to make EmbPerl stuff new content into a existing frame?

2000-01-20 Thread Gerald Richter
> > When the user hits the login button, I am calling a CGI script that > validates the login against a database. I can't make it have a action > that loads a HTML page before the script is executed. Therefore the > script has to reload the frame with frame pages. I also need to pass > values t

Re: Run away processes

2000-01-20 Thread Stas Bekman
On 20 Jan 2000, Greg Stark wrote: > > Stas Bekman <[EMAIL PROTECTED]> writes: > > > > Is there a recommendation on how to catch & stop run away mod_perl programs > > > in a way that's _not_ part of the run away program. Or is this even > > > possible? Some type of watchdog, just like httpd.co

Re: Run away processes

2000-01-20 Thread Greg Stark
Stas Bekman <[EMAIL PROTECTED]> writes: > > Is there a recommendation on how to catch & stop run away mod_perl programs > > in a way that's _not_ part of the run away program. Or is this even > > possible? Some type of watchdog, just like httpd.conf Timeout? > > Try Apache::SafeHang > http://

Re: squid performance

2000-01-20 Thread Greg Stark
"G.W. Haywood" <[EMAIL PROTECTED]> writes: > Would it be breaching any confidences to tell us how many > kilobyterequests per memorymegabyte or some other equally daft > dimensionless numbers? I assume the number you're looking for is an ideal ratio between the proxy and the backend server? No

Re: horrible memory consumption

2000-01-20 Thread Stas Bekman
> > Is there a way I can find out where all this RAM is being used. Or does > > anyone have any suggestions (besides limiting the MaxRequestsPerChild) > >If anyone knows how to figure out shared vs not shared memory in a > process on Linux, I'd be interested in that too...and it sounds like

Re: squid performance

2000-01-20 Thread Greg Stark
Vivek Khera <[EMAIL PROTECTED]> writes: > Squid does indeed cache and buffer the output like you describe. I > don't know if Apache does so, but in practice, it has not been an > issue for my site, which is quite busy (about 700k pages per month). > > I think if you can avoid hitting a mod_per