Entries Tagged as “ColdFusion”

Some of the factors that help in deciding the memory that application needs

July 27, 2015 / Krishna Reddy

  Administrator | Adobe ColdFusion | Adobe ColdFusion 10 | Adobe ColdFusion 11 | Adobe ColdFusion Builder | ColdFusion | ColdFusion 11 | General

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."

 

File upload is dependent on “Maximum size of post data” value that you can set in ColdFusion Administrator.

However, it can’t exceed the total available free memory.

Say, if 512 MB is the Xmx memory value (jvm.config) and 350 MB is already occupied by the application, even if “Maximum size of post data” value is set to 200 MB, it can upload files of up to ~150 MB (512 MB- 350 MB).

It can’t upload files of size 200 MB.

To fix it, Xmx should be increased which is again subjected to the available memory in that machine.

 

Here is other example:-

Say, you are using CFPDF's Thumbnail Action and the thumbnails background is not generated properly.
Here the issue would be insufficient memory.

        Just to hold the decoded image data, java application needs large memory (say 1.2 GB depending on the image pixels).

It is because of the format and high pixel nature of the image that is being converted. Number objects created are equal to the total number of pixels in that image.

So, high pixel imge would consume more memory.

To fix this, Xmx value in jvm.config should be at least -> Applications memory Size + 1.2 GB (from the above example) i.e. a minimum of 1.5 GB and can be more depending on your application.

Changing the value and restarting the server would fix this.


How to enable/disable Tomcat logs

July 26, 2015 / Krishna Reddy

  Administrator | Adobe ColdFusion | Adobe ColdFusion 10 | Adobe ColdFusion 11 | Adobe ColdFusion Builder | ColdFusion | ColdFusion 11 | Tomcat

Sometimes, depending on your need, you may want to enable or disable the tomcat logs.

This can be simply done changing a setting a in <ColdFusion_Home>\cfusion\runtime\conf\server.xml file.

At the end of this xml file you can see the following tag.

<!--

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 

               prefix="localhost_access_log." suffix=".txt"

               pattern="%h %l %u %t &quot;%r&quot; %s %b" resolveHosts="false"/>

-->

Uncomment this tag as follows and restart the server for the changes to be effective.

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 

               prefix="localhost_access_log." suffix=".txt"

               pattern="%h %l %u %t &quot;%r&quot; %s %b" resolveHosts="false"/>


Similary, to enable the Tomcat logs, comment this tag.

When Tomcat logging is enabled, you can change the logging level in the logging.properties file by changing the following setting.
<ColdFusion_Home>\cfusion\runtime\conf\logging.properties

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = WARN

 

 


Configuring JNDI Data sources in ColdFusion

July 25, 2015 / Krishna Reddy

  Administrator | Adobe ColdFusion | Adobe ColdFusion 10 | Adobe ColdFusion 11 | Adobe ColdFusion Builder | Application Server | ColdFusion | ColdFusion 11 | General

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.

While there is a blog Here on this how to configure, I want to explain few mistakes that are tend to be done while configuring. 


  One common mistake generally done is:-
  When the data source is configured from the ColdFusion administrator by providing irrelevant    username/password.
  You may tend to provide Database's username/password. This is NOT Database's username/password.
  It is the application server's username and password on which data source is configured.
  It should be left blank when the credentials are not required by the server.


Prepending java:comp/env/ is required for the actual JNDI name that is registered in xml while registering the name in administrator.

It is not mandatory that you register the JNDI data source in ColdFusion administrator.

As long as the app server supports JNDI, you can invoke the data source that is configured in the application server in cfm source code directly either in case of standalone installation or EAR/WAR deployment.
But for consistency and preferred names that can used in ColdFusion should be registered in ColdFusion.

This is applicable to both ColdFusion 10 and ColdFusion 11.

 


Setting up ColdFusion in distributed envionment

July 02, 2015 / Krishna Reddy

  Administrator | ColdFusion | ColdFusion 11 | Connector | creating a website | customers | Docs | General | productivity | Tomcat | web application | web application development

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 to both ColdFusion 10 and ColdFusion 11.

1) Have ColdFusion server installed in a machine.

2) Next thing is to download and install VC Runtime.

             - The version of VC Runtime that you have to install depends on the version of ColdFusion.

                Say, ColdFusion 11 needs VC Runtime 2012

                 (32-bit VC Runtime for 32-bit Web server and 64-bit VC Runtime for 64-bit Web server.

                  If you are not sure, you can install both)

                 (https://www.microsoft.com/en-in/download/details.aspx?id=30679)

                and ColdFusion 10 needs VC Runtime 2010

 

3) Copy the following contents from the machine where ColdFusion is running to the machine where Web server is running at the same location.

 C:\ColdFusion11\jre

 C:\ColdFusion11\runtime\lib\wsconfig.jar

 C:\ColdFusion11\runtime\conf\server.xml

 

4) Open a Command prompt and run wsconfig tool

   C:\ColdFusion11>jre\bin\java -jar cfusion\runtime\lib\wsconfig.jar

    It will open a configuration window where you have to provide AppServer Host as the ColdFusion Server IP.

    Configure the connector.

Distributed environment is ready for use. Send requests to the Web server's URL with cfm files under web server root and same files under ColdFusion's Web root.

Web server would redirect these to ColdFusion, which is on some other machine.

 

 


Adobe ColdFusion Government Seminar - Washington, D.C. May 7th

April 29, 2015 / Elishia Dvorak

  Adobe ColdFusion | Announcements | ColdFusion | ColdFusion 11 | General

Please join the ColdFusion team at a free event in Washington, D.C. on May 7th, 2015 at 8:00 AM ET

Date: Thursday, May 7, 2015
Registration: Begins at 8:00am
Event Time: 8:30am – 11:30am

Location: Washington Marriott
                  at Metro Center

                  775 12th Street NW
                  Junior Ballroom Salon I
                  Washington, DC 20005
Cost: Free

*Complimentary breakfast will be provided

For more details and registration please use this link: http://pages.carahsoft.com/v/v0000OgY03MMU0zfM010000

This is a half-day morning event where we will have interactive discussions on current and future web trends with an emphasis on government related focus areas such as security, data management, and latest technologies.  It's an exciting opportunity to interact with executive leadership and product management to discuss strategy and hear about Adobe's plans for ColdFusion's continued success and future technology focus areas.  

We encourage all of our ColdFusion customers in the D.C. area to attend.

We're looking forward to seeing you there!

 

Read More


Blue Mango Theme Design By Mark Aplet

Super Powered by Mango Blog