Skip to main content
Participant
January 14, 2022
Question

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

  • January 14, 2022
  • 1 reply
  • 218 views

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 has been closed for replies.

    1 reply

    Legend
    January 16, 2022

    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.

     

     

     

    BKBK
    Community Expert
    Community Expert
    January 17, 2022

    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.