0
cfmodule threads

/t5/coldfusion-discussions/cfmodule-threads/td-p/922982
Apr 30, 2008
Apr 30, 2008
Copy link to clipboard
Copied
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
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/coldfusion-discussions/cfmodule-threads/m-p/922983#M84813
May 01, 2008
May 01, 2008
Copy link to clipboard
Copied
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

