This question is locked. New answers and comments are not allowed.
Hello,
Recently, I have been profiling my project and now for some reason it won't create the counters for the memory portion. I did reset the counters and the registry keys located in the troubleshooting topic in the documentation is mentions. However, neither of these have solved the problem. The exact message is listed below.
"Could not successfully create all performance counters Click here for troubleshooting instructions regarding this issue."
Thank you
Recently, I have been profiling my project and now for some reason it won't create the counters for the memory portion. I did reset the counters and the registry keys located in the troubleshooting topic in the documentation is mentions. However, neither of these have solved the problem. The exact message is listed below.
"Could not successfully create all performance counters Click here for troubleshooting instructions regarding this issue."
Thank you
7 Answers, 1 is accepted
0
Hello Bkoenig,
Thank you for reporting this.
Can you try once again with the troubleshooting guide, but this time with lodctr /r ? I have given you the needed strings below:
If the above does not help, I will need to know if there is a "DisablePerformanceCounters" key in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\.NETFramework\Performance and what is its value. You can check this with the registry editor in Windows (regedit).
Please, let me know what are the results.
Regards,
Kaloyan
Telerik
Thank you for reporting this.
Can you try once again with the troubleshooting guide, but this time with lodctr /r ? I have given you the needed strings below:
- For Windows XP - 7
unlodctr .NETFramework
lodctr /r %WINDIR%\Microsoft.NET\Framework\<Framework_ver>\CORPerfMonSymbols.ini
Where <Framework_ver> is the directory of the .NET Framework version which contains the CORPerfMonSymbols.ini file. It should be either v4.0.xxx or v2.0.xxx if 4.0 is not installed.
- For Windows 8
unlodctr .NETFramework
lodctr /r %WINDIR%\Inf\.NETFramework\CORPerfMonSymbols.ini
If the above does not help, I will need to know if there is a "DisablePerformanceCounters" key in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\.NETFramework\Performance and what is its value. You can check this with the registry editor in Windows (regedit).
Please, let me know what are the results.
Regards,
Kaloyan
Telerik
0

Bkoenig
Top achievements
Rank 1
answered on 18 Jul 2013, 12:48 PM
Hello Kaloyan,
Adding the switch to the command successfully ran, but the did nothing to fix the issue.
I also just wanted to note that this is machine is a Win 7 x64 for future reference. Details of this machine are available if need be.
I did look into the registry and that registry key does appear as a REG_DWORD and a hexadecimal value of 4.
Thank you
Adding the switch to the command successfully ran, but the did nothing to fix the issue.
I also just wanted to note that this is machine is a Win 7 x64 for future reference. Details of this machine are available if need be.
I did look into the registry and that registry key does appear as a REG_DWORD and a hexadecimal value of 4.
Thank you
0
Hello Bkoenig,
As I can say, such value of the DisablePerformanceCounters registry means that the performance counters have been disabled due to a failed access attempt. Can you open the event viewer and check for events coming from perflib? Please, send them with your next reply.
Further, you can try and enable the performance counters manually or using Exctrlst.exe (tool provided by Microsoft) and check if starting a JustTrace session won`t disable them again. For more information, please navigate to this link. Please, tell if simply enabling the counters solves the issue.
Thank you for the cooperation in advance.
Regards,
Kaloyan
Telerik
As I can say, such value of the DisablePerformanceCounters registry means that the performance counters have been disabled due to a failed access attempt. Can you open the event viewer and check for events coming from perflib? Please, send them with your next reply.
Further, you can try and enable the performance counters manually or using Exctrlst.exe (tool provided by Microsoft) and check if starting a JustTrace session won`t disable them again. For more information, please navigate to this link. Please, tell if simply enabling the counters solves the issue.
Thank you for the cooperation in advance.
Regards,
Kaloyan
Telerik
0

Bkoenig
Top achievements
Rank 1
answered on 19 Jul 2013, 02:18 PM
Hello Kaloyan,
Unfortunately I was unable to find any events relating to perflib. I did however find several errors and warnings from when I attempted to do the reload via lodctr.
7 warnings (1 each) for the following counters saying they couldn't be repaired. 7 errors (1 each) for counters failing to install because of "The first DWORD in the Data section contains the error code"
Unfortunately I was unable to find any events relating to perflib. I did however find several errors and warnings from when I attempted to do the reload via lodctr.
7 warnings (1 each) for the following counters saying they couldn't be repaired. 7 errors (1 each) for counters failing to install because of "The first DWORD in the Data section contains the error code"
WSearchIdxPi
usbhub
UGTHRSVC
UGatherer
RemoteAccess
.NET Data Provider for Oracle
From the looks of it, it tried installing it, it failed throwing an error, and then it tried repairing and threw a warning.
I also used the tool you suggested to attempt to resolve the problem. I did enable the .NET framework counter because it has the same address as the registry key mentioned. The issue still remains unresolved.
Thank you
0
Hello Bkoenig,
This seems more like an issue in your working environment than an issue coming from JustTrace.
However, to assist you on the matter, I would suggest rebuilding the Performance Counter Library values. Please, check this link for a step-by-step guidance. Note: Start with backing up the registry.
If the issue is still present after you have successfully rebuilt the Performance Counter Library, you may need to prevent Perflib from disabling counters as noted here. To do this go to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib from the RegEdit. Change the "Configuration Flags" subkey value to 0x2. If the subkey doesn't exist then create it as type REG_DWORD and give it a value of 0x2. More about the "Configuration Flags" subkey can be found here. Finally, you may need to use the excrtlst.exe once again to enable the missing performance counters (change the value of the "Disable Performance Counters" key to 0).
I hope this solves the issue on your side. Please, let me know with the results.
Regards,
Kaloyan
Telerik
This seems more like an issue in your working environment than an issue coming from JustTrace.
However, to assist you on the matter, I would suggest rebuilding the Performance Counter Library values. Please, check this link for a step-by-step guidance. Note: Start with backing up the registry.
If the issue is still present after you have successfully rebuilt the Performance Counter Library, you may need to prevent Perflib from disabling counters as noted here. To do this go to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib from the RegEdit. Change the "Configuration Flags" subkey value to 0x2. If the subkey doesn't exist then create it as type REG_DWORD and give it a value of 0x2. More about the "Configuration Flags" subkey can be found here. Finally, you may need to use the excrtlst.exe once again to enable the missing performance counters (change the value of the "Disable Performance Counters" key to 0).
I hope this solves the issue on your side. Please, let me know with the results.
Regards,
Kaloyan
Telerik
0

Bkoenig
Top achievements
Rank 1
answered on 26 Jul 2013, 03:47 PM
Hello,
I thought I would give a small update on the current situation. I haven't had time to complete the steps yet with a full schedule but I will complete this process this weekend.
Thank you
I thought I would give a small update on the current situation. I haven't had time to complete the steps yet with a full schedule but I will complete this process this weekend.
Thank you
0
Hi again Bkoenig,
I hope the steps lead to solution.
Please, notify me if you experience further matters.
Regards,
Kaloyan
Telerik
I hope the steps lead to solution.
Please, notify me if you experience further matters.
Regards,
Kaloyan
Telerik