Out of memory error using XML,XSLT(XALAN)

We are developing a web-application where all the pages in the site are rendered by XSL.<br> ie
When a particular page is requested, data required for that page is formed into a XML tree from the database as DOM document and the XSL file for that page is stored in the DB as text which is also retrieved and from as XSLT sourec and a jsp page will apply the XSLT transformation on the XML... through JAXP-XALAN.<br>
Every page visit increases the memory size (in the weblogic
console) and does not free up.<br>

Now what could be problem,<br>
1. We are using lots of xsl:variables in the XSL file.. is it because of this.. <br>
2. When does a xsl:variable go out of scope or released from memory<br>
3.Is there any way with which we could remove the reslutant XML tree from the memory got out of XSLT on XML<br>
4. Any other way of removing result XML tree..<br>
5. Any methods in XALAN for this..
Windows 2000 server
Weblogic 6.1

Kindly help..
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Wayne BradneyIndependent ConsultantCommented:

Sounds to me like Weblogic is holding a reference to every DOM object you instantiate. I'm not a Weblogic expert, so I can't be of much more help, but you can bet that there's some API mechanism in Weblogic to free up all references after each request is processed.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept wbradney's answer

Please leave any comments here within the next four days.


EE Cleanup Volunteer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.