6 Replies Latest reply: Mar 6, 2012 3:07 PM by carl type3 RSS

    CFSTAT shows zero's for counters

    carl type3 Community Member

      CFSTAT shows zero's for all counters except AvgDB Time and minus one CP /Sec Now Hi.

       

      When I run some CFM that does select from database I would expect counters to increment

      for Pg/Sec(Hi), DB/Sec(Hi), ReqRun'g, AvgReq Time, Bytes In/Sec, Bytes Out/Sec.

       

      EG:

       

      C:\ColdFusion10\cfusion\bin>cfstat 1

       

      Pg/Sec  DB/Sec  CP/Sec  Reqs  Reqs  Reqs  AvgQ   AvgReq AvgDB  Bytes  Bytes

      Now Hi  Now Hi  Now Hi  Q'ed  Run'g TO'ed Time   Time   Time   In/Sec Out/Sec

      0   0   0   0   -1  -1  0     0     0     0      0      0      0      0

      0   0   0   0   -1  -1  0     0     0     0      0      530    0      0

       

      Regards, Carl.

        • 1. Re: CFSTAT shows zero's for counters
          kasala_asha

          Hi Carl,

           

          Is your ColdFusion server using built-in webserver or using an external webserver like apache or IIS ?

          If you are using external webserver like apache or IIS you need to do the following for your cfstat to provide the stats -

           

          In your ColdFusion Administrator under

           

          Debugging & Logging > Debug Output Settings you will find a field to provide Connector Port.In this field you need to specify the the AJP port from server.xml present in <ColdFusion_Home>\runtime\conf (i.e  C:\ColdFusion10\cfusion\runtime\conf on Windows)

           

          You need to look for the block below

          <Connector port="8012" protocol="AJP/1.3" redirectPort="8445" tomcatAuthentication="false"> </Connector>

          in server.xml and specfiy port 8012 in the Connector Port field in the Administrator.

           

          Please let us know if you are able to get the data after trying out this.

           

          Thanks,

          Asha

          Adobe ColdFusion Team.

          • 2. Re: CFSTAT shows zero's for counters
            carl type3 Community Member

            Hi Asha,

             

            Environment = CF10 on Win7 using IIS as webserver.

             

            As suggested take value from
            C:\ColdFusion10\cfusion\runtime\conf\server.xml
            for
            <Connector port="8012" protocol="AJP/1.3" redirectPort="8445" tomcatAuthentication="false" />
            Apply to
            CF > Debugging & Logging > Debug Output Settings > Connector Port > Restart CF

             

            CF10 Help does not include details above.

             

            http://help.adobe.com/en_US/ColdFusion/10.0/Admin/WSc3ff6d0ea77859461172e0811cbf3638e6-7fe 0.html#WS461F2C7B-9331-43eb-BB55-92BE901135C1


            Part of CFSTAT works however some counters values do not seem to be correct. I will try get some more details in another post soon.

             

            Thanks, Carl.

            • 3. Re: CFSTAT shows zero's for counters
              carl type3 Community Member

              Sample CFSTAT counters for CF10 and CF8 running same CFM

               

              C:\ColdFusion10\cfusion\bin>cfstat 1

               

              Pg/Sec  DB/Sec  CP/Sec  Reqs  Reqs  Reqs  AvgQ   AvgReq AvgDB  Bytes  Bytes

              Now Hi  Now Hi  Now Hi  Q'ed  Run'g TO'ed Time   Time   Time   In/Sec Out/Sec

              0   0   0   0   -1  -1  3     3     0     0      4431   499    0      0

              0   0   1   1   -1  -1  3     3     0     0      4431   584    0      0

              1   1   0   1   -1  -1  3     3     0     0      7036   584    0      1253716

              0   1   0   1   -1  -1  3     3     0     0      7036   584    0      0

               

              c:\ColdFusion8\bin>cfstat 1

               

              Pg/Sec  DB/Sec  CP/Sec  Reqs  Reqs  Reqs  AvgQ   AvgReq AvgDB  Bytes  Bytes

              Now Hi  Now Hi  Now Hi  Q'ed  Run'g TO'ed Time   Time   Time   In/Sec Out/Sec

              0   0   0   0   -1  -1  0     0     0     0      115    243    0      0

              0   0   1   1   -1  -1  0     1     0     0      115    145    553    0

              1   1   0   1   -1  -1  0     0     0     0      13034  145    0      1262753

              0   1   0   1   -1  -1  0     0     0     0      13034  145    0      0

               

               

              On CF10

              Req Q'ed - increments tho I think should be zero. Should not be sufficient load to cause Queuing?

              Req Run'g - increments does not return to zero when nothing is running?

              Bytes In/Sec - always remains zero?

              • 4. Re: CFSTAT shows zero's for counters
                carl type3 Community Member

                CF9 CFSTAT sample follows.

                 

                C:\ColdFusion9\bin>cfstat 1

                 

                Pg/Sec  DB/Sec  CP/Sec  Reqs  Reqs  Reqs  AvgQ   AvgReq AvgDB  Bytes  Bytes

                Now Hi  Now Hi  Now Hi  Q'ed  Run'g TO'ed Time   Time   Time   In/Sec Out/Sec

                0   0   0   0   -1  -1  0     1     0     0      0      0      3178   0

                0   0   1   1   -1  -1  0     1     0     0      0      312    0      0

                1   1   0   1   -1  -1  0     0     0     0      21347  312    0      1253716

                0   1   0   1   -1  -1  0     0     0     0      -20    312    0      0

                 

                CF10 CFSTAT would seem to be broken or at least not working in a way that is useful for diagnosis of how resources are being consumed?

                • 5. Re: CFSTAT shows zero's for counters
                  rupesh_kumar Employee Hosts

                  Carl, it would be great if you can help us understand why you feel that CFSTAT in CF10 is broken or not useful for diagnosis.

                  • 6. Re: CFSTAT shows zero's for counters
                    carl type3 Community Member

                    Hi Rupesh,

                     

                    CFSTAT has been a tool available in CF for a long time. Certainly I can remember

                    using cfstat in macromedia CFmx and perhaps even allaire CF5.

                     

                    CFSTAT provides some status of the running state of CF server. Not that cfstat is

                    the beginning and end tool when it comes to knowing what is going on. It has been

                    better than nothing and having no idea on what CF is doing.

                     

                    While CF Monitor is very good you do not always have CF Monitor available if

                    particular CF licence is Standard.

                     

                    Where do I see problems with CF10 CFSTAT:

                     

                    Counter - Bytes In/Sec

                    CF Help - Bytes incoming per second

                    The number of bytes that ColdFusion read in the last second

                     

                    With that counter showing zero one would think no CFM pages are being requested.

                     

                    Counter - Req Q'ed

                    CF Help - Number of queued requests

                    The number of requests that are currently waiting for ColdFusion to process them.

                    Lower values, which you can achieve with efficient CFML, are better.

                     

                    I am sure that CFM pages that I put thru CF10 are not enough to cause queuing.

                    This counter seems to mimic the value of counter Req Run'g. Ordinarily you

                    would not want to see any number in here other than zero.

                     

                    Counter - Req Run'g

                    CF Help - Number of running requests

                    The number of requests that ColdFusion is currently actively processing.

                     

                    This counter on CF10 is showing cumulative requests that is it is not returning to zero

                    when no CFM pages are running.

                     

                    CF Help - Using the cfstat utility

                    The cfstat command-line utility provides real-time performance metrics for ColdFusion.

                     

                    From the cfstat sample provide I propose some of the values provided are not real-time

                    except for the Avg*, Pg/Sec,  DB/Sec and Bytes Out/Sec counters.

                     

                    Regards, Carl.