4 Focus Areas for the Best ColdFusion Server Optimization

In this article, you will learn:

  1. How to configure the JVM
  2. How to tune the Garbage Collector
  3. Various steps to take for Performance Tuning
  4. How to improve your Web Server Connector

Six key areas CIOs must master

  1. The easy way is to run an automated detection tool such as CF Server monitor to help locate rogue memory processes. The server monitor is great for Enterprise Editions users. But what about Standard users? FusionReactor and its associated plugins can be a viable option.
  2. Then you have the hard way. If you are experiencing heavy memory leak without any indication from automation, you will have to manually inspect the code. This process requires you to manually enable and disable portions of code at a time. When doing this, you need to observe and take note of your memory usage rates. These rises and drops can give you clues as to where your memory leak may be hiding.

Tuning the Garbage Collector

  • Serial Garbage Collector
  • Parallel Garbage Collector
  • Concurrent Mark Sweep (CMS) Garbage Collector
  • G1 Garbage Collector
-XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=3 -XX:GCLogFileSize=10240k -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -verbose:gc -Xloggc:convectiveGC.log

Tuning the Tenured Generation

  • Increase Xmx
  • Increase Xms

Tuning the Younger Generation

  • -Xmn
  • SurvivorRatio
  • TargetSurvivorRatio

Tuning with UseParallelOldGC

Tuning with MaxPermSize

Tuning with -XX: New Ratio

Improve Web Server Connector

The Bottom Line on Server Optimization and Performance

Join the CF Alive revolution

  • Get early access to the CF Alive book and videos
  • Be part of a new movement for improving CF’s perception in the world.
  • Contribute to the CF Alive revolution
  • Connect with other CF developers and managers
  • There is no cost to membership.

--

--

--

ColdFusion development, security and optimization. CEO at TeraTech. Host of CF Alive podcast.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Top 10 Best Womens Snow Boots

Git: work flow of how a feature added to a branch

How to Pass Google Architect Exam easy way

Improving Magento Using Kubernetes

Rediscovering the concept of Flow Control

LuckyChip Games

How to integrate PayPal with Bubble

Paypal with Bubble.io

How to hack your way to being a super productive engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Michaela Light

Michaela Light

ColdFusion development, security and optimization. CEO at TeraTech. Host of CF Alive podcast.

More from Medium

A developer’s point of view on safety-critical software projects

Best Practices for Magento 2 Custom Theme Development

RediSearch — A tour of how few commands work — Part 1

Web Development Using PHP Frameworks