RE: Response time of a perl script!!!

2000-12-05 Thread Jason Liu
In this situation, I think the bottle neck is establishing connection with the database. Apache::DBI helps to maintain persistent database connection. That's why the latter test is 20 times faster. Jason > > > Hi folks, > > I ran a same perl script twice. First time only under mod_pe

RE: Problem with Apache::DBI under mod_perl!!

2000-11-27 Thread Jason Liu
I had some similar problem before. It was caused by the "PerlFreshRestart on". Comment this line out and see what happens. Jason > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Edmar Edilton da Silva > Sent: Thursday, November 23, 2000 5:40 AM

RE: dynamic vs. mostly static data

2000-11-10 Thread Jason Liu
Is a package global var, such as %CACHE in the code below, persistent during the life of a child process? Does each child get a copy of %CACHE after the parent forks? Thanks, Jason > > i often do something like this where i allow each individual child > process to cache it's data. i do somethi

RE: database access

2000-11-07 Thread Jason Liu
Thank you for the help everyone. Jason

RE: database access

2000-11-07 Thread Jason Liu
Is Apache::DBI absolutely necessary if you want to establish persistent database connection per child? Thanks, Jason > -Original Message- > From: David Hodgkinson [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 06, 2000 5:10 AM > To: Jason Liu > Cc: [EMAIL PROTE

RE: database access

2000-11-06 Thread Jason Liu
"Undefined subroutine &dbChannel::command called at /usr/up/papi/lib/PAPIDatabase.pm", which is a library file that works. In general, how should database connections be handled between parent and child processes? Can you establish database connections from within a handler? Jason

database access

2000-11-06 Thread Jason Liu
Hi, I can access oracle database from the main Apache process, but not from any child processes. I am fairly new to this subject, can someone give me some advice? Thanks in advance, Jason

prototype mismatch in Socket.pm

2000-11-01 Thread Jason Liu
Hi, I got the following prototype mismatch error when starting up Apache. Has anyone seen this before? Prototype mismatch: sub Socket::INADDR_ANY vs () at /usr/local/lib/perl5/5.6.0/sun4-solaris/Socket.pm line 328. Prototype mismatch: sub Socket::INADDR_BROADCAST vs () at /usr/local/lib/perl5/5

failed on sanity check on compiler and options

2000-10-20 Thread Jason Liu
Hi, Thanks for the previous help. When building mod_perl (perl Makefile.PL), it failed on "sanity check on compiler and options." It seemed like the gcc command was chopped off. Did anyone see this before? Below is the error message. Thanks in advance. Jason Error Output for sanit

How to use gcc to build mod_perl

2000-10-20 Thread Jason Liu
Hi, I was trying to build mod_perl 1.24_01 and apache 1.3.14. I used the following command: perl Makefile.PL make test && make install The Makefile wants to use the "cc" compiler. Can I use "gcc" instead? Thanks, Jason