,Japan

en[EVENT1020] Perflib error repair procedure
This article is about the Perflib error that is recorded in the event log when updating to Windows 10 May 2019 Update, version 1903 [Event ID 1020].
Since it is [Level: Error], it is a log that I would like to recover personally.
The following keywords are recorded in the event log.
- Perflib: performance counter libraries
- LSM: Local Session Manager
- perfts.dll
This log reports that something is wrong with perflib (performance counter library).
The LSM registered with the Windows service was working properly.
LSM
Local Session ManagerA core Windows service that manages local user sessions. Stopping or disabling this service will cause system instability.
[LSM Properties]
- Executable path: C:\WINDOWS\system32\svchost.exe -k DcomLaunch -p
- Startup type: Automatic
- Service status: Running

Well, the main subject.
In conclusion, there was a problem with perfts.dll.When I run the repaired steps in the past, 1020 events are no longer logged.
[procedure]
- Rebuild performance counters
- Rebuild perfts.dll
Event Log
The event log is reprinted.message | The required buffer size exceeds the buffer size passed to the Collect function of the "LS:" service "C:\Windows\System32\perfts.dll" Extensible Counter DLL. The buffer size specified was 27696 and the required size was 35616. |
log name | Application |
Source | Perflib |
Event ID | 1020 |
level | error |
user | SYSTEM |
Repair procedure
There are two steps.- Rebuild performance counters
- Rebuild perfts.dll
Specifically:
Step A
If you see Perflib errors or warnings in the event log, rebuilding the performance counters may help.Run the following command from a command prompt (or Windows PowerShell) started in administrator mode.
> lodctr /R
>_
| Administrator: Windows PowerShell | ー □ × |
PS C:\WINDOWS\system32 >lodctr /R Info: Successfully rebuilt performance counter settings from system backup store |
Step B
PerfIniFile is required to rebuild perfts.dll.I found lagcounterdef.ini in\LSM\Performance when I searched perfts.dll in Registry Editor.
PerfIniFile = lagcounterdef.ini

Set lagcounterdef.ini in the argument of the LODCTR command and rebuild (initialize) perfts.dll.
> LODCTR ...\lagcounterdef.ini
>_
| Administrator: Windows PowerShell | ー □ × |
PS C:\WINDOWS\system32 >lodctr C:\Windows\INF\LSM\0411\lagcounterdef.ini |
If no error message is displayed, the rebuild of perfts.dll is successful.
For example, if you see the following message, check the location of the INI file.
Initialization file ...\lagcounterdef.ini not found
Summary
Logs recorded as [Source: Perflib] are events related to performance counters.If the log level is warning, it is possible to leave it alone and observe it, but I would like to fix the error.
I will review how to find the lagcounterdef.ini used this time.
[procedure]
- Start Registry Editor
- Search by DLL file name (eg perfts.dll)
- Check the value of PerfIniFile (Example: lagcounterdef.ini)
When the DLL and INI file names are different, you can search according to the following rules.
C:\Windows\INF\\0411\xxx.ini
Here is a working example of Registry Editor.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LSM\Performance

External link
Validation: Windows 10 Pro May 2019 Update, v1903.18362.239
en-event の記事 (Articles about the en-event)
- Windows 11 22H2 and the event log (tak)
- en[EVENT131] Metadata staging failed
- en[EVENT7009] Service Control Manager (SCM)
- en[EVENT2484] Tile Database Corruption
- en[Event ID 10016] How to fix PerAppRuntimeBroker error
- en[Event3] Kernel-EventTracing Microsoft Security Client OOBE
- en[EVENT2002] Eap method DLL path
- en[EVENT333] ESENT error (taskhostw, WebCacheV01.dat)
- en[EVENT10016] Windows.SecurityCenter.WscBrokerManager, APPID not available
- en[EVENT34] Cancel power saving setting of power management of Bluetooth HID device
- en-event ラベルの記事(要約付)
- Japan が含まれる記事(要約付)
新着順 (New arrival order)
- 【2024年度】藤井七冠(最優秀棋士)、羽生九段現役続行と会長退任を表明
- 【バグ】TVerRec 3.4.2 のリネーム処理不具合とその原因を考察
- 【恐怖】ポンジスキームとは?歴史から学ぶ詐欺の仕組み
- 【終息】TVerRec 3.3.9(暫定)で機能制限ほぼ解除、3.4.0リリース!
- 【緊急】TVerRec 3.3.6緊急リリース!仕様変更に暫定対応
- 【未解決】TVerRecダウンロード不具合!TVerの仕様変更かも?
- 【昇級/降級】全棋士ランキング確定、伊藤匠叡王B1へ昇級、羽生九段B2へ降級
- 【将棋】なぜ藤井聡太は人々を魅了するのか?【2024年度振り返り】
- 【更新】Lhaz 2.5.4リリース!法人利用が有料化へ
- 【Pixel 3月/2025】カメラ、WebView 、Bluetooth、電話のバグ修正【Android 15】
タイトル:en[EVENT1020] Perflib error repair procedure:SC2
このサイトを検索 | Search this site