Tuning the Performance of Your ColdFusion Environment to Racecar Specs!
-
Upload
hosting -
Category
Technology
-
view
288 -
download
4
Transcript of Tuning the Performance of Your ColdFusion Environment to Racecar Specs!
Housekeeping
• This webinar is being recorded and an on-demand version will be available at the same URL at the conclusion of the webinar
• Please submit questions via the button on the upper left of your viewing panel
• If we don’t get to your question during the webinar, we will follow up with you via email
• View related resources via the “Attachments” button in your viewing panel
• On Twitter? Join the conversation: #ColdFusion, @HOSTINGdotcom
We are Webapper
• Co-founded in 2001 by two former members of Allaire Consulting Services
• Speakers today: • Patrick Quinn: Co-Founder, CTO of
Webapper
• Mike McCracken: Director, Professional Services for HOSTING
‘Splain the session title, please?
• Indy 500o World’s largest auto raceo We’ve been tuning it @ HOSTING for 5
years
• And, well, ColdFusion is fast!
Results
• 50 r/s X 8 ColdFusion servers (at peak)
• Cloud scaling
• Zero bottlenecks (literally)
• Zero slowdowns
• Active/passive data tier (SQL Server)
The Webapper Way
• How to tune/troubleshoot a ColdFusion servero Empiricalo ~ 5 different data sets (logs,
memory/thread profiling, monitoring tools)
• PASS
• How to prioritize “TNT” problems
Today
• Good general settings for ColdFusiono Memory and thread settingso The ColdFusion connector!
• Q&A
“The Engine Room”
The Java Virtual Machine = the real meaning behind the phrase
“ColdFusion is Java.”
Great Default JVM Settings - 64 bit
-server -Xms6144m -Xmx6144m -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -verbose:gc -Xloggc:webapperGC219.log -XX:NewRatio=4 -XX:SurvivorRatio=8 -XX:+UseCompressedOops -Xss256k -XX:+CMSClassUnloadingEnabled - -XX:+UseParNewGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+CMSScavengeBeforeRemark -XX:CMSInitiatingOccupancyFraction=68 -XX:CMSFullGCsBeforeCompaction=1 Dsun.io.useCanonCaches=false -XX:MaxPermSize=640m -XX:PermSize=640m -XX:+UseConcMarkSweepGC
Wait, what? JVM Settings Explained
-server
-Xms6144m -Xmx6144m
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -verbose:gc -Xloggc:webapperGC219.log
JVM Settings Explained-XX:NewRatio=4 -XX:SurvivorRatio=8
-XX:+UseCompressedOops
-Xss256k
-XX:+CMSClassUnloadingEnabled
-XX:+UseParNewGC
JVM Settings Explained
-XX:+DisableExplicitGC
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+CMSScavengeBeforeRemark
-XX:CMSInitiatingOccupancyFraction=68
JVM Settings Explained
-XX:CMSFullGCsBeforeCompaction=1
-XX:MaxPermSize=640m -XX:PermSize=640m
-XX:+UseConcMarkSweepGC
Threads and all the rest...
http://weblogs.asp.net/owscott/windows-8-iis-8-concurrent-requests-limit
Recommended Thread Settings
• runtime/conf/server.xml:<Connector port="8012" protocol="AJP/1.3"
redirectPort="8445" tomcatAuthentication="false" maxThreads="525" connectionTimeout="60000" />
<Connector executor="tomcatThreadPool"... />
(Note: connectionTimeout is in milliseconds)
Recommended Thread Settings
• workers.properties:worker.
{instance}.max_reuse_connections=500
worker.{instance}.connection_pool_size=500
worker.{instance}.connection_pool_timeout=60
(Notes: connection_pool_timeout is in seconds;
must be the same as server.xml's connectionTimeout)
Reference: http://blogs.coldfusion.com/post.cfm/tuning-coldfusion-10-iis-connector-configuration
New SOTA ColdFusion Cloud Hosting
• Automatically optimized
• Automatically load-balanced
• Automatically redundant
• Automatically monitored
• Automatic data tier clustering
Contact Us
• via Twitter: @IamSigmund
• via Email: [email protected]
• HOSTING.com Customers: [email protected]
• www.coldfusionsupport.netwww.webapper.com www.seefusion.com