<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Comment Feed for perfmon counters are corrupted (TechOff on Channel 9)</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/forums/techoff/59699-perfmon-counters-are-corrupted/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Comment Feed for perfmon counters are corrupted (TechOff on Channel 9)</title><link>http://channel9.msdn.com/forums/TechOff/59699-perfmon-counters-are-corrupted/</link></image><description>perfmon counters are corrupted</description><link>http://channel9.msdn.com/forums/TechOff/59699-perfmon-counters-are-corrupted/</link><language>en-us</language><pubDate>Wed, 27 Apr 2005 16:50:48 GMT</pubDate><lastBuildDate>Wed, 27 Apr 2005 16:50:48 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>Re: perfmon counters are corrupted</title><description>Given the timespan between comments, I added a second comment instead of editing.&amp;nbsp; &lt;BR&gt;&lt;BR&gt;I found that while the performance counters were there, the .Net performance counters were missing.&amp;nbsp; After some hunting, I found this:&lt;BR&gt;&lt;BR&gt;&lt;a href="http://blogs.msdn.com/mikedodd/archive/2004/10/17/243799.aspx"&gt;http://blogs.msdn.com/mikedodd/archive/2004/10/17/243799.aspx&lt;/a&gt;&lt;BR&gt;&lt;BR&gt;I followed the directions, but I also did a lodctr on:&lt;BR&gt;&lt;BR&gt;aspnet_perf.ini&lt;BR&gt;aspnet_perf2.ini&lt;BR&gt;corperfmonsymbols.ini (described above in the link)&lt;BR&gt;_dataperfcounters.ini&lt;BR&gt;_Networkingperfcounters.ini&lt;BR&gt;&lt;BR&gt;We'll see if it worked.&lt;BR&gt;&lt;BR&gt;Edit:&lt;BR&gt;&lt;BR&gt;Well, that caused some duplicates.&amp;nbsp; I'm going to simply follow the directions in the link above and only lodctr the corperfmonsymbols to see if that works.&amp;nbsp; I'm not too worried about the asp perf symbols at this point.&lt;BR&gt;&lt;BR&gt;Edit:&lt;BR&gt;That worked.&amp;nbsp; I'm missing the asp.net perf counters, but it appears that aspnet_perf.ini and aspnet_perf2.ini are identical except for their date.&lt;BR&gt;&lt;BR&gt;After running &lt;STRONG&gt;lodctr aspnet_perf.ini&lt;/STRONG&gt; all was well.&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;To summarize, follow these steps to restore your counters:&lt;BR&gt;&lt;BR&gt;1) &lt;a href="http://support.microsoft.com/?kbid=300956"&gt;KB300956&lt;/a&gt;&amp;nbsp;this will clear you out.&lt;BR&gt;2)&amp;nbsp;To fix .Net performance counters&amp;nbsp;&lt;a href="http://blogs.msdn.com/mikedodd/archive/2004/10/17/243799.aspx"&gt;Click Here&lt;/a&gt;&lt;BR&gt;3) To fix Asp.Net performance counters,&amp;nbsp;head to your c:\winnt\Microsoft.net\framework\v1.1.4322&amp;nbsp;path and type:&amp;nbsp; &lt;STRONG&gt;lodctr aspnet_perf.ini&lt;/STRONG&gt;&lt;BR&gt;&lt;BR&gt;I should really write a quick app that does this...</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/59699-perfmon-counters-are-corrupted/?CommentID=61106</link><pubDate>Wed, 27 Apr 2005 16:50:48 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/59699-perfmon-counters-are-corrupted/?CommentID=61106</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/61106/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Given the timespan between comments, I added a second comment instead of editing.&amp;nbsp; I found that while the performance counters were there, the .Net performance counters were missing.&amp;nbsp; After some hunting, I found this:http://blogs.msdn.com/mikedodd/archive/2004/10/17/243799.aspxI followed&amp;#8230;</evnet:previewtext><dc:creator>ScanIAm</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/61106/Trackback.aspx</trackback:ping></item><item><title>Re: perfmon counters are corrupted</title><description>&lt;P&gt;This took me a few days to return to, but I appreciate your help.&amp;nbsp; KB300956 may actually be the solution, if you know how to expand cab files (I thought I did, but I was wrong).&amp;nbsp; Turns out, that unless you specify the destination file name, the expanded file is expanded and copied, but it isn't renamed to the correct name.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;For example, the files were called perfc009.da_ instead of perfc009.dat.&amp;nbsp; Once I figured this out, I ran a windiff, and you are correct.&amp;nbsp; The files are duplicates (i.e. perfd009.dat == perfc009.dat and perfi009.dat == perfh009.dat).&lt;/P&gt;
&lt;P&gt;Once I renamed these files and rebooted, I was able to see my performance counters again.&amp;nbsp; Now, I need to redo the lodctr.exe on each .ini file and reboot again.&amp;nbsp; I'm sure this will work now that the perfnxxx.dat files are correct.&lt;/P&gt;
&lt;P&gt;I did have a question, though.&amp;nbsp; You mentioned in your response that there were a few recommended ways to deal with perf counters.&amp;nbsp; I will take a look at this and I agree with you that setting these up once and only using them from the app is a better way to do this, but the method I was using was through .Net using the CounterCreationData and PerformanceCounterCategories classes.&amp;nbsp; Shouldn't those work as well?&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&amp;nbsp;&lt;/P&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/59699-perfmon-counters-are-corrupted/?CommentID=61083</link><pubDate>Wed, 27 Apr 2005 15:31:02 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/59699-perfmon-counters-are-corrupted/?CommentID=61083</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/61083/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>This took me a few days to return to, but I appreciate your help.&amp;nbsp; KB300956 may actually be the solution, if you know how to expand cab files (I thought I did, but I was wrong).&amp;nbsp; Turns out, that unless you specify the destination file name, the expanded file is expanded and copied, but it&amp;#8230;</evnet:previewtext><dc:creator>ScanIAm</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/61083/Trackback.aspx</trackback:ping></item><item><title>Re: perfmon counters are corrupted</title><description>The &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/adding_counter_names_and_descriptions_to_the_registry.asp"&gt;recommended way&lt;/a&gt; of adding new performance counters is to use lodctr.exe, or the &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/loadperfcountertextstrings.asp"&gt;LoadPerfCounterTextStrings&lt;/a&gt;&amp;nbsp;API.&lt;BR&gt;&lt;BR&gt;How far did you get with KB300956? I suspect that you've only corrupted the information in the Counter and Help values, so you shouldn't need to restore the DAT files.&lt;BR&gt;&lt;BR&gt;Looking at the DATs, it looks like they're simply copies of the Counter and Help values. Also, it looks like perfd009.dat is the original version of perfc009.dat, and perfi009.dat the original of perfh009.dat (you may not have these files, I'm looking at Windows XP SP2 here). I don't know whether the performance counter APIs actually use these DAT files or the registry values directly.&lt;BR&gt;&lt;BR&gt;So a possible fix would be to load the files up in their entirety and use RegSetValueEx to put the data back into the registry. I'm NOT claiming that this will work. I'm just saying it's a possibility. Use at your own risk.&lt;BR&gt;&lt;BR&gt;If this does work you should leave a note on the KB article feedback indicating that replacing the DATs isn't enough.&lt;BR&gt;&lt;BR&gt;If that doesn't work I think it's reinstall time. You can reinstall without losing your existing settings by following the instructions in KB292175 - &lt;a href="http://support.microsoft.com/kb/292175"&gt;How to perform an in-place upgrade of Windows 2000&lt;/a&gt;.</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/59699-perfmon-counters-are-corrupted/?CommentID=59925</link><pubDate>Sat, 23 Apr 2005 21:05:45 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/59699-perfmon-counters-are-corrupted/?CommentID=59925</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/59925/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>The recommended way of adding new performance counters is to use lodctr.exe, or the LoadPerfCounterTextStrings&amp;nbsp;API.How far did you get with KB300956? I suspect that you've only corrupted the information in the Counter and Help values, so you shouldn't need to restore the DAT files.Looking at&amp;#8230;</evnet:previewtext><dc:creator>Mike Dimmick</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/59925/Trackback.aspx</trackback:ping></item></channel></rss>