You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Matthias Brunner <mb...@blumenstrasse.vol.at> on 2000/05/20 21:47:41 UTC
Strange JServ/Cocoon behaviour (memory leak?)
I have a quite memory-intensive XSP which parses 8 500K XML files with
the Xerces DOMParser (just for testing purposes, will switch to SAX
later) and extracts a specified tag.
In about 40% of the cases I get an internal server error and the
following mod_jserv.log:
(EMERGENCY) ajp12[1]: cannot scan servlet headers (500)
(ERROR) an error returned handling request via protocol "ajpv12"
(EMERGENCY) ajp12: ping: no reply (-1) Please make sure that the
wrapper.classpath is pointing to the correct version of
ApacheJServ.jar
Trying to access a less-memory-intensive script can provoke the same
message (DOM Parsing a 50K file) but not so often.
I just increased the JVM memory to 64M yesterday due to Cocoon's "out of
memory" messages.
BTW: Other Cocoon tasks seem to work well.
Anyone out there with a little help or the same problems?
My system:
AMD K6 350Mhz, 128 MB RAM
SuSE Linux 6.4
Kernel 2.2.15
JDK 1.1.7b / JSDK 2.0
Apache 1.3.9 / JServ 1.1 / Cocoon 1.7.4
$ps auxw:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
wwwrun 597 0.8 2.3 71772 3040 ? S 21:28 0:07
/usr/lib/jdk1.1.7/bin/../bin/i586/green_threads/java_ns -mx64m ...
$free -t:
total used free shared buffers
cached
Mem: 128544 98132 30412 39596 13152
40020
-/+ buffers/cache: 44960 83584
Swap: 136512 5288 131224
Total: 265056 103420 161636
Re: Strange JServ/Cocoon behaviour (memory leak?)
Posted by Donald Ball <ba...@webslingerZ.com>.
Switch to a better JVM. JDK-1.1.7a for Linux is notoriously unstable under
heavy load. Many people IBM's JDK-1.1.8; many others like Blackdown
1.2.2rc4 with Inprise's javacomp JIT.
- donald
On Sat, 20 May 2000, Matthias Brunner wrote:
> I have a quite memory-intensive XSP which parses 8 500K XML files with
> the Xerces DOMParser (just for testing purposes, will switch to SAX
> later) and extracts a specified tag.
>
> In about 40% of the cases I get an internal server error and the
> following mod_jserv.log:
>
> (EMERGENCY) ajp12[1]: cannot scan servlet headers (500)
> (ERROR) an error returned handling request via protocol "ajpv12"
> (EMERGENCY) ajp12: ping: no reply (-1) Please make sure that the
> wrapper.classpath is pointing to the correct version of
> ApacheJServ.jar
>
>
> Trying to access a less-memory-intensive script can provoke the same
> message (DOM Parsing a 50K file) but not so often.
>
>
> I just increased the JVM memory to 64M yesterday due to Cocoon's "out of
> memory" messages.
> BTW: Other Cocoon tasks seem to work well.
>
> Anyone out there with a little help or the same problems?
>
>
> My system:
> AMD K6 350Mhz, 128 MB RAM
>
> SuSE Linux 6.4
> Kernel 2.2.15
> JDK 1.1.7b / JSDK 2.0
> Apache 1.3.9 / JServ 1.1 / Cocoon 1.7.4
>
> $ps auxw:
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> wwwrun 597 0.8 2.3 71772 3040 ? S 21:28 0:07
> /usr/lib/jdk1.1.7/bin/../bin/i586/green_threads/java_ns -mx64m ...
>
> $free -t:
> total used free shared buffers
> cached
> Mem: 128544 98132 30412 39596 13152
> 40020
> -/+ buffers/cache: 44960 83584
> Swap: 136512 5288 131224
> Total: 265056 103420 161636
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>