On Mon, Sep 09, 2002 at 11:50:41AM +0200, Pavel Penchev wrote: > 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.
We use here PerlModule Apache::Resource PerlSetEnv PERL_RLIMIT_AS 24 PerlChildInitHandler Apache::Resource which makes memory consumption somehow controllable. In the case below I publish larger DocBooks and see leaks > 200kb.... Even with the small examples below I look at size(bytes) ---------------------------------------------------------------------------------- 8470528 at /usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XPathScript.pm line 32. 8474624 at /usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XPathScript.pm line 32. 8486912 at /usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XPathScript.pm line 32. 8503296 at /usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XPathScript.pm line 32. 8507392 at /usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XPathScript.pm line 32. 8523776 at /usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XPathScript.pm line 32. There seem to be at least two bigger consumers: One inside the handler(): before parse dom at /usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XPathScript.pm line 63. SIZE: 8646656 at /usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XPathScript.pm line 64. after getting XML source at /usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XPathScript.pm line 84. SIZE: 8654848 at /usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XPathScript.pm line 67. and one somewhere outside the XPathScript handler(). Is it better to look at my current setup or at the AxKit code? \rho > ----- 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
