Request Tuning

Configure request queue, threading, and concurrent request handling

Overview

The Request Tuning page controls how ColdFusion processes concurrent requests and manages its thread pool. These settings directly impact server capacity, resource utilization, and overall performance under load. Proper configuration based on your hardware, application characteristics, and traffic patterns is essential for optimal server performance.

Concurrent Request Settings

Control how many requests ColdFusion can process simultaneously and how requests are queued.

Maximum Number Of Simultaneous Template Requests

PurposeNumber of CFML page requests that can be processed concurrently
Default25 (see the defaults note under Request-Specific Limits)
EditionThis is the only request limit Standard Edition can adjust; Enterprise can adjust each request type independently
CPU-Bound Apps2-4x number of CPU cores
I/O-Bound AppsCan be set much higher (100-300)
ImpactRequests beyond this limit wait in a queue until a slot frees up or the queue timeout expires
Best Practice: Each request typically consumes 1-10 MB of memory. Start conservative and increase based on load testing results.

Timeout Requests Waiting In Queue After n Seconds

PurposeMaximum time (seconds) a request can wait in queue
ImpactRequests that wait in the queue beyond this limit time out
Constraint: Adobe states this value must be at least as long as the Request Timeout setting on the Settings page.

Request Queue Timeout Page

PurposeRelative path to an HTML page sent to clients whose requests time out in the queue before they run. The page cannot contain CFML.
If BlankClients receive a 500 Request Timeout error
RecommendationSet a static, user-friendly HTML page
Example/errors/queue-timeout.html
Content Ideas: Explain that the server is experiencing high load, suggest trying again in a few moments, and provide alternative navigation options or contact information.

Request Throttling Settings

Limit how much memory large requests can consume at the same time. Adobe documents these two options on the Server Settings > Settings page, not on Request Tuning.

Request Throttle Threshold

PurposeRequests smaller than this limit are not queued or counted as part of total throttle memory. Larger requests are counted and are queued if the throttle memory size is exceeded.
Default4 MB
Best Practice: Throttling limits how much memory large requests can consume at once, which protects the server from oversized POSTs and upload floods.

Request Throttle Memory

PurposeLimits total memory size for the throttle
Default200 MB
ImpactIf sufficient total memory is not available, ColdFusion queues requests until enough memory is free
Defaults: Verified in the ColdFusion 2025 Update 14 configuration (neo-runtime.xml, keys throttle-threshold and total-throttle-memory) shipped in Adobe's official Docker image.

Request-Specific Limits

Set separate concurrent request limits for different types of operations. These limits are adjustable only in Enterprise Edition.

Flash Remoting Requests

Recommendation
0 (legacy, use REST APIs instead)

Flash and Flex removed in ColdFusion 2025. Adobe removed all remaining Flash and Flex jars in the 2025 release, and BlazeDS has been unsupported since 2021. Adobe's Administrator documentation still lists this field.

Web Service Requests

Default
5
Recommendation
Set based on SOAP usage patterns

SOAP web service calls are often slower than regular requests. Consider REST APIs for better performance.

CFC Function Requests

Default
15
Recommendation
25-100 for heavy API usage

CFC methods requested through HTTP, such as AJAX calls and API endpoints. Does not affect CFC methods called from CFML. Lower values help prevent API abuse.

Report Threads

Default
8
Recommendation
Keep low (3-5), use async generation

Maximum number of ColdFusion reports processed concurrently. Report generation is resource-intensive; schedule large reports for off-peak hours.

Defaults: Template 25, Web Service 5, CFC Function 15, Report Threads 8, and CFTHREAD 10 are verified in the ColdFusion 2025 Update 14 configuration (neo-runtime.xml, keys requestLimit, webserviceLimit, CFCLimit, numSimultaneousReports, and cfthreadpool) shipped in Adobe's official Docker image. The file holds a single value for each limit, not separate values per edition, and has no Flash Remoting limit key.

Thread Pool Settings

Configure thread pool limits for asynchronous processing with cfthread.

Maximum Number Of Threads Available For CFTHREAD

PurposeMaximum number of cfthread threads that run concurrently
Default10 (see the defaults note under Request-Specific Limits)
EditionStandard Edition limits the cfthread pool to 10 threads; Enterprise is unlimited
Recommendation25-100 for applications using async processing (Enterprise)
ImpactAdditional threads beyond limit are queued
Use CaseBackground processing, parallel operations, async tasks
Memory Consideration: Each thread consumes memory (typically 1-5 MB). Balance concurrency needs with available memory.

Calculating Optimal Settings

Use these formulas as starting points based on your application characteristics.

CPU-Bound Applications

Characteristics
Complex calculations, heavy business logic, minimal database calls
Formula
Max Requests = CPU Cores × 2 to 4
Example
8-core server = 16-32 concurrent requests

CPU becomes bottleneck. Too many threads cause context switching and degrade performance.

I/O-Bound Applications

Characteristics
Database queries, web service calls, file operations
Formula
Max Requests = CPU Cores × 10 to 50
Example
8-core server = 80-400 concurrent requests

Threads spend time waiting for I/O, allowing server to handle more concurrent work efficiently.

Hybrid Applications

Characteristics
Most common - mix of CPU and I/O operations
Starting Point
Max Requests = CPU Cores × 5 to 10
Example
8-core server = 40-80 concurrent requests

Adjust based on load testing and monitoring. This is the most common application profile.

Memory Constraints

Formula
Max = (Heap - Overhead) / Avg Request Memory
Example
4 GB heap, 500 MB overhead, 5 MB/request = 700 theoretical max
Reality
Set 20-40% of theoretical max for stability

Always leave headroom for GC and memory spikes. Monitor heap usage under peak load.

Best Practices

Production Environment

  • Start with conservative limits based on CPU cores
  • Perform load testing to determine optimal concurrent request limit
  • Enable request throttling to protect against overload
  • Keep the queue timeout at least as long as the request timeout, as Adobe requires
  • Monitor queue depth, request wait times, and rejection rates
  • Keep Flash Remoting and Report limits low (or disabled if unused)
  • Allocate sufficient memory per thread (monitor heap usage)
  • Create custom timeout pages for better user experience

Development Environment

  • Higher request limits for testing concurrent scenarios
  • Longer timeouts to accommodate debugging
  • Match production settings when performing load testing
  • Test timeout and rejection behavior before production deployment

Security Considerations

  • Lower concurrent limits help prevent resource exhaustion attacks
  • Set conservative CFC function limits to prevent API abuse
  • Monitor for unusual request patterns indicating attacks
  • Enable request throttling to mitigate denial-of-service attempts
  • Log rejected requests for security analysis

Performance Tuning

  • Use load testing tools (JMeter, LoadRunner) to determine optimal settings
  • Monitor CPU utilization - should be 70-80% under peak load
  • Track request queue depth - should rarely exceed 10-20
  • Measure response times at various concurrent request levels
  • Identify optimal point before performance degrades
  • Leave 20-30% headroom for traffic spikes
  • Retest after application changes or infrastructure upgrades

Common Issues and Solutions

Request Rejected Errors

Symptom: Users receiving request timeout errors or the request queue timeout page
Solutions:
  • Cause: Requests waited in the queue longer than the queue timeout because all simultaneous request slots were busy
  • Short-term: Increase the simultaneous request limit or the queue timeout
  • Long-term: Optimize slow requests, add more servers, implement caching
  • Analysis: Identify slow requests causing queue backup

High CPU with Low Throughput

Symptom: CPU at 90-100% but request throughput is low
Solutions:
  • Cause: Too many concurrent requests causing context switching
  • Solution: Reduce maximum concurrent requests
  • Target: CPU should be 70-80% under peak load for optimal performance

Request Queue Timeouts

Symptom: Requests timing out while waiting in queue
Solutions:
  • Cause: Request processing too slow or concurrent limit too low
  • Solution: Optimize slow requests or increase concurrent limit
  • Analysis: Use FusionReactor or PMT to identify bottlenecks

Memory Exhaustion

Symptom: OutOfMemoryError or GC overhead limit exceeded
Solutions:
  • Cause: Too many concurrent requests for available heap
  • Solution: Reduce concurrent limits or increase heap size
  • Formula: Ensure (Max Requests × Avg Request Memory) less than 60% of heap

Slow Response Times Under Load

Symptom: Response times increase significantly during peak traffic
Solutions:
  • Cause: Request queue building up, insufficient capacity
  • Solution: Optimize application code, increase concurrent limits, add servers
  • Monitoring: Track response time percentiles (p50, p95, p99)

Load Testing Strategy

Testing Methodology

  1. Baseline Test: Measure performance with conservative settings
  2. Incremental Increase: Gradually increase concurrent requests
  3. Monitor Metrics: Track CPU, memory, response times, queue depth
  4. Identify Peak: Find optimal concurrent requests before degradation
  5. Add Buffer: Set production limit 20-30% below peak
  6. Validate: Confirm stability over extended duration

Key Metrics to Monitor

  • Response Time: p50, p95, p99 percentiles
  • Throughput: Requests per second
  • CPU Utilization: Target 70-80% under load
  • Memory Usage: Heap utilization and GC frequency
  • Queue Depth: Average and peak queue size
  • Rejection Rate: Percentage of rejected requests
  • Error Rate: Timeouts and application errors

Load Testing Tools

  • Apache JMeter: Free, powerful, widely used
  • LoadRunner: Enterprise solution with advanced features
  • Gatling: Code-based load testing
  • Artillery: Modern, YAML-based configuration
  • k6: Open source, script-based load testing in JavaScript

Monitoring and Alerting

Critical Alerts

  • Request queue depth exceeds 50% of maximum
  • Request rejection rate above 1%
  • Average request wait time exceeds 1 second
  • CPU sustained above 85% for 5+ minutes
  • Memory throttling activated

Monitoring Tools

  • FusionReactor: Real-time request monitoring, thread analysis
  • Performance Monitoring Toolset (PMT): Adobe monitoring tool, installed separately
  • New Relic / AppDynamics: APM solutions with alerting
  • Prometheus + Grafana: Custom metrics and dashboards
  • CloudWatch / Azure Monitor: Cloud-native monitoring

Related Resources

Request Tuning | ColdFusion Administrator | CFGuide