In the 2016 release of ColdFusion, we had introduced support for Command Line Interface. In this release, we have introduced support for Read-Eval-Print-Loop (REPL). REPL, a shell, is an interactive programming environment that takes single user inputs, evaluates them, and returns the result to the user. A REPL is like command line shells. How to start ColdFusion in REPL mode? Open a terminal and navigate to <ColdFusion Home Directory>\cfusion\bin> Enter cf.bat/cf.sh. It opens REPL mode in the terminal. What all […]
Many a time, ColdFusion application code is deployed on a network path when your ColdFusion deployments are of large-scale and mandated to use network paths.
After setting up the server for the first time, if there is any performance hit, as the first thing you would want to cross-check few things. One of the things to determine is if there is any network latency.
Though you would have got same network within your organization same as earlier, your OS version also would have changed.
Follow the steps below to see if the performance hit is due to network latency-
If you have setup cluster and tried to use charting in ColdFusion 8/9/10, sometimes you would have received “Image Expired” message instead of showing the chart. Charting engine runs into this problem for two reasons. 1. The scripts generated by the designer use indirect method for image retrieval, meaning that the image isproduced during page processing and is placed in cache to be retrieved by the browser. After some period of time depending upon cache settings the image is destroyed. […]
Many times you would want to tweak the performance of the ColdFusion server or want to debug the bottlenecks that make the server unresponsive. To analyze this, ideally, you would want to have Thread dumps and Server memory snapshots (Heap Space, Eden Space, Survivor Space, Old Gen, Perm Gen). While you can use JDK tools like jstack to get the dumps, it is tedious to install it and schedule the thread dumps. So, programmatically thread dumps and memory snapshots are […]
tools.jar contains the utilities to compile java source into class files. While using ColdFusion Web services stubs have to be generated. So, this utility is required for this feature to be functional. The tools.jar is shipped by default with ColdFusion along with full installation of ColdFusion which would be same version of the jre that ColdFusion is shipped with. If you are just using this default installation and the built-in jre, your ColdFusion web services do work fine. However, due […]
Would like to explain the some of the factors that decide how much maximum memory that an application needs. Here are two examples. One is with cffile upload action and the other is with cfpdf thumbnail action. Sometimes, while uploading large files using cffile with upload action (<CFFILE ACTION= “UPLOAD”) you would have run into the following error “500 – Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.” […]
Sometimes, depending on your need, you may want to enable or disable the Tomcat access logs, which track every request to ColdFusion. In CF10, these logs were enabled by default. Since CF11, they are disabled by default. This post shows how to enable them, as well as how to modify the logging.
(Originally written in Jul 2015, updated in Jan 2021) For a more complete and updated discussion of this topic, see the 2019 post, Guide to configure JNDI datasource in ColdFusion. This 2015 post below expanded on a still-older one, linked to below. Both are combined and updated into the more recent post. For configuring JNDI data sources, it should firstly be supported by the application server. Tomcat server, which is built-into ColdFusion server, has the support for this by default. […]
You might want to set up ColdFusion in a distributed environment where ColdFusion is running on one machine and Web server is running on a different machine. Following are the set of steps that have to be performed to achieve this (less error-prone): This applies generally to both ColdFusion 10 and ColdFusion 11 and beyond. 1) Have ColdFusion server installed in a machine (machine 1). 2) On machine with web server (machine 1), download and install VC Runtime if not […]
When you try to run hotfix installer from command prompt, it opens up in UI mode and enforces you to run as root user. This is done to prevent some issues you could run into. If you don’t have the access privileges for root account but you own ColdFusion server’s runtime user, and you might want to install as that user. Silent installation is helpful in this case. Step 1: Download the hotfix ———————————- Download the Hotfix from ColdFusion Administrator […]
Update 3 for ColdFusion Builder 3 is released. This update is primarily a companion update to ColdFusion 11 Update 3 which ahs added support for PhoneGap 3.5. Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:”Table Normal”; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:””; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0in; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:”Calibri”,sans-serif; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} This is just an Update for the ColdFusion Builder 3 installation that were installed prior to the […]
During first week of December 2014, we had released Full installers for ColdFusion 11 with update 3 in-built. The build number was 11,0,3,292480. There were two issues with the build that was released(Full Installers only). 1) After Enabling J2EE Session Variables server hangs on restart/start. 2)On Japanese OSes, installer doesn’t recognize the Japanese locale. If you have applied the update 3 through Hotfix, these 2 issues won’t arise for you. And also, #1 is not applicable for J2EE deployments done […]