Optimizing, Tuning, & Scaling ColdFusion

How many threads is the right number? It depends.

ColdFusion Scales Easily

Proper thread management is critical for ColdFusion performance. "Hung" threads pose significant risks, and thread queuing serves as a critical server protection mechanism.

Built-in ColdFusion Monitoring Tools

1. CFSTAT

  • Enable CFSTAT in Debugging & Logging > Debug Output Settings (server configuration only), then restart ColdFusion
  • Command-line tool for real-time metrics
  • Shows running requests, queued requests, timed-out requests, page hits per second, and database accesses per second

2. Request Tuning

  • Server Settings > Request Tuning sets the maximum number of simultaneous template, CFC, web service, and CFTHREAD requests
  • Requests beyond those limits are queued, and queued requests can time out

Third-Party Monitoring Tools

1. FusionReactor

  • Web metrics visualization
  • Detailed logging
  • Java performance monitoring

2. SeeFusion

  • Server performance analysis
  • Database logging capabilities
  • Enterprise-level monitoring

Key Performance Monitoring Strategies

  • Enable CFSTAT for real-time request metrics
  • Check connector port settings
  • Monitor thread busy metrics
  • Analyze logs during performance issues
  • Use profiling tools sparingly

Recommended Actions

  • Configure JVM logs
  • Use built-in and third-party monitoring tools
  • Regularly check thread and memory metrics
  • Investigate external resource interactions causing thread hangs

Additional Help

Stuck? Convective can help with thread optimization and ColdFusion performance tuning. We've been doing it for over 20 years.

Find out more
Optimizing, Tuning, & Scaling ColdFusion - Threading Configuration | CFGuide