Skip to main content
nc-t
Participant
November 21, 2014
Question

ColdFusion 9 performance problem

  • November 21, 2014
  • 1 reply
  • 323 views

Hello,

I have a probem with ColdFusion 9, that it is very slow.

I installed it on current Debian 7 x64. As a test I will write 100 times with little text files.

Here the ColdFusion 9 server needs already 8 seconds.

Does anyone know a solution or knows the problem?

Greetings.

nc-t

This topic has been closed for replies.

1 reply

November 21, 2014

On which hardware did you run the Server?

Did you have checked the processing in detail?

Which part of the processing is slow?

Did you have any further information e.g. the CF-script you run, protocols, logs, ...?

Regards

Checkit4

nc-t
nc-tAuthor
Participant
November 24, 2014

Hello,

On which hardware did you run the Server?

The server runs on this hardware:

16 GB RAM

4 vCores

80GB SAN

LVM:

/ 20 GB

/boot 500 MB

/tmp 2 GB

/srv 41.5 GB

Did you have checked the processing in detail?

Which part of the processing is slow?

I try the FusionReactor to check some details in processing but the only thing i saw was an slow hdd access.

Did you have any further information e.g. the CF-script you run, protocols, logs, ...?

I checked the log files first. The only warning entry there is the request has exceeded the allowable time limit (30 sec).

I used the following tests to take the time:

<cfset filepath = "/var/www/">

<cfset iterations = 100>

<cfset times = structNew()>

<cfset times['file_write'] = 0>

<cfset times['file_read'] = 0>

<cfset times['file_delete'] = 0>

<cftry>

        <cfloop from="1" to="#iterations#" index="i">

                <cfset start = gettickcount()>

                <cffile action="WRITE" file="#filepath#tmp/benchmark.txt" output="Benchmark">

                <cfset times['file_write'] += gettickcount() - start>

                <cfset start = gettickcount()>

                <cffile action="READ" file="#filepath#tmp/benchmark.txt" variable="tmp">

                <cfset times['file_read'] += gettickcount() - start>

                <cfset start = gettickcount()>

                <cffile action="DELETE" file="#filepath#tmp/benchmark.txt">

                <cfset times['file_delete'] += gettickcount() - start>

        </cfloop>

        <cfoutput>

                Iterationen: #iterations#

                <cfdump var="#times#" label="Time in ms">

        </cfoutput>

        <cfcatch>

                <cfdump var="#cfcatch#">

        </cfcatch>

</cftry>