Hi,

I had memory leak problems in the past but the problem was XML::LibXML ver1.30 - it 
caused enormous memory consumption. After installing 1.51 (10x to the mailing list for 
the advice) everything is in some reasonable limits.

I still have a growth per process as you say. I did not have the time to hunt it down, 
but I asked my friends working with mod_perl based application sever and they had the 
same problems - growth per request. They solve the issue with MaxRequestsPerChild 
directive so I followed their advice and this is the way I control the process growth.

What sounds interesting to me is that the problem does not appear using XSLT. This 
option I did not test, but I'll do a short test ASAP and I'll let you know. It will be 
great if this issue can be solved.


Regards,

Pavel
  ----- Original Message ----- 
  From: Robert Barta 
  To: [EMAIL PROTECTED] 
  Cc: [EMAIL PROTECTED] 
  Sent: Monday, September 09, 2002 10:17 AM
  Subject: massive memory leak using XPathScript?


  Hi,

  Does this ring a bell with someone? I'm hunting after a considerable
  size growth per request with the following configuration:

  -- httpd.conf ----------------------------

  PerlModule AxKit

  <VirtualHost *>
      ServerName test.it.bond.edu.au

      ServerAdmin rho@....
      DocumentRoot /usr/local/apache/htdocs/test
      DefaultType application/xhtml+xml

      AddType text/xml   .xsp

      SetHandler perl-script
      PerlHandler AxKit
      AxAddStyleMap application/x-xpathscript Apache::AxKit::Language::XPathScript

      <Files *.xsp>
         AxAddProcessor application/x-xsp         .
         AxAddProcessor application/x-xpathscript /rumsti.xps
      </Files>

  </VirtualHost>


  -- The XML document faq.xps --------------

  <?xml version="1.0"?>
  <xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core";
            xmlns:my="http://astma.bond.edu.au/NS/XSP";>
  <my:page>
     <my:body>
     sdfsdf
     </my:body>
  </my:page>
  </xsp:page>

  -- and the XPS rumsti.xps ----------------

  <html>
  <body>testing!</body>
  </html>


  Observations:

    - using an XSLT sheet instead of xpathscript does NOT show the memory leak
    - using NO rumsti.xps and delivering the XSP output does NOT show the leak
    - using XML::LibXML 1.51 1.50 shows the same effect (still my main suspect)
    - using libxml 2.4.23 shows the same effect
    - the amount of leakage is 8 or 12 kb per request with small files but
      can be 100 kb for bigger versions

  Any hint, where I could start debugging is really appreciated!


  -- config (on a Debian machine, but all Perl modules installed via CPAN) --------

  [notice] Apache/1.3.26 (Unix) AxKit/1.6 mod_perl/1.27 configured -- resuming normal 
operations

  compiled with

  root@monad:~# more /usr/local/cpan/build/makepl_args.mod_perl
  APACHE_SRC=/usr/local/src/apache_1.3.26/src/  SSL_BASE=/usr/ \
       APACHE_PREFIX=/usr/local/apache \
       USE_APACI=1 APACI_ARGS=--disable-rule=EXPAT,\
       --disable-module=autoindex,--disable-module=userdir,\
       --disable-module=asis,--disable-module=include,\
       --disable-module=imap,--disable-module=status \
       EVERYTHING=2 DO_HTTPD=1 ALL_HOOKS=1

  root@monad:~# xml2-config --version
  2.4.24
  root@monad:~# perl -MXML::LibXML -e 'print $XML::LibXML::VERSION'
  1.52
  root@monad:~# perl -MAxKit -e 'print $AxKit::VERSION'
  1.6

  \rho

  ---------------------------------------------------------------------
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to