<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Mfartura's blog : objects</title><link>http://blogs.technet.com/marcelofartura/archive/tags/objects/default.aspx</link><description>Tags: objects</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Perfmon's counters output format (tip)</title><link>http://blogs.technet.com/marcelofartura/archive/2006/09/14/perfmon-s-counters-output-format-tip.aspx</link><pubDate>Thu, 14 Sep 2006 03:38:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:456069</guid><dc:creator>Marcelo Fartura</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.technet.com/marcelofartura/comments/456069.aspx</comments><wfw:commentRss>http://blogs.technet.com/marcelofartura/commentrss.aspx?PostID=456069</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;The System Monitor (Perfmon.exe) reports the data gathered through some of its objects and counters with no formatting and depending on what kind of counters are you looking at, or how tired you are, sometimes&amp;nbsp;this can be confusing and even cause misinterpretation problems.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;As an example, take the counter&amp;nbsp;Processes::Virtual Bytes.&amp;nbsp; We normally have MBytes or even more than 1GByte being reported, however the output is still reported in bytes with thousands separators.&amp;nbsp; The following picture better illustrates this situation:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/photos/mfartura/picture456345.aspx" target=_blank mce_href="http://blogs.technet.com/photos/mfartura/picture456345.aspx"&gt;&lt;IMG src="http://blogs.technet.com/photos/mfartura/images/456345/630x476.aspx" border=0 mce_src="http://blogs.technet.com/photos/mfartura/images/456345/630x476.aspx"&gt;&lt;/A&gt;&lt;A href="file:///C:/Documents%20and%20Settings/mfartura/Application%20Data/Windows%20Live%20Writer/PostSupportingFiles/a717eb07-d087-4583-9197-5fd798cb8bba/image05.png" mce_href="file:///C:/Documents%20and%20Settings/mfartura/Application%20Data/Windows%20Live%20Writer/PostSupportingFiles/a717eb07-d087-4583-9197-5fd798cb8bba/image05.png" atomicselection="true"&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;The tip to fix it is provided by the article &lt;/FONT&gt;&lt;A href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;300884" mce_href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;300884"&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;KB300884 - How to: Display Comma Separators in Windows Performance Tool in Windows XP&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;and after changing the registry as instructed in the article, the System Monitor's output will be like the picture below:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/photos/mfartura/picture456344.aspx" target=_blank mce_href="http://blogs.technet.com/photos/mfartura/picture456344.aspx"&gt;&lt;IMG src="http://blogs.technet.com/photos/mfartura/images/456344/636x456.aspx" border=0 mce_src="http://blogs.technet.com/photos/mfartura/images/456344/636x456.aspx"&gt;&lt;/A&gt;&lt;A href="file:///C:/Documents%20and%20Settings/mfartura/Application%20Data/Windows%20Live%20Writer/PostSupportingFiles/a717eb07-d087-4583-9197-5fd798cb8bba/image08.png" mce_href="file:///C:/Documents%20and%20Settings/mfartura/Application%20Data/Windows%20Live%20Writer/PostSupportingFiles/a717eb07-d087-4583-9197-5fd798cb8bba/image08.png" atomicselection="true"&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Depending on what problem you're troubleshooting&amp;nbsp;you might want to use the Processes and Threads objects.&amp;nbsp; When choosing which process or which thread within a process we want to monitor, the System Monitor does not report a important information called Process ID for processes and Thread ID for the threads.&amp;nbsp;&amp;nbsp;Instead the&amp;nbsp;objects provide a separate counter named ID Process and ID Thread which are supposed to provide these information.&amp;nbsp; So another good tip, that might save you some time, is to create the following registry DWORD values:&lt;/FONT&gt;&lt;/P&gt;
&lt;H4&gt;&lt;FONT face=Verdana color=#004080 size=2&gt;&lt;STRONG&gt;KEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P align=left&gt;&lt;FONT face=Verdana color=#004080 size=2&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessNameFormat = 2&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P align=left&gt;&lt;FONT face=Verdana color=#004080 size=2&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ThreadNameFormat = 2&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P align=center&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;After restarting the System Monitor, the next time you need to use either the Process or Threads objects, they will appear followed by their ID information as illustrated in the pictures below:&lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;A href="file:///C:/Documents%20and%20Settings/mfartura/Application%20Data/Windows%20Live%20Writer/PostSupportingFiles/a717eb07-d087-4583-9197-5fd798cb8bba/image015.png" mce_href="file:///C:/Documents%20and%20Settings/mfartura/Application%20Data/Windows%20Live%20Writer/PostSupportingFiles/a717eb07-d087-4583-9197-5fd798cb8bba/image015.png" atomicselection="true"&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;FONT face=Verdana size=2&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/photos/mfartura/picture456343.aspx" target=_blank mce_href="http://blogs.technet.com/photos/mfartura/picture456343.aspx"&gt;&lt;IMG src="http://blogs.technet.com/photos/mfartura/images/456343/640x313.aspx" border=0 mce_src="http://blogs.technet.com/photos/mfartura/images/456343/640x313.aspx"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#ff0000 size=2&gt;&lt;STRONG&gt;Thank you Brian for the Tip!!!!&amp;nbsp; It has been saving a lot of my time :)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=456069" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/marcelofartura/archive/tags/Tip/default.aspx">Tip</category><category domain="http://blogs.technet.com/marcelofartura/archive/tags/objects/default.aspx">objects</category><category domain="http://blogs.technet.com/marcelofartura/archive/tags/Perfmon/default.aspx">Perfmon</category><category domain="http://blogs.technet.com/marcelofartura/archive/tags/decimal/default.aspx">decimal</category><category domain="http://blogs.technet.com/marcelofartura/archive/tags/counters/default.aspx">counters</category><category domain="http://blogs.technet.com/marcelofartura/archive/tags/Output/default.aspx">Output</category></item></channel></rss>