View Revisions: Issue #6489

Summary 0006489: CPU monitor should use Java routine if native command not available
Revision 2024-06-12 13:17 by pmarzullo
Description The MonitorTypeCpu watches for high CPU usage. It uses a native command utility like top for accuracy. If the native command isn't available or returns an error, then fall back to using the Java routine for CPU usage.
Revision 2024-06-12 12:56 by pmarzullo
Description It's possible for the CPU monitor to encounter a NullPointerException or an IndexOutOfBoundsException if the command to get the CPU usage doesn't behave as expected. It would be better to fall back to the old method of obtaining CPU usage than to throw an exception.