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

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

    Wimpie Community Member

      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')>