KBEC-00303 - How to get server internal timing statistics

Article ID:360032827912
1 minute readKnowledge base

Summary

CloudBees CD (CloudBees Flow) step scheduling or other server processes are being unusually slow. How do we get the server’s internal timer data to help debug these issues?

Solution

There are two ways to get the server’s internal timing statistics through ectool APIs:

Login as admin for the following command
ectool getServerStatus --diagnostics 1

and

Any user should work for this command
ectool dumpStatistics --fileName

Note also that you need to specify a file for dumpStatistics and that file will be created on the CloudBees CD (CloudBees Flow) server INSTALL_DIRECTORY.

In addition to timer statistics, getServerStatus will also dump a large amount of information on other server details. While this is useful for general diagnostic purposes, the extra information - such as row counts from all database tables - may take a long time for the server to produce.

If all you need is the timer data, then dumpStatistics is the faster and more concise option.

Please consult the CloudBees CD (CloudBees Flow) Online Help for further documentation on the API.

Applies to

  • Product versions: all

  • OS versions: all