Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Improve ColdFusion Performance by tuning the Connector and using ColdFusion-Tomcat Logging

1,771 views

Published on

Improve ColdFusion Performance by tuning the Connector and using ColdFusion-Tomcat Logging

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Improve ColdFusion Performance by tuning the Connector and using ColdFusion-Tomcat Logging

  1. 1. Improve ColdFusion Performance by tuning the Connector and using ColdFusion-Tomcat Logging Milan & Mike
  2. 2. Loss??
  3. 3. Loss of 8 hours
  4. 4. Crucial CF Web Server Connector
  5. 5. Crucial CF Web Server Connector
  6. 6. Crucial CF Web Server Connector
  7. 7. Crucial CF Web Server Connector
  8. 8. Performance ▪Tuning Connector ▪Re-configuration ▪ColdFusion-Tomcat Logging
  9. 9. Tuning ▪Connection Pool ▪Mappings ▪Buffering
  10. 10. Properties
  11. 11. Properties
  12. 12. Tuning ▪Connection pool ▪ Mappings ▪ Buffering
  13. 13. Tuning ▪Connection pool ▪ Mappings ▪ Buffering
  14. 14. Tuning ▪Connection pool ▪ Mappings ▪ Buffering
  15. 15. Connection Pool
  16. 16. Connection Pool CF Web Server Connector
  17. 17. Connection Pool CF Web Server Connector Tomcat Connection-pool Connector Connection-pool
  18. 18. Connection Pool ▪Pool size
  19. 19. Connection Pool ▪Pool size ?
  20. 20. Connection Pool ▪Pool size ? ▪Server Scalability ▪Scalability needs
  21. 21. Connection Pool ▪Pool size = 1000 ▪Server Scalability = 2000 ▪Scalability needs = 700-800
  22. 22. Connection Pool ▪Pool size = 1500 ▪Server Scalability = 1500 ▪Scalability needs = 2000+
  23. 23. Connection Pool ▪Pool size
  24. 24. Connection Pool ▪Pool size worker.cfusion.connection_pool_size
  25. 25. Connection Pool CF Web Server Connector Tomcat Connection-pool Connector Connection-pool
  26. 26. Connection Pool CF Web Server Connector Tomcat Connection-pool Connector Connection-pool
  27. 27. Connection Pool ▪Pool size ▪Reuse Connection
  28. 28. Connection Pool ▪Pool size = 1000 ▪Reuse Connection = 1000
  29. 29. Connection Pool CF Web Server Connector Tomcat Connection-pool Connector Connection-pool
  30. 30. Connection Pool CF Web Server Connector Tomcat Connection-pool Connector Connection-pool All / One
  31. 31. Connection Pool CF Web Server Connector Tomcat Connection-pool Connector Site One Site Two
  32. 32. Connection Pool CF Web Server Connector Tomcat Connection-pool Connector Site One Site Two
  33. 33. Connection Pool ▪Pool size = 1000 ▪Reuse Connection = 900 ▪Pool size = 100 ▪Reuse Connection = 0-100 Site One Site Two
  34. 34. Connection Pool ▪Pool size ▪Reuse Connection worker.cfusion.max_reuse_connection
  35. 35. Connection Pool ▪Pool size ▪Reuse Connection ▪Timeout = 60 (30 – 60)
  36. 36. Connection Pool ▪Pool size ▪Reuse Connection ▪Timeout worker.cfusion.connection_pool_timeout
  37. 37. Tuning ▪Connection pool ▪ Mappings ▪ Buffering
  38. 38. Tuning ▪Connection pool ▪ Mappings ▪ Buffering
  39. 39. Mappings ▪/rest/* = cfusion ▪/*.cfm = cfusion
  40. 40. Mappings ▪/rest/* = cfusion ▪/*.cfm = cfusion
  41. 41. Mappings ▪/rest/* = cfusion ▪/*.cfm = cfusion ▪ worker.cfusion.max_pool_size
  42. 42. Mappings CF cfusion Web Server Connector
  43. 43. Mappings CF cfusion Web Server Connector cfusion
  44. 44. Mappings ▪/rest/* = cfusion ▪/*.cfm = cfusion ▪ worker.cfusion.max_pool_size
  45. 45. Mappings cfusion instance1 Web Server Connector cfusion1 instance2 REST
  46. 46. Mappings ▪/rest/* = cfusion ▪/*.cfm = cfusion ▪/rest/* = cfusion1 ▪/*.cfm = cfusion1
  47. 47. Mappings cfusion instance1 Web Server Connector cfusion1 instance2 cfusion1 cfusion
  48. 48. Mappings ▪/rest/* = cfusion ▪/*.cfm = cfusion ▪/rest/* = cfusion1 ▪/*.cfm = cfusion1
  49. 49. Mappings ▪/*.cfm = cfusion ▪/rest/* = cfusion1
  50. 50. Tuning ▪Connection pool ▪ Mappings ▪ Buffering
  51. 51. Tuning ▪Connection pool ▪ Mappings ▪ Buffering
  52. 52. Buffering
  53. 53. Buffering
  54. 54. Buffering
  55. 55. Buffering ▪Enable buffering
  56. 56. Buffering ▪Enable buffering iis_buffer_enable = true
  57. 57. Tuning ▪Connection pool ▪ Mappings ▪ Buffering
  58. 58. Performance ▪Tuning Connector ▪Re-configuration ▪ColdFusion-Tomcat Logging
  59. 59. Re-Configuration
  60. 60. Re-Configuration ▪Removing Connector ▪ Installing Connector
  61. 61. Re-Configuration ▪Removing Connector
  62. 62. Re-Configuration ▪Removing Connector
  63. 63. Re-Configuration ▪Removing Connector ▪ Installing Connector
  64. 64. Re-Configuration ▪Removing Connector ▪ Installing Connector
  65. 65. Re-Configuration ▪Removing Connector ▪ Installing Connector Lost custom changes
  66. 66. Re-Configuration ▪Backup ▪Removing Connector ▪ Installing Connector
  67. 67. Re-Configuration ▪Backup ▪Removing Connector ▪Automatic Backup ▪ Installing Connector
  68. 68. Removing Connector
  69. 69. Removing Connector
  70. 70. Removing Connector
  71. 71. Automatic Backup
  72. 72. Installing Connector
  73. 73. Installing Connector
  74. 74. Installing Connector
  75. 75. Backup directory
  76. 76. Backup directory
  77. 77. Backup directory
  78. 78. Re-Configuration ▪Removing Connector ▪Automatic Backup ▪ Installing Connector
  79. 79. Performance ▪Tuning Connector ▪Re-configuration ▪ColdFusion-Tomcat Logging
  80. 80. ColdFusion-Tomcat Logging Logs are the key to troubleshooting and tuning
  81. 81. ColdFusion-Tomcat Logging One of the biggest differences from JRun to Tomcat occurred in Logging. Directory structure change  Std JRun C:ColdFusion9cfusionlogs & C:ColdFusion9cfusionruntimelogs  Enterprise C:JRun4logs & C:JRun4Serverscfusioncfusion.earcfusion.warWEB- INFcfusionlogs  C:ColdFusion11cfusionlogs
  82. 82. ColdFusion-Tomcat Logging One of the biggest differences from JRun to Tomcat occurred in Logging. Java Logger Change  JRun used log4j  ColdFusion on Tomcat uses Java Commons Logging (JCL)  log4j is far more configurable than JCL
  83. 83. ColdFusion-Tomcat Logging Log setting control  Tomcat setting files  C:ColdFusion11cfusionruntimeconfcatalina.properties (jar file scanning)  C:ColdFusion11cfusionjettyjreliblogging.properties  C:ColdFusion11cfusionjnbridgejreliblogging.properties  C:ColdFusion11cfusionruntimeconflogging.properties  C:ColdFusion11jreliblogging.properties  ColdFusion settings file  C:ColdFusion11cfusionlibneo-logging.xml
  84. 84. Performance ▪Tuning Connector ▪Re-configuration ▪ColdFusion-Tomcat Logging
  85. 85. Questions ▪ blogs.coldfusion.com ▪ cfml.slack.com – adobe ▪ milanchandnacf.blogspot.com Thank you – by Milan & Mike

×