{"id":169,"date":"2012-01-24T10:56:44","date_gmt":"2012-01-24T09:56:44","guid":{"rendered":"http:\/\/hirt.se\/blog\/?p=169"},"modified":"2012-02-09T10:58:18","modified_gmt":"2012-02-09T09:58:18","slug":"could-not-enumerate-processes-1-error","status":"publish","type":"post","link":"https:\/\/hirt.se\/blog\/?p=169","title":{"rendered":"Could not enumerate processes (1) error?"},"content":{"rendered":"<p>With JRockit, you may sometimes see the following warning when starting the JVM (on Windows):<\/p>\n<blockquote>\n<p><font face=\"Courier New\">[WARN ][osal ] Could not enumerate processes (1) error=-1073738819       <br \/>[WARN ][osal ] Could not add counter (null)\\ for query        <br \/>[WARN ][osal ] Failed to init virtual size counter<\/font><\/p>\n<\/blockquote>\n<p>It may also look something like this:<\/p>\n<blockquote>\n<p><code>[JRockit] WARNING: Could not initialize the virtualbytes counter, some functionality in jrockit.management.Memory will not be available. Message was: failed to create counter query. String was: (null)\\Virtual Bytes <\/code><\/p>\n<\/blockquote>\n<p><code><font face=\"Lucida Sans Unicode\">Or like this:<\/font><\/code><\/p>\n<blockquote>\n<p><code>[JRockit] WARNING: Could not initialize the JVM process load counter, CPU load generated by the JVM will not be available. Message was: failed to create counter query. String was: (null)\\% Processor Time<\/code><\/p>\n<\/blockquote>\n<p>This means the JRockit cannot access the relevant PDH counters. Sometimes the counter is disabled, and then it can simply be re-enabled.&#160; Worst case, the counters can be corrupt, and the metadata needs to be rebuilt from system backup store. <\/p>\n<p>To check the status of the counters, open a command prompt as admin, and run <font face=\"Courier New\"><strong>lodctr \/q<\/strong><\/font>, as follows:<\/p>\n<blockquote>\n<p><font face=\"Courier New\">C:\\Windows\\system32&gt;<strong>lodctr \/q<\/strong>        <br \/>Performance Counter ID Queries [PERFLIB]:        <br \/>Base Index: 0x00000737 (1847)        <br \/>Last Counter Text ID: 0x00001572 (5490)        <br \/>Last Help Text ID: 0x00001573 (5491)        <br \/>[.NET CLR Data] Performance Counters (Enabled)        <br \/>DLL Name: netfxperf.dll        <br \/>Open Procedure: OpenPerformanceData        <br \/>Collect Procedure: CollectPerformanceData        <br \/>Close Procedure: ClosePerformanceData        <br \/>First Counter ID: 0x00001092 (4242)        <br \/>Last Counter ID: 0x0000109E (4254)        <br \/>First Help ID: 0x00001093 (4243)        <br \/>Last Help ID: 0x0000109F (4255)        <br \/>[.NET CLR Networking] Performance Counters (Enabled)        <br \/>DLL Name: netfxperf.dll        <br \/>Open Procedure: OpenPerformanceData        <br \/>Collect Procedure: CollectPerformanceData        <br \/>Close Procedure: ClosePerformanceData        <br \/>First Counter ID: 0x00001086 (4230)        <br \/>Last Counter ID: 0x00001090 (4240)        <br \/>First Help ID: 0x00001087 (4231)        <br \/>Last Help ID: 0x00001091 (4241)        <br \/>[.NET Data Provider for Oracle] Performance Counters (Enabled)        <br \/>DLL Name: netfxperf.dll        <br \/>Open Procedure: OpenPerformanceData        <br \/>Collect Procedure: CollectPerformanceData        <br \/>Close Procedure: ClosePerformanceData        <br \/>First Counter ID: 0x00001068 (4200)        <br \/>Last Counter ID: 0x00001084 (4228)        <br \/>First Help ID: 0x00001069 (4201)        <br \/>Last Help ID: 0x00001085 (4229)        <br \/>&#8230;<\/font><\/p>\n<\/blockquote>\n<p>If it says (Disabled) next to a provider, the provider can be enabled with: <\/p>\n<blockquote>\n<p><font face=\"Courier New\">C:\\Windows\\system32&gt;<strong>lodctr \/e:&lt;provider name&gt;<\/strong> <\/font>(where &lt;provider name&gt; is the string between the brackets at the beginning of the entry).<\/p>\n<\/blockquote>\n<p>If the performance counters still behave badly, rebuild them from system backup store by running:<\/p>\n<blockquote>\n<p><font face=\"Courier New\">C:\\Windows\\system32&gt;<strong>lodctr \/r<\/strong><\/font><\/p>\n<\/blockquote>\n<p>Some counters may still be disabled after this. Use <strong>lodctr \/q<\/strong> and <strong>lodctrl \/e<\/strong> as described above to enable the ones you need.<\/p>\n<p>If lodctrl is not available on your version of Windows, <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc938557.aspx\">this article<\/a> may help.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With JRockit, you may sometimes see the following warning when starting the JVM (on Windows): [WARN ][osal ] Could not enumerate processes (1) error=-1073738819 [WARN ][osal ] Could not add counter (null)\\ for query [WARN ][osal ] Failed to init virtual size counter It may also look something like this: [JRockit] WARNING: Could not initialize [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-169","post","type-post","status-publish","format-standard","hentry","category-java-mission-control-fair-dj"],"_links":{"self":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=169"}],"version-history":[{"count":1,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":178,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions\/178"}],"wp:attachment":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}