Home / Articles / Adobe ColdFusion / Adobe ColdFusion 9 Web Application Construction Kit, Volume 2: ColdFusion Server Configuration

Adobe ColdFusion 9 Web Application Construction Kit, Volume 2: ColdFusion Server Configuration

  • Sample Chapter is provided courtesy of Adobe Press.
  • Date: Aug 11, 2010.

Chapter Description

This chapter will walk you through each part of the ColdFusion Administrator, explaining important settings and making recommendations along the way.

Debugging and Logging

The Debugging and Logging section of the ColdFusion Administrator provides a set of tools that can help you understand what your applications are doing, where and when any performance bottle-necks are occurring, and whether any error messages are occurring without your knowledge. There is also a rich set of debugging options that make it easier to troubleshoot errors while coding. In short, this section is all about making it easier for you to identify and avoid problems, both during and after the development process.

The Debug Output Settings Page

The Debugging Settings page allows you to customize what exactly appears in the debugging output. This page also lets you monitor the ColdFusion server externally, via the command line or the System Monitor in Windows.

u2192.gif See Chapter 17, "Debugging and Troubleshooting," in Volume 1, to learn about ColdFusion debugging options.

Enable Robust Exception Information

ColdFusion error messages provide lots of useful information about your server and code to help you diagnose problems. Unfortunately, this information may also be useful to hackers trying to gain unauthorized access to your server. As such, this option should be enabled on development machines but not on production servers.

Enable AJAX Debug Log Window

To enable the pop-up Ajax debug window, check this box.

u2192.gif See Chapter 30 to learn about Ajax debugging.

Enable Request Debugging Output

Check this option to enable debugging output. Information about variables, queries, execution times, and more will begin appearing at the bottom of each page processed by ColdFusion. You can customize what information is included in the debugging output.

Custom Debugging Output

You can customize exactly what is included in the debugging output and how it's displayed with the options in this section.

Enable Performance Monitoring

If you're using ColdFusion with Windows, you can monitor the ColdFusion server with the standard Performance Monitor application that comes with Windows. This is the same application that you use to monitor internal Windows processes such as memory management and CPU use, or other Microsoft applications such as IIS or SQL Server.

Check this option to tell ColdFusion to make information available to the Performance Monitor. When enabled, the Performance Object called ColdFusion Server will be available for display and monitoring within the Performance Monitor.

To monitor performance with the Performance Monitor, follow these steps:

  1. Make sure the Enable Debugging option is checked, since it affects all options on this page of the Administrator.
  2. Make sure the Enable Performance Monitoring option is checked.
  3. Launch the Windows Performance Monitor (choose Start > Run > Perfmon) and select ColdFusion from the Performance Object list as the process to monitor. Select All Counters or add individual counters from the list.

The Performance Monitor will show a live graph of the various counters available, such as the number of database interactions per second, the average page execution time, and the number of currently executing page requests. If you wish, you can also add counters from other Performance Objects, such as the IIS object (to monitor the IIS Web server) or the Processor object (to monitor the CPU itself). Use the Help icon on the Performance Monitor toolbar for more information.

Enable CFSTAT

For non-Windows servers, you can use the CFSTAT command-line utility to take the place of the Performance Monitor. It doesn't show up as a nice graph, but it displays the same information.

To use CFSTAT, follow these steps:

  1. Make sure the Enable Debugging option is checked, since it affects all options on this page of the Administrator.
  2. Make sure the Enable CFSTAT option is checked.
  3. Do whatever is appropriate for the operating system you're using to execute the cfstat executable in the /bin folder (under the ColdFusion root). It's helpful to add a command-line switch of 1, so that the statistics will be updated once per second.

The Debugging IP Addresses Page

While ColdFusion's debugging output is certainly helpful to you as a developer, you probably don't want your users or beta testers to see it. You may also want to get rid of it from time to time while you work, to see what your pages will look like without it.

Rather than having to turn the debugging output on or off for the entire server at once, Cold-Fusion allows you to turn it on only for specific IP addresses. This allows you to selectively decide who receives the debugging information. To add an IP address, go to the Debugging IP Addresses page, type it in the IP Address field, and click Add. To remove an IP address, select it from the list and click Remove Selected.

The Debugger Settings Page

ColdFusion provides an Eclipse-based interactive debugger. To use the debugger, you must enable support on this page.

Allow Line Debugging

To turn on Eclipse debugging support, check this box.

Debugger Port

The ColdFusion debugger communicates with ColdFusion on a designated port. By default, this is port 5005, but any port value can be used if needed.

Maximum Simultaneous Debugging Sessions

ColdFusion allows multiple concurrent debugging sessions. Specify the maximum number of sessions needed here.

The Logging Settings Page

ColdFusion keeps detailed log files that can be extremely helpful for monitoring or debugging an application. This page controls how ColdFusion maintains the log files, and allows you to turn on some additional log files that aren't kept by default.

Log Directory

By default, ColdFusion stores all log files in the /logs folder (beneath the ColdFusion root). You can use this option to change the location of the log files.

Maximum File Size

When log files get very large, they can become unwieldy and hard to read. Use this option to set the maximum amount of information to keep in each log file. The default value is 5000 KB. When a log file exceeds this size, its contents are copied into a log archive file. Log archives are the same as the original log files, except that they are given an extension of .1, .2, and so on, instead of .log.

Maximum Number of Archives

A new archive file will be created each time the log file reaches 5000 KB (or whatever you specify). If you don't want an indefinite number of these archive files hanging around forever, you can tell ColdFusion to only maintain a certain number of archives for each log file. By default, a limit of ten archives is used. If, when the actual log file reaches 5000 KB, there are already ten archives present (perhaps application.1 through application.10), the oldest archive file is deleted.

Log Slow Pages

If you enable this option, a special entry in the server.log file will be made for any ColdFusion pages that take longer than the specified number of seconds to execute. You can use this information to identify bottlenecks in your application. (On some operating systems, you may also have an option to use OS logging features.)

Log All CORBA Calls

In you happen to be using CORBA objects in your application, enable this option to have Cold-Fusion log all CORBA interactions to the server.log file.

Enable Logging for Scheduled Tasks

If you are using ColdFusion's built-in task scheduler (see "The Scheduled Tasks Page" section in a moment and Chapter 36, "Event Scheduling"), you can enable this option to have all scheduler-related actions logged to a special log file called scheduler.log.

The Log Files Page

The Log Files page allows you to view and manage all of the log files on your server. Each .log file in the /log folder (or whatever log file location you have specified) is listed. For each log, icons are provided for viewing, downloading archiving, or deleting the log. When viewing a log, you can click the Launch Filter button to launch the Log Viewer filter window.

The Scheduled Tasks Page

ColdFusion has a built-in task scheduler, which allows you to create ColdFusion pages that run every few minutes or hours, or that execute at a certain time of day. Such pages are usually used to do things like sending mail, indexing collections, deleting temporary files that are no longer needed, and other administrative tasks.

u2192.gif For more information about scheduling tasks, see Chapter 36.

The System Probes Page

The System Probes page allows you to set up probes that check to see whether a particular page is executing normally. If not, ColdFusion can send you an email message so that you are among the very first to know when problems occur.

The System Probes page lists all currently defined probes. Icons are provided to edit or delete each probe. There is also a Disable/Enable icon for each probe, which you can use to temporarily turn a probe on or off. Finally, you can use the Run Probe icon to run a probe immediately, rather than waiting for it to run at its normally scheduled time or interval.

Define New Probe

To create a new probe, click the Define New Probe button. The Add/Edit System Probe page appears. This is discussed in further detail in Chapter 47.

System Probe Options

At the bottom of the System Probes page, you will find a number of options to control the way ColdFusion handles notification when a probe finds a problem:

  • Notification Email Recipients. Provide a list of email addresses that ColdFusion should use when sending out a notification that a probe has found a problem. Everyone you specify here will receive a notification about every failed probe.
  • E-mail. Specify a valid email address that ColdFusion's notification messages should use as their from field.
  • Probe.cfm URL. Internally, the probe mechanism needs to be able to execute the Probe.cfm template in the CFIDE folder within your Web server root. If for some reason you need to move the template or place it on a different virtual server, edit the URL accordingly.
  • Probe.cfm Username and Password. If you have used your Web server software to secure access to the Probe.cfm file with a username and password, enter that username and password here.

The Code Analyzer Page

While every effort is made to ensure backwards compatibility with prior versions of ColdFusion, it's always best to check your code before upgrading your server. The Code Analyzer page can help you identify most of the potential compatibility issues ahead of time, before you even try to run your application under ColdFusion.

To run the analyzer, specify the location of the application files you would like to test in the Directory to Analyze field, then click Run Analyzer. If you click the Advanced Options button, you will be able to tell ColdFusion which files to inspect (the default is all .cfm files), which incompatibilities to check for (the default is to check for all incompatibilities), which language elements to check, whether to display only serious problems (the Warn or the Info option), and more.

The License Scanner Page

Every non-Developer Edition of ColdFusion must be licensed. To help the system administrator, the License Scanner page can scan your local network and report the ColdFusion servers present and their license numbers.

5. Server Monitoring | Next Section Previous Section

Adobe Press Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Adobe Press and its family of brands. I can unsubscribe at any time.

Overview

Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Adobe Press products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security

Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children

This site is not directed to children under the age of 13.

Marketing

Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out

Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.adobepress.com/u.aspx.

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links

This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact

Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice

We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020