Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfmodule threads

Guest
Apr 30, 2008 Apr 30, 2008
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
241
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 01, 2008 May 01, 2008
LATEST
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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources