Skip to main content
April 30, 2008
Question

cfmodule threads

  • April 30, 2008
  • 1 reply
  • 265 views
Hi,
We have been having issues with server performance and under heavy load JRun seems to hang. Dumps seem to suggest that the pages that are hanging are waiting for another thread to become available - however the line of code where this occurs always seems to be where a cfmodule is called (not necessarily the same module as this changes all the time.)
My question is: when calling cfmodule does it run under the current thread or is another thread taken from the pool to run the module and then control passed back to the original thread?

Hope I am making myself clear...

Thanks
    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    May 1, 2008
    I expect that the module runs in the same thread as the calling page. After all, modules and custom tags are designed such that, if they set a variable caller.x, then the variable x will at once be available to the calling page. If there were two threads involved, one would have needed to lock or synchronize somewhere.