Results 1 to 1 of 1

Thread: cfdocument timeout - fixing timeout problems with cfdocument

  1. #1

    Default cfdocument timeout - fixing timeout problems with cfdocument

    If you have received the following error:

    The Content Of This Document Process Takes More Than 60000 Milliseconds To Process
    There are a few performance tips include:

    1. If your running a query to gather data for generating the PDF. Verify your query is running quickly, this can be done by:

    • Using a SQL tool to analyze the query, speed.
    • Using cflog to log before and after the query to analyze how quickly the cfquery tag executes.


    2. Eliminate external http calls to include in the document.

    Example 1:
    Code:
    <link rel="stylesheet" type="text/css" href="../css/styles.css">
    Change To
    Code:
    <link rel="stylesheet" type="text/css" src="#ExpandPath('../css/')#styles.css">
    Example 2:
    Code:
    <img src="../../images/client/Logo.jpg" />
    Change To
    Code:
    <img src="#ExpandPath('../../images/client/')#Logo.jpg" />
    3. Tell the JVM server that you're not expecting it to display the information locally. This can dramatically increase performance. Set the following paramater in the JVM config file:
    -Djava.awt.headless=true
    Read more about this argument here.

    NOTE For customers: We have the JVM argument in tip #3 set as a default setting.

    NOTE about FireFox: A bug we found with the Mac FireFox Browser is that the file attempts to be downloaded with the .CFM format instead of being displayed in the browser. One fix would be to write the file to disk.
    Last edited by JonC; June 23rd, 2011 at 01:40 PM.
    Jon Cavanaugh
    ColdFusion Systems Analysts
    Director of Business Development
    ColdFusion Hosting | Windows Hosting | ASP.NET Reseller Hosting | Linux Hosting | Christian Hosting | Railo Hosting

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •