Robin,

 

Thanks, I tried that already and it didn’t affect the memory issues, but I understand your reasoning. I’ll do it this way also.

 

It processes 1250 files in 34 seconds, will be interesting to see how much quicker this will make it (if any).

 

Thanks

 

Regards

Dale Fraser

 


From: [email protected] [mailto:[email protected]] On Behalf Of Robin Hilliard
Sent: Tuesday, 23 May 2006 6:12 PM
To: [email protected]
Subject: [cfaussie] Re: JRUN Servlet Error

 

Dale,

 

You can speed this up by reusing a single instance of your component rather than creating a new one each time e.g at the top of your code:

 

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

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

 

Then in your cfinvoke:

 

Ok,

I’ve fixed this, but for all you people who rely on CF memory management, DON’T!

Here’s the code

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

 

<cfloop query="files">

      <cfinvoke component="com.cogstate.ice" method="decryptFile" returnvariable="myFile">

      </cfinvoke>

      <!--- Get Results --->

            <cfinvokeargument name="data" value="#myFile#" />

     

      <cfinvoke component="com.cogstate.data" method="putResults">

            <cfinvokeargument name="fileName" value="#name#" />

      </cfinvoke>

      <!--- Cleanup --->

      <cfset myStruct = "" />

 

 

 

 

 

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

 

 

 

 

 

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 OfDale Fraser
Sent: Tuesday, 23 May 2006 5:03 PM
To: [email protected]
Subject: [cfaussie] JRUN Servlet Error

 

 

 

 

500 null

 

 

 

 

 


--~--~---------~--~----~------------~-------~--~----~
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