newrelic / nri-perfmon

Windows Perfmon / WMI On-Host Integration for New Relic Infrastructure
Other
14 stars 18 forks source link

Many error event logs with message "Exception occurred in polling. Invalid class" are recorded #24

Closed csk-nr closed 3 years ago

csk-nr commented 4 years ago

After installing nri-perfmon, many error logs are recorded. Excuse me for paste logs in Japanese, "エラー" means "error" and "無効なクラスです" means "Invalid class".

エラー,2020/10/16 19:30:20,nri-perfmon,0,なし,"Exception occurred in polling. 無効なクラスです : Select Name, BytesinJournalQueue, BytesinQueue, MessagesinJournalQueue, MessagesinQueue from Win32_PerfFormattedData_MSMQ_MSMQQueue"
エラー,2020/10/16 19:30:20,nri-perfmon,0,なし,"Exception occurred in polling. 無効なクラスです : Select Name, IncomingMessagesPersec, IncomingMulticastSessions, IPSessions, MSMQIncomingMessages, MSMQOutgoingMessages, OutgoingHTTPSessions, OutgoingMessagesPersec, OutgoingMulticastSessions, Sessions, Totalbytesinallqueues, Totalmessagesinallqueues from Win32_PerfFormattedData_MSMQ_MSMQService"
エラー,2020/10/16 19:30:20,nri-perfmon,0,なし,"Exception occurred in polling. 無効なクラスです : Select Name, IncomingBytes, IncomingBytesPersec, IncomingMessages, IncomingMessagesPersec, OutgoingBytes, OutgoingBytesPersec, OutgoingMessages, OutgoingMessagesPersec from Win32_PerfFormattedData_MSMQ_MSMQSession"
エラー,2020/10/16 19:30:20,nri-perfmon,0,なし,"Exception occurred in polling. 無効なクラスです : Select Name, * from Win32_PerfFormattedData_NETDataProviderforOracle_NETDataProviderforOracle"
エラー,2020/10/16 19:30:20,nri-perfmon,0,なし,"Exception occurred in polling. 無効なクラスです : Select Name, NumberofExcepsThrown, NumberofExcepsThrownPersec, NumberofFiltersPersec, NumberofFinallysPersec, ThrowToCatchDepthPersec from Win32_PerfFormattedData_NETFramework_NETCLRExceptions"
エラー,2020/10/16 19:30:20,nri-perfmon,0,なし,"Exception occurred in polling. 無効なクラスです : Select Name, NumberofCCWs, Numberofmarshalling, NumberofStubs, NumberofTLBexportsPersec, NumberofTLBimportsPersec from Win32_PerfFormattedData_NETFramework_NETCLRInterop"
エラー,2020/10/16 19:30:20,nri-perfmon,0,なし,"Exception occurred in polling. 無効なクラスです : Select Name, ILBytesJittedPersec, NumberofILBytesJitted, NumberofMethodsJitted, PercentTimeinJit, TotalNumberofILBytesJitted from Win32_PerfFormattedData_NETFramework_NETCLRJit"
エラー,2020/10/16 19:30:20,nri-perfmon,0,なし,"Exception occurred in polling. 無効なクラスです : Select Name, AssemblySearchLength, BytesinLoaderHeap, Currentappdomains, CurrentAssemblies, CurrentClassesLoaded, PercentTimeLoading, TotalAppdomains, Totalappdomainsunloaded, TotalAssemblies, TotalClassesLoaded, TotalNumberofLoadFailures from Win32_PerfFormattedData_NETFramework_NETCLRLoading"
エラー,2020/10/16 19:30:20,nri-perfmon,0,なし,"Exception occurred in polling. 無効なクラスです : Select Name, ContentionRatePersec, CurrentQueueLength, NumberofcurrentlogicalThreads, NumberofcurrentphysicalThreads, Numberofcurrentrecognizedthreads, Numberoftotalrecognizedthreads, QueueLengthPersec, TotalNumberofContentions from Win32_PerfFormattedData_NETFramework_NETCLRLocksAndThreads"
エラー,2020/10/16 19:30:20,nri-perfmon,0,なし,"Exception occurred in polling. 無効なクラスです : Select Name, AllocatedBytesPersec, FinalizationSurvivors, Gen0heapsize, Gen1heapsize, Gen2heapsize, LargeObjectHeapsize, NumberBytesinallHeaps, NumberGCHandles, NumberGen0Collections, NumberGen1Collections, NumberGen2Collections, NumberInducedGC, NumberofPinnedObjects, NumberofSinkBlocksinuse, NumberTotalcommittedBytes, NumberTotalreservedBytes, PercentTimeinGC, PromotedFinalizationMemoryfromGen0 from Win32_PerfFormattedData_NETFramework_NETCLRMemory"
sschwartzman commented 4 years ago

That's quite alright with the Kanji characters! So quick question, how frequently are these errors being reported? Once or repeated?

Can you run nri-perfmon at command line in "verbose mode" and put the output in here attached as a text file? Here's how: https://github.com/newrelic/nri-perfmon#verbose-logging-mode

csk-nr commented 4 years ago

Those errors (about 60 records) are reported every one minute.

I attached an excerpt of the verbose log because it included some personal information.

Thread-1 : Running Query: Select Name, AllocatedBytesPersec, FinalizationSurvivors, Gen0heapsize, Gen1heapsize, Gen2heapsize, LargeObjectHeapsize, NumberBytesinallHeaps, NumberGCHandles, NumberGen0Collections, NumberGen1Collections, NumberGen2Collections, NumberInducedGC, NumberofPinnedObjects, NumberofSinkBlocksinuse, NumberTotalcommittedBytes, NumberTotalreservedBytes, PercentTimeinGC, PromotedFinalizationMemoryfromGen0 from Win32_PerfFormattedData_NETFramework_NETCLRMemoryThread-1 : Exception occurred in polling. 無効なク ラスです : Select Name, AllocatedBytesPersec, FinalizationSurvivors, Gen0heapsize, Gen1heapsize, Gen2heapsize, LargeObjectHeapsize, NumberBytesinallHeaps, NumberGCHandles, NumberGen0Collections, NumberGen1Collections, NumberGen2Collections, NumberInducedGC, NumberofPinnedObjects, NumberofSinkBlocksinuse, NumberTotalcommittedBytes, NumberTotalreservedBytes, PercentTimeinGC, PromotedFinalizationMemoryfromGen0 from Win32_PerfFormattedData_NETFramework_NETCLRMemory
Thread-1 : Running Query: Select Name, ContentionRatePersec, CurrentQueueLength, NumberofcurrentlogicalThreads, NumberofcurrentphysicalThreads, Numberofcurrentrecognizedthreads, Numberoftotalrecognizedthreads, QueueLengthPersec, TotalNumberofContentions from Win32_PerfFormattedData_NETFramework_NETCLRLocksAndThreads
Thread-1 : Exception occurred in polling. 無効なクラスです : Select Name, ContentionRatePersec, CurrentQueueLength, NumberofcurrentlogicalThreads, NumberofcurrentphysicalThreads, Numberofcurrentrecognizedthreads, Numberoftotalrecognizedthreads, QueueLengthPersec, TotalNumberofContentions from Win32_PerfFormattedData_NETFramework_NETCLRLocksAndThreads
Thread-1 : Running Query: Select Name, AssemblySearchLength, BytesinLoaderHeap, Currentappdomains, CurrentAssemblies, CurrentClassesLoaded, PercentTimeLoading, TotalAppdomains, Totalappdomainsunloaded, TotalAssemblies, TotalClassesLoaded, TotalNumberofLoadFailures from Win32_PerfFormattedData_NETFramework_NETCLRLoading
Thread-1 : Exception occurred in polling. 無効なクラスです : Select Name, AssemblySearchLength, BytesinLoaderHeap, Currentappdomains, CurrentAssemblies, CurrentClassesLoaded, PercentTimeLoading, TotalAppdomains, Totalappdomainsunloaded, TotalAssemblies, TotalClassesLoaded, TotalNumberofLoadFailures from Win32_PerfFormattedData_NETFramework_NETCLRLoading
Thread-1 : Running Query: Select Name, ILBytesJittedPersec, NumberofILBytesJitted, NumberofMethodsJitted, PercentTimeinJit, TotalNumberofILBytesJitted from Win32_PerfFormattedData_NETFramework_NETCLRJit
Thread-1 : Exception occurred in polling. 無効なクラスです : Select Name, ILBytesJittedPersec, NumberofILBytesJitted, NumberofMethodsJitted, PercentTimeinJit, TotalNumberofILBytesJitted from Win32_PerfFormattedData_NETFramework_NETCLRJit
Thread-1 : Running Query: Select Name, NumberofCCWs, Numberofmarshalling, NumberofStubs, NumberofTLBexportsPersec, NumberofTLBimportsPersec from Win32_PerfFormattedData_NETFramework_NETCLRInterop
Thread-1 : Exception occurred in polling. 無効なクラスです : Select Name, NumberofCCWs, Numberofmarshalling, NumberofStubs, NumberofTLBexportsPersec, NumberofTLBimportsPersec from Win32_PerfFormattedData_NETFramework_NETCLRInterop
Thread-1 : Running Query: Select Name, NumberofExcepsThrown, NumberofExcepsThrownPersec, NumberofFiltersPersec, NumberofFinallysPersec, ThrowToCatchDepthPersec from Win32_PerfFormattedData_NETFramework_NETCLRExceptions
Thread-1 : Exception occurred in polling. 無効なクラスです : Select Name, NumberofExcepsThrown, NumberofExcepsThrownPersec, NumberofFiltersPersec, NumberofFinallysPersec, ThrowToCatchDepthPersec from Win32_PerfFormattedData_NETFramework_NETCLRExceptions
Thread-1 : Running Query: Select Name, * from Win32_PerfFormattedData_NETDataProviderforSqlServer_NETDataProviderforSqlServer
Thread-1 : Query "Select Name, * from Win32_PerfFormattedData_NETDataProviderforSqlServer_NETDataProviderforSqlServer" returned no results.
Thread-1 : Running Query: Select Name, * from Win32_PerfFormattedData_NETDataProviderforOracle_NETDataProviderforOracle
Thread-1 : Exception occurred in polling. 無効なクラスです : Select Name, * from Win32_PerfFormattedData_NETDataProviderforOracle_NETDataProviderforOracle
Thread-1 : Running Query: Select Name, IncomingBytes, IncomingBytesPersec, IncomingMessages, IncomingMessagesPersec, OutgoingBytes, OutgoingBytesPersec, OutgoingMessages, OutgoingMessagesPersec from Win32_PerfFormattedData_MSMQ_MSMQSession
Thread-1 : Exception occurred in polling. 無効なクラスです : Select Name, IncomingBytes, IncomingBytesPersec, IncomingMessages, IncomingMessagesPersec, OutgoingBytes, OutgoingBytesPersec, OutgoingMessages, OutgoingMessagesPersec from Win32_PerfFormattedData_MSMQ_MSMQSession
Thread-1 : Running Query: Select Name, IncomingMessagesPersec, IncomingMulticastSessions, IPSessions, MSMQIncomingMessages, MSMQOutgoingMessages, OutgoingHTTPSessions, OutgoingMessagesPersec, OutgoingMulticastSessions, Sessions, Totalbytesinallqueues, Totalmessagesinallqueues from Win32_PerfFormattedData_MSMQ_MSMQService
Thread-1 : Exception occurred in polling. 無効なクラスです : Select Name, IncomingMessagesPersec, IncomingMulticastSessions, IPSessions, MSMQIncomingMessages, MSMQOutgoingMessages, OutgoingHTTPSessions, OutgoingMessagesPersec, OutgoingMulticastSessions, Sessions, Totalbytesinallqueues, Totalmessagesinallqueues from Win32_PerfFormattedData_MSMQ_MSMQService
Thread-1 : Running Query: Select Name, BytesinJournalQueue, BytesinQueue, MessagesinJournalQueue, MessagesinQueue from Win32_PerfFormattedData_MSMQ_MSMQQueue
Thread-1 : Exception occurred in polling. 無効なクラスです : Select Name, BytesinJournalQueue, BytesinQueue, MessagesinJournalQueue, MessagesinQueue from Win32_PerfFormattedData_MSMQ_MSMQQueue
Thread-1 : Running Query: Select Name, * from Win32_PerfFormattedData_Counters_HTTPServiceRequestQueues
sschwartzman commented 3 years ago

For these errors, if it is reporting back "invalid class", that means that your instance lacks those counter classes. Can you run those WMI queries in Powershell to verify?

For example, using Powershell:

Get-WMIObject -query "Select Name, BytesinJournalQueue, BytesinQueue, MessagesinJournalQueue, MessagesinQueue from Win32_PerfFormattedData_MSMQ_MSMQQueue"

If they are not there, nri-perfmon should exclude them from being re-run in future iterations.

Also, you may want to try the latest release, in which among other things, the logging is cleaned up a bit: https://github.com/newrelic/nri-perfmon/releases/tag/0.6.1

sschwartzman commented 3 years ago

@csk-nr I'm going to close out this issue, we can re-open if you've been able to test with the latest release and still seem the same issue.