environment variable

2008-03-12 Thread James. L
hi, the app i wrote is run under Apache::Registry only. i am wondering if SetEnv/PassEnv will cause any problem in this case (since setenv and passenv only affect %ENV for content generation phase and beyond)? also, a question on apache.. i have tried the following under plain CGI SetEnv PATH

questions on serving big file SQL statement parsing

2007-07-02 Thread James. L
Hi, all I got curious when reading 'performance tuning' in mod_perl doc. two questions. 1. SQL statement parsing is mentioned in the doc: http://perl.apache.org/docs/1.0/guide/performance.html#toc_Eliminating_SQL_Statement_Parsing i am curious that if it is a general practice(caching sql

Re: questions on serving big file SQL statement parsing

2007-07-02 Thread James. L
2. Upload and Download of Big Files http://perl.apache.org/docs/1.0/guide/performance.html#toc_Upload_and_Download_of_Big_Files it mentions that serving static file from the front-end server but also mentions the following: This of course assumes that the script requires none of the

Re: few newbie quesitons..

2007-05-11 Thread James. L
i still have few questions, would you please answer them for me? see below.. --- Perrin Harkins [EMAIL PROTECTED] wrote: On 5/7/07, James. L [EMAIL PROTECTED] wrote: the files i need to parse are usually in size of 2M - 10M. will the mod_perl server(2G Mem) use up the memory pretty quick

Re: few newbie quesitons..

2007-05-11 Thread James. L
--- Perrin Harkins [EMAIL PROTECTED] wrote: On 5/11/07, James. L [EMAIL PROTECTED] wrote: even if i am using an iterator object and call it.next in TT, doesn't TT actually keep the rendered template page into one variable and dump it to the browser? in that case, the memory consumed

Re: After retrieving data from DB, the memory doesn't seem to be freed up

2007-05-11 Thread James. L
--- Perrin Harkins [EMAIL PROTECTED] wrote: On 5/10/07, Andy Armstrong [EMAIL PROTECTED] wrote: Unless I'm misunderstanding you that's not true. When a value's reference count goes to zero the memory is freed - at least to Perl if not to the OS. No, it's not. I know it's

Re: After retrieving data from DB, the memory doesn't seem to be freed up

2007-05-11 Thread James. L
--- Perrin Harkins [EMAIL PROTECTED] wrote: On 5/11/07, James. L [EMAIL PROTECTED] wrote: On 5/10/07, Andy Armstrong [EMAIL PROTECTED] wrote: Unless I'm misunderstanding you that's not true. When a value's reference count goes to zero the memory is freed - at least to Perl

Re: few newbie quesitons..

2007-05-07 Thread James. L
--- Perrin Harkins [EMAIL PROTECTED] wrote: sub parse { my ($class,$file) = @_; my @data; open my $F, $file or die $!; while ( my $line = $F ) { my @fields = split /=/, $line; push @data, [EMAIL PROTECTED]; } close $F; return [EMAIL PROTECTED]; } If

few newbie quesitons..

2007-05-06 Thread James. L
hello, few beginner questions on using mod_perl. 1. memory usage. i have an app that reads/parses a file line by line then passes the data to TT for html output. each http request may request different files. my question is once the app produce the html, does the memory allocated by the

Re: few newbie quesitons..

2007-05-06 Thread James. L
--- Perrin Harkins [EMAIL PROTECTED] wrote: On 5/6/07, James. L [EMAIL PROTECTED] wrote: my question is once the app produce the html, does the memory allocated by the parsed data get released to perl? that memory will be reused by other mod_perl app? No, Perl doesn't work that way

Re: mod_perl implementation possibility

2007-03-16 Thread James. L
--- Frank Wiles [EMAIL PROTECTED] wrote: On Thu, 15 Mar 2007 12:54:37 -0700 (PDT) James. L [EMAIL PROTECTED] wrote: mod_perl 2 seems solve the problem with virtual host which will require us to adopt apache 2 and use virtual host. my understanding may be false but i would like

RE: mod_perl implementation possibility

2007-03-16 Thread James. L
just how much time do you have to spend programming to get it to work as you'd like. with the frameworks, there's even less programming that you need to do. good luck. -Original Message- From: James. L [mailto:[EMAIL PROTECTED] Sent: Thursday, March 15, 2007 3:55 PM having

Re: mod_perl implementation possibility

2007-03-16 Thread James. L
--- Clinton Gormley [EMAIL PROTECTED] wrote: we are exploring the idea of writing medium to large Perl apps in the future which will require mod_perl. the current environment is apache 1.3. having read modperl's doc and i am concerned about running multiple unrelated mod_perl apps

mod_perl implementation possibility

2007-03-15 Thread James. L
hello, i am doing a little research on adopting Perl into our dev group. we are a small team (8) that mostly programming in Java . since half of the team has a little or ok knowlege of Perl, we have been experimenting Perl in smaller projects to avoid a lot of java related overhead. most of

RE: compilation failure with mod_perl-1.99_16 on OpenBSD 3.4

2004-10-10 Thread Fisher, James L.
Actually, gnu make is not standard on OpenBSD. gmake is an easily added package, though. (See http://www.openbsd.org/3.4_packages/i386.html) Here's the quickest way to verify that your make isn't gmake. A make -v on a standard OpenBSD install will return the error unknown option -- v.

RE: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-09 Thread Fisher, James L.
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 3:38 AM To: Joe Orton Cc: [EMAIL PROTECTED]; Ken Simpson; [EMAIL PROTECTED]; Stas Bekman Subject: Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors I wasn't

[mp2] mod_perl-1.99_16 make test failure on both_str_con_add.t, echo_block.t, and pseudo_http.t

2004-09-08 Thread Fisher, James L.
Summary of problem: following failed during make test for mod_perl-1.99_16: t/filter/both_str_con_add.t t/protocol/echo_block.t t/protocol/pseudo_http.t The platform: - OpenBSD 3.5-stable (GENERIC) #0: Thu Aug 12 23:59:05 EDT 2004 (i.e., patched) - perl v5.8.2 built for i386-openbsd