Server Settings - Settings
Configure general server settings and request handling behavior
Overview
The Server Settings page contains fundamental configuration options that control how ColdFusion handles requests, errors, and missing templates. These settings affect global server behavior and should be configured carefully based on your application requirements and environment.
Request Settings
Control how ColdFusion processes and manages incoming requests.
Timeout Requests After (seconds)
Development: 120+ seconds for debugging
Batch Processing: Higher timeouts as needed
<cfsetting requestTimeout="value"> to override timeout for specific pages that require longer execution (e.g., reports, batch operations).Use UUID for cftoken
Enable Per App Settings
isPerAppSettingsEnabled) shipped in Adobe's official Docker image.Application.cfc/Application.cfm Lookup Order
Until webroot: current directory, then parent directories up to the webroot
In webroot: current directory, then the webroot
Missing Template Handler
Configure how ColdFusion handles missing templates and errors.
Missing Template Handler Path
/errors/404.cfm- Log 404 errors for analysis (detect broken links, security probes)
- Provide search functionality to help users find content
- Suggest similar or related pages
- Include navigation to main sections
- Set proper 404 HTTP status code:
<cfheader statuscode="404">
Example Missing Template Handler
Basic 404.cfm showing core functionality:
<!--- /errors/404.cfm --->
<cfscript>
// Set 404 HTTP status code
cfheader(statuscode="404", statustext="Not Found");
// Log the 404 error
writeLog(
file="404-errors",
type="warning",
text="404: #cgi.script_name# from #cgi.http_referer#"
);
</cfscript>
<!DOCTYPE html>
<html>
<head>
<title>Page Not Found</title>
</head>
<body>
<h1>404 - Page Not Found</h1>
<p>The requested page could not be found.</p>
<p><a href="/">Return to Homepage</a></p>
</body>
</html><!--- /errors/404.cfm --->
<cfheader statuscode="404" statustext="Not Found">
<cflog
file="404-errors"
type="warning"
text="404: #cgi.script_name# from #cgi.http_referer#">
<!DOCTYPE html>
<html>
<head>
<title>Page Not Found</title>
</head>
<body>
<h1>404 - Page Not Found</h1>
<p>The requested page could not be found.</p>
<p><a href="/">Return to Homepage</a></p>
</body>
</html>- HTTP Status: Always set 404 status code for proper SEO
- Logging: Log 404 errors to identify broken links
- User-Friendly: Provide clear message and link back to homepage
- SEO: Review 404 logs regularly to fix broken links
Site-wide Error Handler Path
/errors/error.cfm- Log complete error details (message, stack trace, request variables) server-side
- Display generic, user-friendly error message
- Send email notifications for critical errors
- Include request ID for support troubleshooting
- Set proper 500 HTTP status code
- Avoid complex logic in error handler (keep it simple to prevent recursive errors)
Example Error Handler Template
Basic error.cfm showing core functionality:
<!--- /errors/error.cfm --->
<cfscript>
// Generate tracking ID
errorID = createUUID();
// Set 500 HTTP status code
cfheader(statuscode="500", statustext="Internal Server Error");
// Log the error
writeLog(
file="application-errors",
type="error",
text="Error ID: #errorID# | #error.message# | Template: #cgi.script_name#"
);
</cfscript>
<!DOCTYPE html>
<html>
<head>
<title>System Error</title>
</head>
<body>
<h1>System Error</h1>
<p>An error occurred while processing your request.</p>
<p>Error ID: <cfoutput>#errorID#</cfoutput></p>
<p><a href="/">Return to Homepage</a></p>
</body>
</html><!--- /errors/error.cfm --->
<cfset errorID = createUUID()>
<cfheader statuscode="500" statustext="Internal Server Error">
<cflog
file="application-errors"
type="error"
text="Error ID: #errorID# | #error.message# | Template: #cgi.script_name#">
<!DOCTYPE html>
<html>
<head>
<title>System Error</title>
</head>
<body>
<h1>System Error</h1>
<p>An error occurred while processing your request.</p>
<p>Error ID: <cfoutput>#errorID#</cfoutput></p>
<p><a href="/">Return to Homepage</a></p>
</body>
</html>- Security: Never display stack traces or error details to end users
- Tracking: Use unique error IDs to help support troubleshoot issues
- Logging: Log errors to dedicated files for analysis
- HTTP Status: Always set 500 status code for server errors
- User-Friendly: Display simple, helpful messages with next steps
Request Queue Settings
Control request size limits and throttling behavior.
Maximum Size of Post Data
- Must be larger than your largest expected file upload
- Balance between functionality and security
- For large file uploads, consider alternative approaches (chunked uploads, S3 direct upload)
- Monitor for large POST attempts in logs
Request Throttle Threshold
Request Throttle Memory
throttle-threshold and total-throttle-memory) shipped in Adobe's official Docker image.Request Limits
Concurrent request limits are configured on Server Settings > Request Tuning, not on this page. They are summarized here for reference. In Standard Edition, only the CFM page request limit is adjustable.
Simultaneous Template Requests
- Default
- 25
- Recommendation
- 2-4x CPU cores, test under load
Number of CFML page requests processed concurrently. Requests beyond the limit are queued.
Web Service Requests
- Default
- 5
- Recommendation
- Based on SOAP usage patterns
SOAP web service invocations are often slower than regular requests.
CFC Function Requests
- Default
- 15
- Recommendation
- Based on API usage, lower for security
CFC methods requested over HTTP. Does not affect CFC calls made from CFML.
Report Threads
- Default
- 8
- Recommendation
- Keep low (3-5), use async generation
Maximum number of ColdFusion reports processed concurrently. Reports are resource-intensive.
requestLimit, webserviceLimit, CFCLimit, and numSimultaneousReports) shipped in Adobe's official Docker image. The file holds a single value for each limit, not separate values per edition.Other Security-Relevant Settings
- Enable Global Script Protection
- Blocked file extensions for CFFile uploads
- Allowed file extensions for CFInclude
- Maximum number of POST request parameters (Source: ColdFusion 2025 Lockdown Guide)
- Disable creation of unnamed applications
- Disable access to internal ColdFusion Java components
There is no default template encoding setting here. ColdFusion identifies a page's encoding from its byte order mark, if any, otherwise from the system default encoding. You can declare it per page with<cfprocessingdirective pageEncoding>; a value that conflicts with the byte order mark causes an error.
Common Issues & Solutions
Request Timeout Errors
- Increase global timeout setting (temporary fix)
- Use
<cfsetting requestTimeout>for specific long-running pages - Optimize slow database queries (use query analyzer)
- Profile code to identify performance bottlenecks
- Consider asynchronous processing for long operations
Request Queue Full
- Increase concurrent request limit (if resources available)
- Add more servers and load balance
- Optimize slow requests (often root cause)
- Implement caching to reduce database load
- Lower Request Throttle Threshold or Request Throttle Memory so large requests queue instead of competing for heap
Out of Memory Errors
java.lang.OutOfMemoryError, request failures under load- Review Request Throttle Memory and Maximum Size of Post Data so large uploads cannot exhaust the heap
- Increase JVM heap size if physical RAM available
- Reduce concurrent request limits to match available memory
- Fix memory leaks in application code
- Monitor memory usage and set alerts