Skip to main content
Participant
Jan 14, 2022 10:50 PM UTC
Question

customize Tomcat and CF error page when server/tomcat is down

We have an issue where all threads are used and CF or Tomcat delivers an error message page.
CF times out when database threads hang and displays a Service Not Available message or similar.
When regular threads are used up, Tomcat shows a similar message.
We are working to resolve this but in the meantime we would like to show a custom error page instructing users what happened and where they can continue.

Does anyone know where to find and edit the Tomcat and CF error pages on the following.

CF 11 on Windows

 

Thanks for your help,

Jon K

 

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Legend
    Jan 16, 2022 10:05 PM UTC

    Hi Jon,

     

    While I don't know how to change the CF tomcat error page, why not defined more tomcat threads and longer timeout so to have more available resources?

     

    Edit workers.properties and server.xml files with something like changes EG:

    CF\config\wsconfig\1\workers.properties:

    worker.cfusion.connection_pool_size=1000
    worker.cfusion.connection_pool_minsize=500

     

    CF\cfusion\runtime\conf\server.xml

    !-- begin connector AJP part -->
    maxThreads="1000" minSpareThreads="500"

     

    IIS and CF both need restart to re-read configuration changes.

     

    Side note I guess you are aware CF11 is a long time end of life, so could be running old Java and tomcat versions plus be open to security exploits.

     

    HTH, Carl.

     

     

     

    Translate
    BKBK
    Community Expert
    Community Expert
    Jan 17, 2022 9:27 AM UTC

    Could you please share the error messages that this issue generates? Look in coldfusion-error.log, coldfusion-out.log, exception.log and isapi_redirect.log.

    Also share a printscreen of the error page you're getting. 

    Translate