12 Replies Latest reply on Dec 26, 2009 8:10 AM by BKBK

    CFC memory leak? Why is this happening? Simple CFC running out of memory...

    Wimpie Level 1

      Take a look at this, a very simple cfm and cfc. Start the cfm, which calls the cfc thousands of times. Look at the JVM memory usage: it climbs up and up till ColdFusion slows down and halts with an out of memory error after about ten minutes. I haven't got a clue on how to resolve this...




      <cfsetting enablecfoutputonly="Yes" requesttimeout="10000">
      <cfset functions=createobject("component","test")>
      <cfloop from="1" to="50000" index="i">
        <cfset returnArray=functions.remoteDataGet()>





      <cffunction name="remoteDataGet" access="remote" output="false" returntype="query">
        <cfreturn querynew('test','Integer')>