Parameters > Citect.ini File Parameters > CtAPI Parameters > [CtAPI]CpuLoadCount

[CtAPI]CpuLoadCount

Depending on the capability of your hardware, it is sometimes possible to overload the server's CPU while making a Trend or Alarm query using ctFindFirst(). To avoid this you can use CpuLoadCount in conjunction with the CpuLoadSleepMS parameter.

CpuLoadCount allows you to control how often the request pauses (sleeps) while it is collecting data. The load count corresponds approximately with the number of rows of query data processed by the server before it pauses. Decreasing this number means the request will pause more often and hence take longer to complete. However the workload will be stretched over a longer time period, decreasing the intensity of demand on the CPU.

Note: You will need to experiment to see which values are appropriate for optimum performance on your system. When experimenting you should adjust the value of CpuLoadSleepMS before CpuLoadCount.

Allowable Values: 0 to any valid INT

Default Value: 100

See Also