Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cached scripting engines & Memory

Status
Not open for further replies.

jimny

Technical User
Oct 18, 2002
52
US
I have general question regarding cached scripting engines & memory usage. We are running IIS5 with windows 2000 server. I have this one app that we launched 3-4 weeks ago, that a specific object genreates a "object required" error message about 5% of the time. When asking someone, they suggested that I am running out of scripting engines ( the app is not releasing the objects), but when I think about it, why would it do it for one specific object. I created an include file that sets every object that I create in the app to "nothing" and include on the bottom of every page. When I run the performance monitor, the Cached scripting engines keep climbing (we are at 86) and the memeory usage as well. Is this an issue? and if it is, what is the remedy? The object that generates the error message is in bold:

Set XMLDoc = Server.CreateObject("MSXML.DOMDocument")
XMLDoc.loadXML(ResponseXML)
Set TopNode = XMLDoc.firstChild
if (TopNode.hasChildNodes()) and not(TopNode is nothing) then
If TopNode.NodeName = "rca_response" Then
Set ResponseNode = TopNode.firstChild
If Responsenode.NodeName = "response" then

Thanks for any and all,
 
XMLDoc.loadXML(ResponseXML)

It might be possible that the actual text of "ResponseXML" is causing the problem.

Also in looking at your code you might consider a different approach to locating the Node you are interested in. Try using an XPath query. It might prove much more robust.

-pete
 
Palbano,
thanks for the reply!

the portion of the ResponseXML is:

<rca_response>
<response type=&quot;submit_ad&quot;>
<field name=&quot;source&quot;>Online Ads</field>
<field name=&quot;adtaker&quot;>Online User</field>


I am not that familiar with XML, this is created from an app that I interface with, but it seems the response text is simple enough. The &quot;<response>&quot; is as deep as I go in to the ResponseXML(I check for an &quot;<error>&quot; node as well). Do you know of any existing problems with creating the &quot;MSXML.DOMDocument&quot; or accessing its objects?

Could you point me towards a good reference for &quot;XPath query&quot; ?

thanks a mil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top