Re: [RFC] Apache::LDAP

2002-12-02 Thread Stas Bekman
James G Smith wrote:

Per Einar Ellefsen [EMAIL PROTECTED] wrote:


Hi James,

At 02:32 02.12.2002, James G Smith wrote:


( Actually, the name is chosen to `rhyme' with Apache::DBI.  There
are no dependencies on Apache or mod_perl. )


If there is no link with Apache::DBI, I suggest that you choose a more 
appropriate namespace, like Persistent::LDAP


Unfortunately, that's already taken.  The module on CPAN implements
persistent objects with an LDAP backend (if I read the docs right).


Net::LDAP::Persistent is not taken and seems like a good choice to me.

---

re: modules discussion lists. Are you sure you are talking about the 
right list? I thought that module-authors at perl.org is the one for 
discussing general perl modules. Whereas modules at perl.org is for CPAN 
namespace registration submission. I've found the latter to be much more 
helpful, with Tim Bunce usually taking the pains of proposing better 
namespaces. So whenever I propose a new module I go first to 
module-authors and if nothing happens I take it to modules, which 
happens in any case, because I want my modules to be registered.

p.s. those module authors who want their modules to be registered (it's 
not enough to upload the module on CPAN), login into your PAUSE account 
and go to the registration section. If you have further questions 
module-authors at perl.org is the place to ask them.


__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Re: [mp1] Still can not get working DSO configuration on Tru64

2002-12-02 Thread Marcin Kasperski
Stas Bekman [EMAIL PROTECTED] writes:

 Marcin Kasperski wrote:
 In short: I tried different compilation methods with two possible
 outcomes:
 a) apache and modperl compile succesfully but I get coredump while the
application is starting (in all cases SEGVs, in some cases core's
confused the debugger, in other I managed to notice __at_fork in
backtrace)
  b) everything seem to compile succesfully but I get dlopen:
 /tools/apache/libexec/mod_perl.so: symbol
 PL_perl_destruct_level unresolved
 
while the application is starting
  Maybe it is worth noting, that I happened to get b) also when I
 
  compiled perl with shared perl library (in contrary to suggestion
  found in modperl docs that building perl with shared library should
  help).
 
 2 years ago, there was a similar struggle as you can see from this
 thread: http://marc.theaimsgroup.com/?t=9744223061r=1w=2 May
 be those participants are still using True64 and can give you some
 hints?

It seems to me, they had problem with the '-Wl,-rpath' issue which I
found to be minor and easily patched (by the way: maybe someone would
want to correct it in distribution?). And all they wanted was to get
statically linked modperl. This is the thing I already have.

Maybe I will post a question to tru64-managers...




-- 
( Marcin Kasperski   | (...) the only completion criterion for the Analysis  )
( http://www.mk.w.pl |   and Design phases is - the date. (Martin)   )
()
( Nie gub zgosze bdw: http://www.mk.w.pl/narzedzia/narzedzia_bugewid)



Install problem...

2002-12-02 Thread Beau E. Cox
Hi -

I am trying to upgrade my test server (SuSE 8.1) to Apache/
mod_perl 2. I installed and tested Apache 2 - all OK.

I have perl 5.8.0 (pre-build by SuSE); It passed the tests
in the mpd_perl 2 prequsites section.

I get this problem on make test (both with Apache mpm
configured as prefork AND worker):

apache/subprocess1..4
# testing : passing ARGV
# expected: [
#   'foo',
#   'bar'
# ]
# received: []
not ok 1
# testing : passing env via subprocess_env
# expected: 'my cool proc'
# received: ''
not ok 2
# testing : testing subproc's stdin - stdout + list context
# expected: 'my cool proc
# '
# received: ''
not ok 3
# testing : testing subproc's stdin - stderr + list context
# expected: 'my stderr
# '
# received: ''
not ok 4
FAILED tests 1-4
Failed 4/4 tests, 0.00% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed

---
apache/subprocess.t44 100.00%  1-4

I haven't got a clue. This is my sixth reRTFM/reinstall/retest.
Could someone give me a push as to what to try next?

Aloha = Beau.





Re: [RFC] Apache::LDAP

2002-12-02 Thread Chris Winters
On Sun, 2002-12-01 at 20:32, James G Smith wrote:
 ( Actually, the name is chosen to `rhyme' with Apache::DBI.  There
 are no dependencies on Apache or mod_perl. )
 
 NAME
 Apache::LDAP - provides persistent LDAP connections

Does this overlap with the ResourcePool series of modules?
 
Chris

-- 
Chris Winters ([EMAIL PROTECTED])
Building enterprise-capable snack solutions since 1988.




Re: Install problem...

2002-12-02 Thread Stas Bekman
Beau E. Cox wrote:

Hi -

I am trying to upgrade my test server (SuSE 8.1) to Apache/
mod_perl 2. I installed and tested Apache 2 - all OK.


Beau, when reporting problems, please follow the guidelines linked from 
the perl.apache.org's shortcuts menu:
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems

I have perl 5.8.0 (pre-build by SuSE); It passed the tests
in the mpd_perl 2 prequsites section.

I get this problem on make test (both with Apache mpm
configured as prefork AND worker):

apache/subprocess1..4
# testing : passing ARGV
# expected: [
#   'foo',
#   'bar'
# ]
# received: []
not ok 1
# testing : passing env via subprocess_env
# expected: 'my cool proc'
# received: ''
not ok 2
# testing : testing subproc's stdin - stdout + list context
# expected: 'my cool proc
# '
# received: ''
not ok 3
# testing : testing subproc's stdin - stderr + list context
# expected: 'my stderr
# '
# received: ''
not ok 4
FAILED tests 1-4
	Failed 4/4 tests, 0.00% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed

---
apache/subprocess.t44 100.00%  1-4

I haven't got a clue. This is my sixth reRTFM/reinstall/retest.
Could someone give me a push as to what to try next?


I forgot to add to the guidelines to check t/logs/error_log, will add it 
now.

So what does your error_log say? Most likely some perms problems with 
t/htdocs/util, right?

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



RE: Install problem...

2002-12-02 Thread Beau E. Cox
Thanks Stas -

Please give me about an hour...I am in the middle of
putting everthing back together again :)

Will report back to you (following the standards) then.

Aloha = Beau.

PS: This is sort of fun!

-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 3:10 AM
To: Beau E. Cox
Cc: Modperl
Subject: Re: Install problem...


Beau E. Cox wrote:
 Hi -

 I am trying to upgrade my test server (SuSE 8.1) to Apache/
 mod_perl 2. I installed and tested Apache 2 - all OK.

Beau, when reporting problems, please follow the guidelines linked from
the perl.apache.org's shortcuts menu:
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems

 I have perl 5.8.0 (pre-build by SuSE); It passed the tests
 in the mpd_perl 2 prequsites section.

 I get this problem on make test (both with Apache mpm
 configured as prefork AND worker):

 apache/subprocess1..4
 # testing : passing ARGV
 # expected: [
 #   'foo',
 #   'bar'
 # ]
 # received: []
 not ok 1
 # testing : passing env via subprocess_env
 # expected: 'my cool proc'
 # received: ''
 not ok 2
 # testing : testing subproc's stdin - stdout + list context
 # expected: 'my cool proc
 # '
 # received: ''
 not ok 3
 # testing : testing subproc's stdin - stderr + list context
 # expected: 'my stderr
 # '
 # received: ''
 not ok 4
 FAILED tests 1-4
   Failed 4/4 tests, 0.00% okay
 Failed Test Stat Wstat Total Fail  Failed  List of Failed
 --
--
 ---
 apache/subprocess.t44 100.00%  1-4

 I haven't got a clue. This is my sixth reRTFM/reinstall/retest.
 Could someone give me a push as to what to try next?

I forgot to add to the guidelines to check t/logs/error_log, will add it
now.

So what does your error_log say? Most likely some perms problems with
t/htdocs/util, right?

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com






XML-LibXML-Common in perl 58 repository at theoryx5.

2002-12-02 Thread [EMAIL PROTECTED]
Hi

when trying to ppm install XML::LibXML::Common
from http://theoryx5.uwinnipeg.ca/ppms, the new perl58
repository, I have this error :

error, read a ppd but it is not intended for this build of perl
(mswin32-x86-multi-thread)

I have active state perl58 installed and successfully installed
other modules from this repository.

best regards
pascal

Accédez au courrier électronique de La Poste : www.laposte.net ;
3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






[mp2.0]make test problems

2002-12-02 Thread Beau E. Cox

-8-- Start Bug Report 8--
1. Problem Description:

  MP make test fails (no error log generated)

  A. Apache/Const.pm not found - snip of console output:

  [START]
  *** setting ulimit to allow core files
  ulimit -c unlimited; t/TEST -clean
  *** setting ulimit to allow core files
  ulimit -c unlimited; t/TEST
  Can't locate Apache/Const.pm in @INC (@INC contains: Apache-Test/lib
  [...etc...]

  I looked on CPAN but Apache::Constants seems to be part of
  MP1.

  B. 'test mode' apache doesn't start (it starts OK using apachectl start):

  Syntax error on line 27 of
/usr/local/addons/mod_perl-1.99_07/t/conf/httpd.conf:
  Invalid command 'TransferLog', perhaps mis-spelled or defined by a module
not included inthe server configuration
  !!!
  server has died with status 255 (t/logs/error_log wasn't created, start
the server in the debug mode)
  make: *** [run_tests] Error 143

  line 27 ot the test httpd.conf file:

  26:  LogLeveldebug
  27:  TransferLog /usr/local/addons/mod_perl-1.99_07/t/logs/access_log
  28:
  29:  ServerAdmin nobody@localhost

  C. NOTE!

  I have gone backwards! My previous incarnations of mod_perl install
  have gotten further than this. My change - configured Apache with 'all'
  modules:


 ./configure --enable-layout=SuSE --enable-mods-shared=all --with-mpm=worker


2. Used Components and their Configuration:

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_AP_PREFIX= /usr/include/apache
  MP_GENERATE_XS  = 1
  MP_INST_APACHE2 = 1
  MP_LIBNAME  = mod_perl
  MP_USE_DSO  = 1
  MP_USE_STATIC   = 1


*** /usr/sbin/httpd -V
Server version: Apache/2.0.43
Server built:   Dec  2 2002 03:29:08
Server's Module Magic Number: 20020903:0
Architecture:   32-bit
Server compiled with
 -D APACHE_MPM_DIR=server/mpm/worker
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT=/usr
 -D SUEXEC_BIN=/usr/bin/suexec
 -D DEFAULT_SCOREBOARD=logs/apache_runtime_status
 -D DEFAULT_ERRORLOG=logs/error_log
 -D AP_TYPES_CONFIG_FILE=/etc/httpd/mime.types
 -D SERVER_CONFIG_FILE=/etc/httpd/httpd.conf


*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
osname=linux, osvers=2.4.19, archname=i586-linux-thread-multi
uname='linux amdsim5 2.4.19 #1 wed mar 27 13:57:05 utc 2002 i686 unknown
'




config_args='-ds -e -Dprefix=/usr -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_g
dbm -Duseshrplib=true'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='cc', ccflags
='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64',
optimize='-O3 --pipe',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing'
ccversion='', gccversion='3.2', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
  Linker and Libraries:
ld='cc', ldflags =''
libpth=/lib /usr/lib /usr/local/lib
libs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
libc=, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.2.5'
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i586-linux-thread-multi
/CORE'
cccdlflags='-fPIC', lddlflags='-shared'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Oct  8 2002 16:55:42
  %ENV:
PERL_LWP_USE_HTTP_10=1
  @INC:
/usr/lib/perl5/5.8.0/i586-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
.


3. This is the core dump trace: (if you get a core dump):

  [N/A]

This report was generated by t/REPORT on Mon Dec  2 14:14:55 2002 GMT.

-8-- End Bug Report --8--

Note: Complete the rest of the details and post this bug report to
dev at perl.apache.org. To subscribe to the list send an empty
email to [EMAIL PROTECTED]





Re: [mp2.0]make test problems

2002-12-02 Thread Stas Bekman
That's much better!


-8-- Start Bug Report 8--
1. Problem Description:

  MP make test fails (no error log generated)

  A. Apache/Const.pm not found - snip of console output:

  [START]
  *** setting ulimit to allow core files
  ulimit -c unlimited; t/TEST -clean
  *** setting ulimit to allow core files
  ulimit -c unlimited; t/TEST
  Can't locate Apache/Const.pm in @INC (@INC contains: Apache-Test/lib
  [...etc...]


You've snipped it in the bad place. What's the reported @INC? But first 
try with the last suggestion in this reply.

  I looked on CPAN but Apache::Constants seems to be part of
  MP1.

  B. 'test mode' apache doesn't start (it starts OK using apachectl start):

  Syntax error on line 27 of
/usr/local/addons/mod_perl-1.99_07/t/conf/httpd.conf:
  Invalid command 'TransferLog', perhaps mis-spelled or defined by a module
not included inthe server configuration
  !!!
  server has died with status 255 (t/logs/error_log wasn't created, start
the server in the debug mode)
  make: *** [run_tests] Error 143

  line 27 ot the test httpd.conf file:

  26:  LogLeveldebug
  27:  TransferLog /usr/local/addons/mod_perl-1.99_07/t/logs/access_log
  28:
  29:  ServerAdmin nobody@localhost


You miss mod_log_config.c, see the next answer


  C. NOTE!

  I have gone backwards! My previous incarnations of mod_perl install
  have gotten further than this. My change - configured Apache with 'all'
  modules:


 ./configure --enable-layout=SuSE --enable-mods-shared=all --with-mpm=worker


please try first with just:

./configure --with-mpm=worker

as suggested by the docs.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




Re: XML-LibXML-Common in perl 58 repository at theoryx5.

2002-12-02 Thread Randy Kobes
On Mon, 2 Dec 2002, [iso-8859-1] [EMAIL PROTECTED] wrote:

 Hi
 
 when trying to ppm install XML::LibXML::Common
 from http://theoryx5.uwinnipeg.ca/ppms, the new perl58
 repository, I have this error :
 
 error, read a ppd but it is not intended for this build of perl
 (mswin32-x86-multi-thread)
 
 I have active state perl58 installed and successfully installed
 other modules from this repository.

Sorry about that - the ARCHITECTURE in the .ppd file wasn't set
properly, which has now been fixed. This particular package
contains a post-install script which installs the needed
libxml2.dll - if that doesn't work, grab the accompanying .tar.gz
under the x86/ subdirectory which, when unpacked, has this dll.

-- 
best regards,
randy




[mp2.0]make test problems

2002-12-02 Thread Beau E. Cox

-8-- Start Bug Report 8--
1. Problem Description:

  A. Apache 2.0.43:

  ./configure --enable-layout=SuSE --with-mpm=worker
  make
  make install
  -- hokie-dokie --

  B. mod_perl 1.99_07

  perl Makefile.pl MP_AP_PREFIX=/usr/include/apache MP_INST_APACHE2=1

  (that funny include directory is _real_: it's specified in
  the apache config.layout under SuSE. I cleared it before the apache
  configure/build, and it reappeared - looks OK to me).

  C. Apache/Const not found:

  Can't locate Apache/Const.pm in @INC (@INC contains:
Apache-Test/lib /usr/local/addons/mod_perl-1.99_07/Apache-Test/lib
/usr/local/addons/mod_perl-1.99_07/lib
/usr/local/addons/mod_perl-1.99_07/blib/lib
/usr/local/addons/mod_perl-1.99_07/blib/arch
/usr/local/addons/mod_perl-1.99_07/t/../Apache-Test/lib
/usr/local/addons/mod_perl-1.99_07/t/../lib
/usr/local/addons/mod_perl-1.99_07/t/../../lib
/usr/lib/perl5/5.8.0/i586-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
   .) at
/usr/local/addons/mod_perl-1.99_07/t/response/TestApache/subprocess.pm line
12.
  BEGIN failed--compilation aborted at
/usr/local/addons/mod_perl-1.99_07/t/response/TestApache/subprocess.pm
line 12.

  Here is where Const.pm (actually several vertsions of them) is
  in the mod_perl tree (looks like the @INC should have
a --/Apache2/Apache--
  in it) (all below are from /usr/local/addons/mod_perl-1.99_07/):

  blib/lib/Apache2/APR:
-r--r--r--1 root root  160 Apr 11  2001 Const.pm
  blib/lib/Apache2/Apache:
-r--r--r--1 root root  324 Aug 28 16:28 Const.pm
  blib/lib/Apache2/ModPerl:
-r--r--r--1 root root  743 Sep  5 07:07 Const.pm
  xs/APR/Const:
-rw-r--r--1 beau mysql 160 Apr 11  2001 Const.pm
  xs/Apache/Const:
-rw-r--r--1 beau mysql 324 Aug 28 16:28 Const.pm
  xs/ModPerl/Const:
-rw-r--r--1 beau mysql 743 Sep  5 07:07 Const.pm

  D. apache/subprocess test

  ...
  apache/scanhdrs2.ok
  apache/subprocessFAILED tests 1-4
Failed 4/4 tests, 0.00% okay
  apache/write.ok
  ...

  E. apr/perlio

  ...
  apr/os...ok
  apr/perlio...FAILED tests 1-11
Failed 11/11 tests, 0.00% okay
  apr/pool.ok
  ...

  F. t/logs/error_log:

  ...
  END in modperl_extra.pl, pid=7419
  [Mon Dec 02 05:08:24 2002] [notice] Apache/2.0.43 (Unix)
mod_perl/1.99_07-dev Perl/v5.8.0 configured -- resuming normal operations
  [Mon Dec 02 05:08:24 2002] [info] Server built: Dec  2 2002 04:57:53
  [Mon Dec 02 05:08:24 2002] [debug] worker.c(1736): AcceptMutex: sysvsem
(default: sysvsem)
  [Mon Dec 02 05:08:25 2002] [error] server reached MaxClients setting,
consider raising the MaxClients setting
  # Failed test 1 in
/usr/local/addons/mod_perl-1.99_07/t/response/TestApache/subprocess.pm at
line 55
  # Failed test 2 in
/usr/local/addons/mod_perl-1.99_07/t/response/TestApache/subprocess.pm at
line 68
  # Failed test 3 in
/usr/local/addons/mod_perl-1.99_07/t/response/TestApache/subprocess.pm at
line 82
  # Failed test 4 in
/usr/local/addons/mod_perl-1.99_07/t/response/TestApache/subprocess.pm at
line 96
  [Mon Dec 02 05:08:31 2002] [info] [client 127.0.0.1] TestAPI::aplog test
in progress
  [Mon Dec 02 05:08:31 2002] [debug]
/usr/local/addons/mod_perl-1.99_07/t/response/TestAPI/aplog.pm(43):
log_serror test ok
  [Mon Dec 02 05:08:31 2002] [debug]
/usr/local/addons/mod_perl-1.99_07/t/response/TestAPI/aplog.pm(46):
(20007)No time was provided and one was required.: log_serror test 2 ok
  [Mon Dec 02 05:08:31 2002] [debug]
/usr/local/addons/mod_perl-1.99_07/t/response/TestAPI/aplog.pm(49): [client
127.0.0.1] (20007)No time was provided and one was required.: log_rerror
test ok
  [Mon Dec 02 05:08:31 2002] [error] $r-log_error test ok
  [Mon Dec 02 05:08:31 2002] [error] $s-log_error test ok
  [Mon Dec 02 05:08:31 2002] [debug]
/usr/local/addons/mod_perl-1.99_07/t/response/TestAPI/aplog.pm(63):
TestAPI::aplog test done
  [Mon Dec 02 05:08:31 2002] [warn] ApacheApache-warn test ok
  [Mon Dec 02 05:08:31 2002] [warn] $s-warn test ok
  [Mon Dec 02 05:08:38 2002] [error] [client 127.0.0.1] mkdir
/usr/local/addons/mod_perl-1.99_07/t/htdocs/perlio: Permission denied at
/usr/local/addons/mod_perl-1.99_07/Apache-Test/lib/Apache/TestUtil.pm line
128

  [Mon Dec 02 05:08:41 2002] [error] Apache::log_error test ok
  [Mon Dec 02 05:08:52 2002] [error] [client 127.0.0.1] File does not exist:
/usr/local/addons/mod_perl-1.99_07/t/htdocs/nope
  [Mon Dec 02 05:09:00 2002] [info] removed PID file
/usr/local/addons/mod_perl-1.99_07/t/logs/httpd.pid (pid=7420)
  [Mon Dec 02 05:09:00 2002] [notice] caught SIGTERM, shutting down
  END in modperl_extra.pl, pid=7420
  ...

  MaxClients (in t/conf/httpd.conf):
  ...
  IfModule worker.c

Horrible handler memory leak

2002-12-02 Thread Hann, Brian
I'm having a problem with a fairly simple handler eating up resources and I'm 
wondering if there's any easy way to track it down.
 
The handler fetches data from an Oracle database and displays it using 
Template-Toolkit.  Nothing fancy, just some display logic, etc.
 
The thing is, when I try to show all 8000 records the process spirals upwards towards 
500M and it has to be killed.  With smaller amounts of records (~100-1000), the 
process STILL grows by several megs.  There really isn't that much data going through 
other than the sheer amount of records so I'm wondering what's eating the resources.
 
Thanks,
 
Brian Hann



Re: Horrible handler memory leak

2002-12-02 Thread joe
Brian,

Are you trying to read the entire 8000 records into a
single array/hash?  You might try splitting the record
set into pieces and reuse that array/hash.  

-- Joe Palladino

Hann, Brian wrote:

 
 I'm having a problem with a fairly simple handler
 eating up resources and I'm wondering if there's any
 easy way to track it down.
  
 The handler fetches data from an Oracle database and
 displays it using Template-Toolkit.  Nothing fancy,
 just some display logic, etc.
  
 The thing is, when I try to show all 8000 records the
 process spirals upwards towards 500M and it has to be
 killed.  With smaller amounts of records (~100-1000),
 the process STILL grows by several megs.  There really
 isn't that much data going through other than the
sheer
 amount of records so I'm wondering what's eating the
 resources.
  
 Thanks,
  
 Brian Hann



[MP2] Handler feauters in a filter?

2002-12-02 Thread Issac Goldstand
I'm writing a filter in which two lines of data are to be appended to the
content going back.  However, I'd like to test for a 404, and if found set
the response to 200.  Can this be done from the output filters?  Or am I
going to have to do something more complex with a handler?

The big problem is mod_proxy (or any other module, for that matter) - it's
not as simple as checking the file on disk - the content could be coming
from a proxy or from another content-handler.

Any ideas?
  Issac




Re: [RFC] Apache::LDAP

2002-12-02 Thread James G Smith
Chris Winters [EMAIL PROTECTED] wrote:
On Sun, 2002-12-01 at 20:32, James G Smith wrote:
 ( Actually, the name is chosen to `rhyme' with Apache::DBI.  There
 are no dependencies on Apache or mod_perl. )
 
 NAME
 Apache::LDAP - provides persistent LDAP connections

Does this overlap with the ResourcePool series of modules?

Thanks.  I didn't realize that existed.

A search wasn't bringing it up earlier on CPAN, but I probably wasn't
using the right terms.

It looks like it does a lot of what I want plus a bit more.

I think I'll do more browsing of CPAN :/
-- 
James Smith [EMAIL PROTECTED], 979-862-3725
Texas AM CIS Operating Systems Group, Unix