2 Replies Latest reply on Nov 23, 2014 11:24 PM by nc-t

    ColdFusion 9 performance problem

    nc-t

      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

        • 1. Re: ColdFusion 9 performance problem
          checkit4

          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

          • 2. Re: ColdFusion 9 performance problem
            nc-t Level 1

            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>