Adobe ColdFusion 8

Using ColdFusion tools to control thread use

The ColdFusion Administrator and Server Monitor let you control the number of active threads, view information about active threads, and end slow or hung threads.

Using the Administrator to limit threads

The Tag Limit Settings section of the ColdFusion Administrator Server Settings > Request Tuning page lets you specify a maximum number of cfthread-started threads that can run at one time. When ColdFusion reaches this maximum, it queues additional cfthread requests and starts the queued threads when running threads end.

Using the Server Monitor to view and end threads

You can use the Server Monitor to view information about active threads and to end threads that might be impairing server performance, as follows:

  • The Server Monitor displays information about all active ColdFusion threads on the Statistics > Active ColdFusion Threads page. Displayed information includes the thread names, pages that started the threads, and the thread processing time. Use this page to manually end any thread.
  • If you select the Enabled option on the Server Monitor Alerts > Alerts Configuration page Unresponsive Server tab, you can specify a threshold based on the number of threads that have been executing longer than a specific time. If the number of threads that have run longer than the Busy Thread Time exceeds the Hung Thread Count, you can have ColdFusion take one or more actions, including ending any threads that have run longer than a specified number of seconds.
  • If you select the Enabled option on the Server Monitor Alerts > Alerts Configuration page Slow Server tab, you can specify an server response time threshold value. If ColdFusion exceeds the threshold, you can have it take one or more actions, including ending any threads that have run longer than a specified number of seconds.

For more information on using the Server Monitor, see the Server Monitor online Help.