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

[CtAPI]CpuLoadSleepMS

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 CpuLoadSleepMS in conjunction with the CpuLoadCount parameter.

CpuLoadSleepMS allows you to control how long the request pauses (sleeps) while it is collecting data. Pausing for longer periods will cause the request to take longer but will decrease the intensity of the load 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 (milliseconds)

Default Value: 100

See Also