RE: [coldbox:7443] another unrelated coldbox question.

if you have places to ask coldfusion specific questions, let me know.

The CF-Talk list is the largest general ColdFusion out there.
http://www.houseoffusion.com/groups/cf-talk/

My question: Does anyone know how to get the number of running threads & queue threads created by using cfthread?

If you have CF Enterprise, I would start with the server monitor. I haven’t used it much, but I believe it has a place to monitor CFThreads.
If that doesn’t work, you could resort to simply pulling stack traces from the JVM with a tool like SeeFusion.

I realize that both of those methods are manual, but there may be ways to automate them.

And as a last resort, I think you might be able to keep track of your threads manually if you keep a struct or something in the application scope and “register” each thread with a unique GUID or something. Then at the bottom of each thread before it finishes, have it “unregister” itself. After running your app for a bit, you might be able to get an idea of what threads are still running by looking at the data you’ve placed in the application scope.

Thanks!

~Brad