2015-01-12 9 views
6

मैं एक एज़ूर कार्यकर्ता भूमिका और वेब भूमिका के भीतर कुछ कस्टम प्रदर्शन काउंटर बनाने की कोशिश कर रहा हूं। वेब भूमिका एज़ूर वीएम से डायग्नोस्टिक्स टेबल स्टोरेज में प्रदर्शन काउंटर डेटा को सही ढंग से एकत्र और स्थानांतरित कर रही है, हालांकि कार्यकर्ता की भूमिका विफल हो रही है। वी एम पर प्रवेश करने तथा जाँच इवेंट लॉग मैं निम्नलिखित अपवादों देख रहा हूँ: इस प्रकारAzure वर्कर रोल कस्टम प्रदर्शन काउंटर

Source: perflib 
Event ID: 1010 
The Collect Procedure for the "D:\Windows\System32\winspool.drv" service in DLL "Spooler" generated an exception or returned an invalid status. The performance data returned by the counter DLL will not be returned in the Perf Data Block. The first four bytes (DWORD) of the Data section contains the exception code or status code. 


Source: perflib 
Event ID: 1008 
The Open Procedure for service "BITS" in DLL "D:\Windows\System32\bitsperf.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code. 


Source: perflib 
Event ID: 1023 
Windows cannot load the extensible counter DLL ASP.NET_2.0.50727. The first four bytes (DWORD) of the Data section contains the Windows error code. 

diagnostics.wadcfg दिखता है:

<PerformanceCounters bufferQuotaInMB="2048" scheduledTransferPeriod="PT5M"> 
    <PerformanceCounterConfiguration counterSpecifier="\Processor(_Total)\% Processor Time" sampleRate="PT30S" /> 
    <PerformanceCounterConfiguration counterSpecifier="\Memory\Available MBytes" sampleRate="PT1M" /> 
    <PerformanceCounterConfiguration counterSpecifier="\Memory\Page Faults/sec" sampleRate="PT1M" /> 
    <PerformanceCounterConfiguration counterSpecifier="\Process(WAWorkerHost)\Private Bytes" sampleRate="PT1M" /> 
    <PerformanceCounterConfiguration counterSpecifier="\.NET CLR Memory(WAWorkerHost)\# Bytes in all Heaps" sampleRate="PT1M" /> 
    <PerformanceCounterConfiguration counterSpecifier="\.NET CLR Memory(WAWorkerHost)\% Time in GC" sampleRate="PT1M" /> 
    <PerformanceCounterConfiguration counterSpecifier="\Process(WAWorkerHost)\Thread Count" sampleRate="PT1M" /> 
    <PerformanceCounterConfiguration counterSpecifier="\.NET CLR LocksAndThreads(WAWorkerHost)\# of current logical Threads" sampleRate="PT1M" /> 
    <PerformanceCounterConfiguration counterSpecifier="\.NET CLR LocksAndThreads(WAWorkerHost)\# of current physical Threads" sampleRate="PT1M" /> 
    <PerformanceCounterConfiguration counterSpecifier="\.NET CLR LocksAndThreads(WAWorkerHost)\# of current recognized threads" sampleRate="PT1M" /> 
    <PerformanceCounterConfiguration counterSpecifier="\.NET CLR LocksAndThreads(WAWorkerHost)\Current Queue Length" sampleRate="PT1M" /> 
    <PerformanceCounterConfiguration counterSpecifier="\Network Interface(*)\Bytes Received/sec" sampleRate="PT1M" /> 
    <PerformanceCounterConfiguration counterSpecifier="\Network Interface(*)\Bytes Sent/sec" sampleRate="PT1M" /> 
    <PerformanceCounterConfiguration counterSpecifier="\.NET CLR Exceptions(WAWorkerHost)\# of Exceps Thrown/sec" sampleRate="PT30S" /> 

    <!--If I comment out the following two out of the box counters, it works in the azure emulator--> 
    <PerformanceCounterConfiguration counterSpecifier="\PhysicalDisk(_Total)\Avg. Disk Write Queue Length" sampleRate="PT1M" /> 
    <PerformanceCounterConfiguration counterSpecifier="\PhysicalDisk(_Total)\Avg. Disk Read Queue Length" sampleRate="PT1M" />--> 

    <PerformanceCounterConfiguration counterSpecifier="\Product\Add Product Forward Recommendation Overall Duration_AverageTimer32" sampleRate="PT1M" /> 
    <PerformanceCounterConfiguration counterSpecifier="\Product\Add Recommendations Product Handler Duration_AverageTimer32" sampleRate="PT1M" /> 
</PerformanceCounters> 

बॉक्स प्रदर्शन काउंटरों से बाहर स्थानांतरित कर रहे हैं, बस कस्टम जो समस्या पैदा कर रहे हैं।

मेरे पास 'स्टार्टअप' के दौरान प्रदर्शन करने वाले प्रदर्शन काउंटर हैं, और जैसा ऊपर बताया गया है, स्थानीय रूप से यदि मैं दो भौतिकडिस्क काउंटरों पर टिप्पणी करता हूं तो मैं अपने कस्टम काउंटर काम कर रहा हूं (केवल अजीब नहीं)।

किसी भी मदद की बहुत सराहना की जाती है।

धन्यवाद दान

+1

क्या आपने कभी इसे हल किया है? मुझे यह सही समस्या है। एक समय में मेरे प्रदर्शन काउंटर स्थानांतरित हो रहे थे; लेकिन अब वे नहीं हैं और कॉन्फ़िगरेशन नहीं बदला है। –

उत्तर

2

तो इस मुद्दे को मैं 'स्टार्टअप' मैं काफी तथापि क्या एहसास नहीं था कि इस कोड को वास्तविक वेब/कार्यकर्ता भूमिका से अलग किया जाता है के दौरान सेटअप करने के लिए कोड प्रदर्शन काउंटर चल रहा था था कि स्टार्टअप के बाद चल रहा है। इसलिए, जब आपका वेब/कार्यकर्ता भूमिका तब शुरू होती है, उदाहरण के लिए global.asax में, आपको फिर से अपने प्रदर्शन काउंटर शुरू करने की आवश्यकता होगी।

+1

global.asax कोड के भाग के लिए है जो आईआईएस में चलता है। कार्यकर्ता की भूमिका में यह कैसे होगा? – sharptooth

+0

मैं वेब भूमिका के परिदृश्य में ग्लोबल.एक्सएक्स उदाहरण के लिए कह रहा था। – Danjuro

संबंधित मुद्दे