Menu

#7 Cannot access performance Data

open
nobody
None
2
2006-11-21
2005-06-20
Anonymous
No

Hello,
I cannot access the performance data :
RegistryKey r = new RegistryKey
(RootKey.HKEY_PERFORMANCE_DATA ,"");
thows an exception

Exception in thread "main"
ca.beq.util.win32.registry.RegistryException: Attempt
to open registry key "(null)" failed with error code 6
at
ca.beq.util.win32.registry.RegistryKey.hasValues(Native
Method)
at Mregistry.main(Mregistry.java:39)

I try to retreive the perf data counters values.

I am doing something wrong?

thanks

Discussion

  • Matt Hilliard

    Matt Hilliard - 2005-06-23

    Logged In: YES
    user_id=969951

    Having never cared anything about HKEY_PERFORMANCE_DATA, the
    fact it has bizarre calling semantics--different than all
    the other HKEYs (and a Microsoft kludge, if ever I saw
    one)--got overlooked.

    I think we can safely classify this as either a bug, since
    we should never call RegOpenKey using this HKEY, yet we try
    and make that happen nonetheless; or as a feature request
    since using this HKEY isn't part of the normal use case
    under Windows and it would be boonful to add it..

    From the bugfix standpoint, we should remove performance
    from the rootkeys.

    From the feature request standpoiont, we'll need to add some
    convoluted logic in the native code to deal with it as a
    special case, and we'll need to spec out the semantics of
    how jRK will wrap it, since it is a different beast than the
    rest of the Registry interface. I'm leaning more in this
    direction since it will be more interesting, but it will
    definitely take some time to get it all "looking pretty."

    In the meantime, while the sematince of all of this get
    sorted out, the bottome line is we don't support this HKEY.

    Matt

     
  • Matt Hilliard

    Matt Hilliard - 2005-06-23
    • priority: 5 --> 6
    • assigned_to: nobody --> bayblade
     
  • Nobody/Anonymous

    Logged In: NO

    Thanks a lot for clarifying.

     
  • Matt Hilliard

    Matt Hilliard - 2005-07-06

    Logged In: YES
    user_id=969951

    Hey.
    In tracking down the data representations, I've discovered
    there are no performance counters on my system. I don't
    really want to get too tied up with the mess of creating
    counters, if I do, this issue is going further on the
    backburner--is there a simple way to get a representative
    performance counter installed on my system?

    --Matt

     
  • Matt Hilliard

    Matt Hilliard - 2006-03-02
    • assigned_to: bayblade --> nobody
     
  • Nobody/Anonymous

    Logged In: NO

    Can you sort out the bug where if you go too deep and find
    a node with values AND other nodes, it will not see the
    other nodes just the values. This is very annoying.

     
  • Matt Hilliard

    Matt Hilliard - 2006-07-10

    Logged In: YES
    user_id=969951

    Sure. Can you file this as its own bug please and give me
    some *useful* info like what key you see this on, what sub
    keys I should be seeing, and what operating system this
    occurs on?
    Hand waving at a bug I've never seen before and have maybe
    20 minutes a week to track is also very annoying.

     
  • Matt Hilliard

    Matt Hilliard - 2006-11-21
    • priority: 6 --> 2
     

Log in to post a comment.

MongoDB Logo MongoDB