Ok,

 

Not sure what I did the first time, but I was wrong, changing the way I call the components does fix the problem without the need for the variable cleanup.

 

<!--- Get list of files --->

<cfdirectory name="files" directory="#application.config.dataFileRoot#" />

 

<!--- Create object instances --->

<cfset data = "" "com.cogstate.data") />

<cfset ice = createObject("component", "com.cogstate.ice") />

 

<!--- Loop through each file --->

<cfloop query="files">

      <!--- Decrypt File --->

      <cfset myFile = ice.decryptFile("#directory#\#name#") />

     

      <!--- Get Results --->

      <cfset myStruct = data.getResults(myFile) />

     

      <!--- Populate Database --->

      <cfset data.putResults(myStruct, name, receivedDate) />

</cfloop>

 

 

Thanks for everyone’s help.

Regards
Dale Fraser


From: [email protected] [mailto:[email protected]] On Behalf Of Joel Cass
Sent: Tuesday, 23 May 2006 17:39 PM
To: [email protected]
Subject: [cfaussie] Re: JRUN Servlet Error

 

If you're using components / functions, you could try adding output=false to the cfcomponent / cffunction tags..?

 

I'm pretty sure cfsilent works like a custom tag, saving the content but only removing it once the end tag has been processed.

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Dale Fraser
Sent: Tuesday, 23 May 2006 5:34 PM
To: [email protected]
Subject: [cfaussie] Re: JRUN Servlet Error

Yeah,

 

I managed to save the error page to disk, and it’s a whole lot of blank lines.

 

I put a <CFSILENT around my <CFINVOKES but still getting this error.

 

I think it’s a memory issue, I’m reading a lot of text files, and populating a big structure of arrays of structures etc etc.

 

No I’m only creating one per file and reusing the same name, but I don’t think coldfusion is cleaning them up! My memory on JRUN goes for 74m to 500m physical & virtual within about 2 minutes of running this application.

 

How can I force my variables to clean up after each iteration / file.

Regards
Dale Fraser


From: [email protected] [mailto:[email protected]] On Behalf Of Joel Cass
Sent: Tuesday, 23 May 2006 17:24 PM
To: [email protected]
Subject: [cfaussie] Re: JRUN Servlet Error

 

1000+ files = lots of much whitespace / code generated = server memory overload = browser memory overload?

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Dale Fraser
Sent: Tuesday, 23 May 2006 5:03 PM
To: [email protected]
Subject: [cfaussie] JRUN Servlet Error

Hi,

 

I’m getting a weird error, the title of the page says

 

JRUN Servlet Error

 

And the body says in a big bold Font

 

500 null

 

When I run this on a subset of data it works find, so I figure it’s something to do with the 1000+ files I’m processing.

 

I can process all the files in smaller batches, ie 200 at a time.

 

Even more interesting, is when I try to view the source to see if there is anything else strange, IE crashes.

 

Any ideas, I’m off to try it in firefox.

 

Regards
Dale Fraser

 

 




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---

Reply via email to