Bug #71645 Exceptions about CPU Usage Advisor
Submitted: 10 Feb 2014 7:01 Modified: 26 Feb 2014 9:55
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Enterprise Monitor: Server Severity:S3 (Non-critical)
Version:3.0.5 OS:Linux (RHEL6)
Assigned to: CPU Architecture:Any

[10 Feb 2014 7:01] Daniël van Eeden
Description:
There are exceptions being logged about the CPU Usage Advisor.

How to repeat:
2014-02-10 07:57:09,025  WARN com.mysql.etools.springboard.AsyncQueuedAcceptor: AsyncQueuedAcceptor@1492645561 exception sending {com.mysql.etools.inventory.model.os.Cpu : ssh:{*REMOVED*}.2}@1392015428998 to acceptor com.mysql.etools.monitor.advisor.manage.AdvisorInventoryRouter@2b2383af[invokes void com.mysql.etools.monitor.advisor.manage.AdvisorInventoryRouter.accept(com.mysql.etools.inventory.Asset)]
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        at com.mysql.etools.exception.Exceptions.toRuntime(Exceptions.java:30)
        at com.mysql.etools.springboard.MethodInvokingAcceptor.accept(MethodInvokingAcceptor.java:41)
        at com.mysql.etools.springboard.ManagedAcceptor$WithFutureAcceptor.accept(ManagedAcceptor.java:147)
        at com.mysql.etools.springboard.OutputBroadcaster.send(OutputBroadcaster.java:43)
        at com.mysql.etools.springboard.AsyncQueuedAcceptor$1.run(AsyncQueuedAcceptor.java:45)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.mysql.etools.springboard.MethodInvokingAcceptor.accept(MethodInvokingAcceptor.java:39)
        ... 6 more
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        at com.mysql.etools.exception.Exceptions.toRuntime(Exceptions.java:30)
        at com.mysql.etools.springboard.MethodInvokingAcceptor.accept(MethodInvokingAcceptor.java:41)
        at com.mysql.etools.springboard.ManagedAcceptor$WithFutureAcceptor.accept(ManagedAcceptor.java:147)
        at com.mysql.etools.springboard.ManagedAcceptor.accept(ManagedAcceptor.java:45)
        at com.mysql.etools.monitor.advisor.AssetInput.accept(AssetInput.java:110)
        at com.mysql.etools.monitor.advisor.manage.ScheduledAdvisorInput.maybeAccept(AdvisorInventoryRouter.java:252)
        at com.mysql.etools.monitor.advisor.manage.AdvisorInventoryRouter.accept(AdvisorInventoryRouter.java:113)
        ... 10 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor841.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.mysql.etools.springboard.MethodInvokingAcceptor.accept(MethodInvokingAcceptor.java:39)
        ... 15 more
Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
        at java.util.ArrayList.rangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at com.mysql.etools.monitor.advisor.cpu.CpuUtilizationAnalyzer.ensureQuantizer(CpuUtilizationAnalyzer.java:133)
        at com.mysql.etools.monitor.advisor.cpu.CpuUtilizationAnalyzer.consider(CpuUtilizationAnalyzer.java:96)
        at com.mysql.etools.monitor.advisor.cpu.CpuUtilizationAdvisor.process(CpuUtilizationAdvisor.java:234)
        ... 19 more
[21 Feb 2014 14:58] Daniël van Eeden
This only happens if there are duplicate ssh host keys.
[26 Feb 2014 9:55] MySQL Verification Team
Hello Daniel,

Thank you for the bug report!

Thanks,
Umesh