You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Gaetan Zoritchak <g....@bs-factory.com> on 2003/09/22 12:32:17 UTC
Memory leak using Axis in OC4J
Hi,
I'm using axis inside OC4J.
My service is stateless and uses a class that delegates the treatments
to a stateless EJB. The EJB performs select statement on a database (
Oracle 9i) and callableStatement to call a stored procedure.
I made some profiling using JMeter. When I launch my test with a single
thread I have no memory leak. When I launch it with 4 threads I have
memory leaks on the last 3 threads. In that case, all the objects used
during the request are leaking ( axis objects, my objects, ...).
It seems that the problem is due to the SAX parser. When I force OC4J to
use xerces the memory leak disappear. I don't know if it is an Axis
bug or a bug in the oracle parser (xmlparserv2.jar). To use Axis in
OC4J without any OC4J modification I had to modify the class XMLUtils
and to remove the SAXParser reuse (I ask the ParserFactor a new Parser
to handle each request).
Does the SAXParser require some more cleaning in the
XMLUtils.releaseSAXParser method?
--
Gaetan Zoritchak
Bright Side Factory
http://www.bs-factory.com