Elvas Tower: Performance Counters and Open Rails - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Performance Counters and Open Rails How to fix - Need to fix? Rate Topic: -----

#1 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,438
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 16 March 2020 - 01:17 PM

What is it with:log excerpt >>>

Quote

Warning: System.InvalidOperationException: Category does not exist.
at System.Diagnostics.PerformanceCounterLib.GetCategorySample(String machine, String category)
at System.Diagnostics.PerformanceCounterCategory.GetCounterInstances(String categoryName, String machineName)...


I used to get this warning with some routes, not all routes, lately I've started seeing it more.

I went to the Microsoft page indicated for a fix and, quite honestly, it appears beyond my skill to tackle. I suppose if I had done it a couple of times, it would be easier...but trying the fix for the first go around....daunting.
So what is it in OR that is provoking this warning, nothing else in my systems appears to have the problem, system is healthy. I've asked this question before and never have gotten a clear, easy to understand repsonse. Just wondering, it is perplexing.
Regards, Gerry

#2 User is offline   engmod 

  • Open Rails Developer
  • PipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 1,764
  • Joined: 26-February 08
  • Gender:Male
  • Location:Eltham, Victoria, Australia
  • Simulator:ORNYMG
  • Country:

Posted 16 March 2020 - 10:13 PM

I have fixed it and it went away!!
But after 2 months, it came back, and I have not bothered again.

#3 User is offline   engmod 

  • Open Rails Developer
  • PipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 1,764
  • Joined: 26-February 08
  • Gender:Male
  • Location:Eltham, Victoria, Australia
  • Simulator:ORNYMG
  • Country:

Posted 20 March 2020 - 11:36 PM

For anyone else that has this error, I just fixed mine with the following article:-

https://support.micr...-library-values

#4 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,438
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 21 March 2020 - 01:12 PM

Yep that's the page, but cannot find the files on my Win7 install disk?? searched it...nothing, not to say they are not there...but the instructions are not geared to help with a common problem that people ( according to wen search ) seem to have with windows. Any help?
If the files are on the disk, then you could assume that they would be the same for most people, why not supply them on the MS web sites.
I just searched " cannot find Perfc009.dat" and lo&behold...I'm not the first to ask that question...good old microsoft....cannot write complete, intelligible, instructions...no wonder they have trouble producing well crafted code.
Am looking into answers now... ( moments later ) >> It's like going down the rabbit hole...no time for this today. Anybody got the files for WIN7 professional 64 bit??? Perfc009.dat and Perfh009.dat
Okay, I kept at it and discovered that 7-zip could open the install.wim archive found the on Win7 installation CD. So ... just to be safe and not wanting to work from the CD I copied the archive to the desktop and used 7-zip to extract the files. Following the numerical scheme given below I located the correct folder and the files are there, now I'm going to store them for future use, in case ( like Derek said, the problem crops up again ). Also just as I suspected the original install "perf...009.dat" that need to be replaced are indeed identical for all versions.
Now on to the next part.

Quote

Or it is much easier to use 7-ZIP to open the archive (install.wim) and extract the files .

Those files are located in the following path

4/Windows/System32 within the archive

http://www.7-zip.org/



The four folders are

1 = Windows 7 Basic

2 = Home Premium

3 = Professional

4 = Ultimate

The files you are intesrested in are the same in all versions.





#5 User is offline   Monty 

  • Hostler
  • Group: Status: Active Member
  • Posts: 59
  • Joined: 01-February 14
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 21 March 2020 - 02:57 PM

You can turn any counters you select off permanently with a program from Microsoft called Exctrlst. Was available on their Windows support page also just do a google search. I had this same issue and it was showing up in Event Viewer in Windows also. The program works with all versions of Windows 7 and up. The documentation says it is for networks but that is not correct. It is fine on any computer.

#6 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,438
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 21 March 2020 - 03:23 PM

View PostMonty, on 21 March 2020 - 02:57 PM, said:

You can turn any counters you select off permanently with a program from Microsoft called Exctrlst. Was available on their Windows support page also just do a google search. I had this same issue and it was showing up in Event Viewer in Windows also. The program works with all versions of Windows 7 and up. The documentation says it is for networks but that is not correct. It is fine on any computer.

Does turning off the counters affect anything, or are they there just for microsoft gathering information? Thanks, but I still am left wondering why Open Rails uses the counters.
Appears that Exctrist is hard to find at MS, however, found this site with instructions >>>> https://www.myfavori...rfcounters.html


#7 User is offline   Monty 

  • Hostler
  • Group: Status: Active Member
  • Posts: 59
  • Joined: 01-February 14
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 21 March 2020 - 08:57 PM

The counters on/off do not affect the operation of OR in any way. They are present in programs for administrators mainly on networks only. Nothing goes back to Microsoft with performance counters. At work we only left a few hard disk counters active on our very large network. They are a pain in the A**e and you spend your time chasing them for nothing but statistics. They don't change how a program functions. Cheers

#8 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,438
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 27 March 2020 - 01:38 PM

Update>> I have not repaired the counters. I usually don't shut down the machine if I am just going to start up again the next day - just use sleep mode. So I decided to shut down and restart the machine. Upon restarting I ran the same route/activity combination and no problem with the performance counters...nothing in the log. Has been a little under a week and nothing, nada.
Miracle Healing.http://www.elvastower.com/forums/public/style_emoticons/default/unknw.gifhttp://www.elvastower.com/forums/public/style_emoticons/default/crazy.gifhttp://www.elvastower.com/forums/public/style_emoticons/default/lol.gif

#9 User is offline   eugenR 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 472
  • Joined: 15-April 13
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 28 March 2020 - 12:11 AM

View PostR H Steele, on 27 March 2020 - 01:38 PM, said:

Update>> I have not repaired the counters. I usually don't shut down the machine if I am just going to start up again the next day - just use sleep mode. So I decided to shut down and restart the machine. Upon restarting I ran the same route/activity combination and no problem with the performance counters...nothing in the log. Has been a little under a week and nothing, nada.
Miracle Healing.http://www.elvastower.com/forums/public/style_emoticons/default/unknw.gifhttp://www.elvastower.com/forums/public/style_emoticons/default/crazy.gifhttp://www.elvastower.com/forums/public/style_emoticons/default/lol.gif


I have observed since I am using W10, after some updates (perhaps this half a year-Updates), the Problem is repaired automatically.
No Idee what in OR is producing this Error.

Regards
EugenR

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users