+ All Categories
Home > Technology > Improve ColdFusion Performance by tuning the Connector and using ColdFusion-Tomcat Logging

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

Date post: 15-Feb-2017
Category:
Upload: coldfusionconference
View: 1,045 times
Download: 3 times
Share this document with a friend
85
Improve ColdFusion Performance by tuning the Connector and using ColdFusion-Tomcat Logging Milan & Mike
Transcript
Page 1: Improve ColdFusion Performance by tuning the Connector and using ColdFusion-Tomcat Logging

Improve ColdFusion Performanceby tuning the Connector and using ColdFusion-Tomcat LoggingMilan & Mike

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

Loss??

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

Loss of 8 hours

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

Crucial

CF WebServerConnector

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

Crucial

CF WebServerConnector

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

Crucial

CF WebServerConnector

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

Crucial

CF WebServerConnector

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

Performance▪ Tuning Connector

▪ Re-configuration

▪ ColdFusion- Tomcat Logging

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

Tuning▪ Connection Pool▪ Mappings▪ Buffering

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

Properties

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

Properties

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

Tuning▪ Connection pool▪ Mappings▪ Buffering

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

Tuning▪ Connection pool▪ Mappings▪ Buffering

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

Tuning▪ Connection pool▪ Mappings▪ Buffering

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

Connection Pool

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

Connection Pool

CF WebServerConnector

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

Connection Pool

CF WebServerConnector

TomcatConnection-pool

ConnectorConnection-pool

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

Connection Pool▪ Pool size

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

Connection Pool▪ Pool size ?

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

Connection Pool▪ Pool size ?

▪Server Scalability▪Scalability needs

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

Connection Pool▪ Pool size = 1000

▪Server Scalability = 2000▪Scalability needs = 700-800

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

Connection Pool▪ Pool size = 1500

▪Server Scalability = 1500▪Scalability needs = 2000+

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

Connection Pool▪ Pool size

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

Connection Pool▪ Pool size

worker.cfusion.connection_pool_size

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

Connection Pool

CF WebServerConnector

TomcatConnection-pool

ConnectorConnection-pool

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

Connection Pool

CF WebServerConnector

TomcatConnection-pool

ConnectorConnection-pool

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

Connection Pool▪ Pool size▪ Reuse Connection

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

Connection Pool▪ Pool size = 1000▪ Reuse Connection = 1000

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

Connection Pool

CF WebServerConnector

TomcatConnection-pool

ConnectorConnection-pool

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

Connection Pool

CF WebServer

Connector

TomcatConnection-pool

ConnectorConnection-pool

All /One

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

Connection Pool

CF WebServer

Connector

TomcatConnection-pool

Connector SiteOne

SiteTwo

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

Connection Pool

CF WebServer

Connector

TomcatConnection-pool

Connector SiteOne

SiteTwo

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

Connection Pool▪ Pool size = 1000▪ Reuse Connection = 900

▪ Pool size = 100▪ Reuse Connection = 0-100

SiteOne

SiteTwo

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

Connection Pool▪ Pool size▪ Reuse Connection

worker.cfusion.max_reuse_connection

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

Connection Pool▪ Pool size▪ Reuse Connection▪ Timeout = 60 (30 – 60)

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

Connection Pool▪ Pool size▪ Reuse Connection▪ Timeout worker.cfusion.connection_pool_timeout

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

Tuning▪ Connection pool▪ Mappings▪ Buffering

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

Tuning▪ Connection pool▪ Mappings▪ Buffering

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

Mappings▪ /rest/* = cfusion▪ /*.cfm = cfusion

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

Mappings▪ /rest/* = cfusion▪ /*.cfm = cfusion

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

Mappings▪ /rest/* = cfusion▪ /*.cfm = cfusion

▪ worker.cfusion.max_pool_size

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

Mappings

CFcfusion

WebServerConnector

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

Mappings

CFcfusion

WebServerConnector

cfusion

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

Mappings▪ /rest/* = cfusion▪ /*.cfm = cfusion

▪ worker.cfusion.max_pool_size

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

Mappings

cfusioninstance1

WebServerConnector

cfusion1instance2

REST

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

Mappings▪ /rest/* = cfusion▪ /*.cfm = cfusion

▪ /rest/* = cfusion1▪ /*.cfm = cfusion1

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

Mappings

cfusioninstance1

WebServerConnector

cfusion1instance2

cfusion1

cfusion

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

Mappings▪ /rest/* = cfusion▪ /*.cfm = cfusion

▪ /rest/* = cfusion1▪ /*.cfm = cfusion1

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

Mappings▪ /*.cfm = cfusion

▪ /rest/* = cfusion1

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

Tuning▪ Connection pool▪ Mappings▪ Buffering

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

Tuning▪ Connection pool▪ Mappings▪ Buffering

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

Buffering

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

Buffering

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

Buffering

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

Buffering▪ Enable buffering

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

Buffering▪ Enable buffering

iis_buffer_enable = true

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

Tuning▪ Connection pool▪ Mappings▪ Buffering

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

Performance▪ Tuning Connector

▪ Re-configuration

▪ ColdFusion- Tomcat Logging

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

Re-Configuration

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

Re-Configuration▪ Removing Connector▪ Installing Connector

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

Re-Configuration▪ Removing Connector

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

Re-Configuration▪ Removing Connector

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

Re-Configuration▪ Removing Connector▪ Installing Connector

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

Re-Configuration▪ Removing Connector▪ Installing Connector

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

Re-Configuration▪ Removing Connector▪ Installing Connector

Lost custom changes

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

Re-Configuration▪ Backup▪ Removing Connector▪ Installing Connector

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

Re-Configuration▪ Backup▪ Removing Connector▪ Automatic Backup▪ Installing Connector

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

Removing Connector

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

Removing Connector

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

Removing Connector

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

Automatic Backup

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

Installing Connector

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

Installing Connector

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

Installing Connector

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

Backup directory

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

Backup directory

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

Backup directory

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

Re-Configuration▪ Removing Connector▪ Automatic Backup▪ Installing Connector

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

Performance▪ Tuning Connector

▪ Re-configuration

▪ ColdFusion- Tomcat Logging

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

ColdFusion-Tomcat Logging

Logs are the key to troubleshooting and

tuning

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

ColdFusion-Tomcat LoggingOne of the biggest differences from JRun to Tomcat occurred in

Logging.Directory structure change Std JRun C:\ColdFusion9\cfusion\logs & C:\ColdFusion9\cfusion\runtime\logs Enterprise C:\JRun4\logs & C:\JRun4\Servers\cfusion\cfusion.ear\cfusion.war\WEB-INF\

cfusion\logs C:\ColdFusion11\cfusion\logs

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

ColdFusion-Tomcat LoggingOne 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

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

ColdFusion-Tomcat LoggingLog setting control Tomcat setting files C:\ColdFusion11\cfusion\runtime\conf\catalina.properties (jar file scanning) C:\ColdFusion11\cfusion\jetty\jre\lib\logging.properties C:\ColdFusion11\cfusion\jnbridge\jre\lib\logging.properties C:\ColdFusion11\cfusion\runtime\conf\logging.properties C:\ColdFusion11\jre\lib\logging.properties ColdFusion settings file C:\ColdFusion11\cfusion\lib\neo-logging.xml

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

Performance▪ Tuning Connector

▪ Re-configuration

▪ ColdFusion- Tomcat Logging

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

Questions▪ blogs.coldfusion.com▪ cfml.slack.com – adobe▪ milanchandnacf.blogspot.com

Thank you – by Milan & Mike


Recommended