Solved

Out of memory error using XML,XSLT(XALAN)

Posted on 2002-04-17
3
742 Views
Last Modified: 2006-11-17
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..
<br>
Enviromnent:
Windows 2000 server
Weblogic 6.1
XALAN,XERCES
JAXP, DOM


<br><br>
Kindly help..
0
Comment
Question by:hariharann
3 Comments
 
LVL 6

Accepted Solution

by:
wbradney earned 200 total points
ID: 6966047
hariharann,

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.

Regards,
WMB
0
 
LVL 26

Expert Comment

by:rdcpro
ID: 10298187
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.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

rdcpro
EE Cleanup Volunteer
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Strange html entity encoding by tidy 14 85
xpath sql query 2008 8 54
Xsl-fo show PDF when no results are returned 2 18
XML Removal- Powershell 4 26
The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question