Skip to main content

Troubleshoot: Event ID 1017 - Performance Library Availability

In this article, let’s discuss about the Performance Counters. They’re available as built-in to the operating system and from the non-Microsoft vendors. Both are combined and available in the Performance Library. Windows Reliability and Performance Monitor are some of the Performance Monitoring applications and they’re using the Performance Library to identify the available counters to map to the counter providers. Errors accessing the Performance Library may result in application errors when expected data cannot be found, or when expected data providers are unavailable.
Let’s have the below example.
Event Details



























Product:Windows Operating System
ID:1017
Source:Microsoft-Windows-Perflib
Version:6.1
Symbolic Name:PERFLIB_LIBRARY_DISABLED
Message:Disabled performance counter data collection from the "%1!s!" service because the performance counter library for that service has generated one or more errors. The errors that forced this action have been written to the application event log. Correct the errors before enabling the performance counters for this service.

Diagnosing the cause
Following are the possible causes:
• A non-Microsoft DLL caused the error.
• The list of counters is corrupt.
• The Remote Registry service is not running on a remote system.
• The File and Printer Sharing firewall exception is not enabled on a remote system running Windows Vista.
• The application is running as a user with insufficient privileges.


A non-Microsoft DLL caused the error
You can follow the steps provided in the section titled "Contact a vendor" to obtain a newer copy of the DLL file.

The list of counters is corrupt
The registry might be corrupted, if the performance counter isn’t able to unload the strings for the specified service. If you wish to correct this problem, you can go with the steps provided in the section "Rebuild the list of available counters."

The Remote Registry service is not running on a remote system
On the destination system, the Remote Registry service must be running in order to collect the performance counters remotely. Membership in the destination system’s local Administrators group is required to change the service settings.
How to check if the Remote Registry service is running?

1. On the destination system, click Start.
2. First, click Start on the destination system.
3. Then, type compmgmt.msc in the search box and then press the Enter key to open the Microsoft Management Console (MMC) window.
4. Now, in the navigation tree, it is required to expand the “Services and Applications” and then select Services.
5. After that, select Remote Registry from the services list.
6. Then, check if the status of the Remote Registry service is started.
7. If not, you can resolve the error by selecting the “Enable the Remote Registry” service.
The File and Printer Sharing firewall exception should be enabled on the destination system as it isn’t enabled on the computers running Windows Vista.
Membership in the destination computer's local Administrators group is required to change firewall settings.
How to check File and Printer Sharing firewall exception settings?
1. Open the Control Panel on the destination system from the start menu.
2. Now, select firewall by typing it in the search box.
3. After that, double click Windows Firewall.
4. Now, click on Change Settings.
5. Then, it is required to check if File and Printer sharing is selected on the Exceptions tab.
6. If it is not, follow the steps in the section titled "Enable the File and Printer Sharing firewall exception on a remote system running Windows Vista" to resolve the error.
The application is running as a user with insufficient privileges
In order to view the performance counters, you should be a member of the local Performance Monitor Users group, Performance Log Users Group, Administrators group or equivalent. Applications that run as a user or system account with insufficient privileges may not be able to load performance counters correctly. Follow the steps in the section titled "Run the application as a user with sufficient privileges" to identify a resolution.
How to resolve
To resolve this issue, use the resolution that corresponds to the cause you identified in the Diagnose section. After performing the resolution, see the Verify section to confirm that the feature is operating properly.



























Product:Windows Operating System
ID:1017
Source:Microsoft-Windows-Perflib
Version:6.1
Symbolic Name:PERFLIB_LIBRARY_DISABLED
Message:Disabled performance counter data collection from the "%1!s!" service because the performance counter library for that service has generated one or more errors. The errors that forced this action have been written to the application event log. Correct the errors before enabling the performance counters for this service.

 

Contact a vendor
The first option is that you can contact the vendor who provided the performance counter DLLs.
Rebuild the list of performance counters
It is required to have the membership in the local Administrators group to complete the following the steps.
To rebuild the list of counters in the registry:
1. Click Start, expand All Programs, and expand Accessories.
2. Right-click Command Prompt, and then click Run as administrator.
3. At the command prompt, type lodctr /r, and then press ENTER.
Re-enable a required DLL
Now, let’s discuss about enabling the performance library DLL. Make sure that you’ve the membership in the local Administrator group to perform these steps.
1. Click Start, click All Programs, and then click Accessories.
2. Right-click Command Prompt, and then click Run as administrator.
3. At the command prompt, type lodctr /e: and then press ENTER, where is the name of the library, for example "PerfOS". The DLL name is found in the event message details.
How to run the application as a user with sufficient privileges?
By default, an application runs with the same privileges as the user who started it. However, you can configure the services to run as the local system account or as a specific user. You can also start an application as Administrator, but in Windows Vista or Windows Server 2008 with User Account Control enabled, you must confirm that you want to start the application each time it runs if it is configured to run as Administrator.
Consider running services that collect performance counter data as the local system account to resolve privilege issues. If for security reasons you do not want to run the application or service as the local system account, you can add the user the application runs as to the Performance Log Users group and assign the group the Log on as a Batch Job user right to enable performance counter collection each time the application runs.
Make sure that you’re a member of the destination computer’s local administrator group to do the following steps.
Add a user to the Performance Log Users group
1. As we discussed above, click Start, click in the Start Search box, type compmgmt.msc, and then press ENTER.
2. Now, it is required to expand System Tools and Local Users and Groups.
3. Then, click on Groups and right click on the Performance Log Users to click Add to Group.
4. After that click Add from the General tab.
5. Now, it is required to type the name of the user you wish to add.
6. You may also click Advanced to search the directory for a user to be added.
7. If you’ve done with this thing, click OK and click OK again to close the Performance Log Users property page.

Assign the Log on as a batch job user right to the Performance Log Users group
If you’re a member of the Performance Log Users group and you wish to initiate the data logging or modify Data Collectors Sets, the group must first be assigned the Log on as a batch job user right. To assign this user right, use the Local Security Policy snap-in in Microsoft Management Console (MMC).

To assign the Log on as a batch job user right to the Performance Log Users group:
1. Click Start, click in the Start Search box, type secpol.msc, and then press ENTER. The Local Security Policy snap-in will open in Microsoft Management Console.
2. In the navigation pane, expand Local Policies and click User Rights Assignment.
3. In the console pane, right-click Log on as a batch job and then click Properties.
4. In the Properties page, click Add User or Group.
5. In the Select Users or Groups dialog box, click Object Types. Select Groups, and then click OK.
6. Type Performance Log Users in the Select Users or Groups dialog box, and then click OK.
7. Click OK again to close the property page.
Enable the File and Printer Sharing firewall exception on a remote system running Windows Vista
The File and Printer Sharing firewall exception in Windows Vista and Windows Server 2008 should be enabled on the destination computer before performance counters can be collected remotely.
Membership in the destination computer's local Administrators group is required to change firewall settings.
How to enable the File and Printer Sharing firewall exception?
1. On the destination computer, click Start and then click Control Panel.
2. In the Control Panel search box, type firewall.
3. In the search results, double-click Windows Firewall.
4. In Windows Firewall, click Change settings.
5. On the Exceptions tab, select the File and Printer Sharing check box.
How to enable the Remote Registry service?
Membership in the destination computer's local Administrators group is required to complete this procedure.
To enable the Remote Registry service:
1. On the destination system, click Start.
2. In the Start Search text box, type compmgmt.msc, and then press ENTER. Microsoft Management Console (MMC) will start.
3. In the navigation tree, expand Services and Applications and click Services.
4. In the Services list, right-click Remote Registry, and then click Start.
Verify
In order to verify if the network performance counters are properly collected and displayed in a Performance Monitor graph, you can use Windows Reliability and Performance Monitor. At the same time, you can use the typeperf command to get the list of the available counters on the local system.
Membership in the local Administrators group is required to complete these procedures.
How to view counters in Performance Monitor?
1. First, click on Start, type perfmon.exe in the search box and pres the enter key.
2. Now, on the navigation pane, it is required to expand Monitoring Tools and then click Performance Monitor.
3. After that, it is required to click the Add button to open the list of available performance counters.
4. Then, click Help from the Add Counters dialog box to view more information on adding the counters.
5. Once you’ve done with adding the counters, it is required to click OK.
6. Then, verify that the performance counters you selected are displayed in the Performance Monitor graph.

To view a list of counters at the command prompt:
1. First open the Run Command as the administrator.
2. Then, in the command prompt type typeperf –qx and press the enter key.
3. After that, you can verify that the performance counter list contains the expected values.
4. Try it out!!!

 

B y

Popular posts from this blog

New Micro battery, power packed for high performance

For a size of a few millimetres, the new micro-batteries are powerful enough to jump start a car battery and then quickly charge the cell phone. Researchers from the University of Illinois have developed the micro batteries which can be used to drive compact electronic devices and new applications for radio communications. The micro batteries are so good that they can even out power the super capacitors. The results were published in ‘Nature Communications’ in the April 16 issue. The micro batteries have energy and power and with the researchers tweaking the structure of the micro batteries a little bit, its use can be for wide range applications.

The high performance of the micro battery is based on its 3-dimensional micro-structure. Based on the design of fast charging cathode by Professor Paul Braun’s group, researchers developed the matching anode and integrated it with the fast charging cathode at a micro-scale and made a complete battery with high performance. These batteries cou…

HTC Touch Diamond SmartPhone!

The phones design is an innovative in which the user has the geometric form language to make sure a clutter-free environment for screening content. The San Francisco based studio One & Co collaborated with HTC Taiwan Design team to create Diamond HTC smartphone.







The HTC phone is quite wonderful with design and the rapid development in the smartphone market the HTC has taken innovative steps to capture the SmartPhone market HTC develops these kind of new inventive designs.
Inspired

How to Automatically Convert any RSS Feed to an iPhone Web app!

For iPhone users this is another web app which converts any well formed XML RSS feed to an iPhone version. It is possible because it is worked with the typical sliding style interface to suit the iPhone optimized version. For instance if you had the iPhone right now here is the Google News Feed




Jim Liddle, one of the creators of the service, told iPhone Atlas “You can book mark the generated site and use it to host your own content and reference it from your own. It seems that these feed on your iPhone is quiet usable.