How to Collect a Debug Log for StellarEnforce (SPLM) Performance Issues
  • 21 Feb 2024
  • 2 Minutes to read

How to Collect a Debug Log for StellarEnforce (SPLM) Performance Issues


Article summary

Summary

A step-by-step guide on how to collect a Debug Log for StellarEnforce (SPLM) Performance Issues. This can be achieved in two ways:

  • Generate a Performance Report with StellarEnforce
  • Set Up Windows Performance Recorder and Generate a Log

Applicable Version

StellarEnforce 1.0 - 1.3


Details

Generate a Performance Report with StellarEnforce

  1. Stop StellarEnforce service. (Slcmd.exe stop service)
  2. Create a registry value as follows:
HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\SafeLock\2\DebugLog
“EnableProfiling”=dword:00000001
  1. Start StellarEnforce service. (Slcmd.exe start service)
  2. Perform some tasks related to the issue.
  3. Stop StellarEnforce service. (Slcmd.exe stop service)
  4. Find the file perf_report.logat <wk_installed_folder>\log.
    image.png

You don't need to enable debug logging to generate this report. In fact, it's advisable to disable debug logging while measuring performance.

Setting Up Windows Performance Recorder and Generating a Log

  • Microsoft provides a tool called Windows Performance Recorder (WPR) that can record all activities on Windows.
  • It is a part of the Windows Performance Toolkit, which is included in the Windows Assessment and Deployment Kit.
  • If you are running a 64-bit OS, add the following registry setting and then reboot:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\M
“DisablePagingExecutive”=DWORD:1



Setting Up Windows Performance Recorder: Windows 8 and Later
Preparation

  1. Download Windows ADK for Windows 10.
  2. Select only Windows Performance Toolkit during the installation process.
    image.png



Setting Up Windows Performance Recorder: Windows 7 and 2008 R2
Preparation

  1. Download Windows ADK for Windows 8.
  2. Select only Windows Performance Toolkit during the installation process.
    image.png


Recording Procedure for > Vista

  1. Launch Windows Performance Recorder from the Start menu.
  2. Under More options, select the following items:
    • CPU usage
    • Disk I/O activity
    • File I/O activity
    • Registry I/O activity
    • Networking I/O activity
    • Heap usage
    • Pool usage
  3. Change the Logging mode to File.
  4. Click Start.
  5. Execute the application(s) or task(s) that are related to the issue being reproduced.
  6. After the issue has been reproduced, click Save.
  7. Click Browse, specify the desired location for saved logs, then click Save.
  8. Click Open Folder to get your ETL file, then compress it .


Setting Up Windows Performance Toolkit 4.x: Windows Vista, Windows 2008, Windows 2003 SP1, and Windows XP SP2
Preparation

  1. Request Windows Performance Toolkit 4.x from TXOne Networks.
  2. If you are running a 64-bit OS, add the following registry setting and then reboot:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\M
“DisablePagingExecutive”=DWORD:1

Recording Procedure for > Vista

[Start]
xperf -stop -d nul
xperf -on base+cswitch+dispatcher -stackwalk cswitch+profile+readythread -MinBuffers 128 -MaxBuffers 640 -BufferSize 1024

[Stop]
xperf -stop -d system.etl 

Collect the system.etl .




For further assistance, please contact us at support@txone.com or your support provider.

Was this article helpful?