Could not successfully create all performance counters

8 posts, 0 answers
  1. Greg
    Greg avatar
    12 posts
    Member since:
    May 2014

    Posted 07 Jul 2015 Link to this post

    After installing JustTrace on my Win 7 64 bit machine I have been unable to use the memory profiler.  Each time I try to run our application within the profiler, I receive the message "Could not successfully create all performance counters".  Two of my colleagues can run it with no problems on similar machines.

    I have tried running CleanRegistryKeys_x64.reg and re-registering the counters with unlodctr and lodctr, no difference.

    There is no "DisablePerformanceCounters" key in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\.NETFramework\Performance.

    I've run out of ideas on how to fix this so any help would be appreciated.

    Thanks

  2. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 10 Jul 2015 Link to this post

    Hello Greg,

    Thank you for contacting us.

    Could you please check if the steps from this JustTrace forum post will help you out? Please, let me know if you will require further assistance.

    Regards,
    Kaloyan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. Greg
    Greg avatar
    12 posts
    Member since:
    May 2014

    Posted 13 Jul 2015 in reply to Kaloyan Link to this post

    Kaloyan,

    Thanks for your reply.  I had already read through that post and tried the various suggestions, but still had the same result.  I have not tried enabling the performance counters with Exctrlst.exe or rebuilding them manually, since they do not seem to be disabled.  I have tried unlodctr and lodctr (with and without /r) multiple times and all seemed to run successfully - same message when running JustTrace.

    I have also tried uninstalling and reinstalling JustTrace but still have the same result.

     

  5. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 16 Jul 2015 Link to this post

    Hi Greg,

    I think it will be best if we first understand where the issue actually is. For that purpose, can you please follow the next steps in order to check that the performance counters really work on your side:

    1. Go to the Windows Start menu type perfmon and hit Enter. This will run the Performance Monitor, as we will use it to check that indeed the performance counters work on your side.

    2. There, navigate to the "Performance Monitor" from the tree list and right click on the graph. Then click on  "Add Counters.."

    3. Once inside the Add Counters window, go to ".NET CLR Memory" in the available counters list, select all of them and press Add, then confirm with OK.
    4. Run any .net program (Visual Studio for example) and observe if Performance Monitors reads the changed values of the counters.
    5. Tell us what happened!

    I am looking forward to your reply.

    Regards,
    Kaloyan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Greg
    Greg avatar
    12 posts
    Member since:
    May 2014

    Posted 16 Jul 2015 in reply to Kaloyan Link to this post

    Kaloyan,

    After following your instructions and then starting Visual Studio, Performance Monitor definitely shows the changed values of the counters in the graph.

     ​

     

  7. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 21 Jul 2015 Link to this post

    Hi Greg,

    Thank you for checking this for us. It means that the issue most likely resides in JustTrace, or in the profiled application. In order to determine this, can you please profile another .NET application and share the results with us. For example, you can start a memory profiling session for the DemoRayTracer.exe file. You will find it in the Libraries folder (normally, under: C:\Program Files (x86)\Telerik\JustTrace\Libraries) of the JustTrace installation destination.

    I am looking forward to your reply. Thank you for the cooperation once again.

    Regards,
    Kaloyan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  8. Greg
    Greg avatar
    12 posts
    Member since:
    May 2014

    Posted 21 Jul 2015 in reply to Kaloyan Link to this post

    JustTrace memory profiling for Demo.RayTracer.exe worked fine, no performance counter errors.
  9. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 22 Jul 2015 Link to this post

    Hi again Greg,

    Could you please share what is your application and how do you start a memory profiling session for it? It will be even better if you can share a sample app that reproduces the faulty behavior within JustTrace.

    Thank you for the help once again.

    Regards,
    Kaloyan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner